Package BasicsGetting started with polmineR (CLI And GUI usage). |
|
---|---|
polmineR-package |
|
Generic methods defined in the polmineR package |
|
Corpora and subcorporaCorpora, subcorpora/partitions, and partition_bundle objects are the point of departure for any analysis using polmineR. Constructors introduced in the next section require an understanding of basic methods and classes to generate and manage (sub-)corpora |
|
Add corpora in R data packages to session registry. |
|
Corpus class initialization |
|
|
Corpus class methods |
|
Subsetting corpora and subcorpora |
Execute code on OpenCPU server |
|
Virtual class slice. |
|
Initialize a partition. |
|
Generate bundle of partitions. |
|
Get p-attributes. |
|
Get s-attributes. |
|
Split corpus or partition into speeches. |
|
|
The S4 subcorpus class. |
|
Bundled subcorpora |
Regions of a CWB corpus. |
|
Methods I: Basic VocabularyData analysis using polmineR will usually start by calling a constructor method resulting in an S4 class object with the name of the calling method. All methods basic vocabulary can be applied to corpora (defined by a character vector), to partitions, and to partition_bundle objects, some are applicable to additional classes. These methods are designed to be used in a pipe. |
|
Perform keyword-in-context (KWIC) analysis. |
|
Get hits for query |
|
Get counts. |
|
Dispersion of a query or multiple queries. |
|
Get N-Grams |
|
Analyze context of a node word. |
|
Get cooccurrence statistics. |
|
Get features by comparison. |
|
|
Manage and use phrases |
Methods II: Processing ObjectsThe polmineR package offers a repertoire to modify base objects, and for type conversion. Methods for modyfing classes and type conversion. |
|
Get Number of Tokens. |
|
|
Get terms in |
Enrich an object. |
|
trim an object |
|
detect noise |
|
Get and set encoding. |
|
Generate TermDocumentMatrix / DocumentTermMatrix. |
|
Type conversion - get sparseMatrix. |
|
Get VCorpus. |
|
Perform chisquare-text. |
|
Compute Log-likelihood Statistics. |
|
Perform t-test. |
|
Calculate Pointwise Mutual Information (PMI). |
|
calculate means |
|
Apply Weight to Matrix |
|
Defunct functionality |
|
dotplot |
|
Restore S4 object with data.table slots |
|
Methods III: Fulltext OutputA key consideration of polmineR is to combine quantitative and qualitative steps of analysis in a workflow. A set of methods is exposed to generate and enhance fulltext output. |
|
Display full text. |
|
Generate html from object. |
|
Annotation functionality |
|
Get markdown-formatted full text of a partition. |
|
Defunct functionality |
|
Inspect object using View(). |
|
Highlight tokens in text output. |
|
Add tooltips to text output. |
|
Get template for reconstructing full text. |
|
Get corpus/partition type. |
|
Decode as String. |
|
The 'textstat' Class & ChildsThe main feature of the textstat class and of classes inheriting from it is that it keeps statistical information about a corpus or partition in a data.table in the field ‘stat’. Methods defined for the textstat superclass are available for its child classes, unless they are overloaded in a specified manner. |
|
|
S4 textstat superclass. |
Count class. |
|
Ngrams class. |
|
|
Partition class and methods. |
Hits class. |
|
|
Context class. |
|
Cooccurrences class. |
|
Cooccurrences class for corpus/partition. |
|
Get all cooccurrences in corpus/partition. |
|
Feature selection by comparison. |
The 'kwic' & 'Labels' Classesxxx |
|
|
S4 kwic class |
The 'bundle' Class & ChildsS4 classes for managing text analysis. |
|
|
Bundle Class |
|
Bundle of partitions (partition_bundle class). |
S4 context_bundle class |
|
apply a function over a list or bundle |
|
Low-level CWB AccessThe API used to access CWB indexed corpora is the RcppCWB package. A set of functions in the polmineR package serves as an intermediate interface to access corpus data. |
|
Get registry and data directories. |
|
Reset registry directory. |
|
|
Evaluate registry file. |
Get corpus positions for a query or queries. |
|
Get Token Stream. |
|
Decode corpus or subcorpus. |
|
Tools for CQP queries. |
|
Utility FunctionsExported utility functions / helpers. |
|
Conversion between corpus and native encoding. |
|
Defunct functionality |
|
Backwards CompatibilityStarting with v0.7.9, the coding style of the polmineR-package has moved from camelCase to snake_case. A set of ‘old style’-functions ensures backwards compatibility and that old code will not break. |
|
|
Renamed Functions |