Description Usage Arguments Format Details Inherit Methods See Also
Class to guess the language by using language detector of library cld2. Optionally, it is possible to choose the language provided by twitter.
1 2 3 4 5 | GuessLanguagePipe$new(propertyName = "language",
alwaysBeforeDeps = list("StoreFileExtensionPipe",
"TargetAssigningPipe",
"StripHTMLPipe"),
notAfterDeps = list())
|
propertyName |
(character) Name of the property associated with the pipe. |
alwaysBeforeDeps |
(list) The dependences alwaysBefore (pipes that must be executed before this one). |
notAfterDeps |
(list) The dependences notAfter (pipes that cannot be executed after this one). |
An object of class R6ClassGenerator
of length 24.
The pipe will invalidate the instance if the language of the data can not be detect.
To obtain the language of the tweets, it will be verified that there is a json file with the information stored in memory.
This class inherits from PipeGeneric
and implements the
pipe
abstract function.
pipe Function that preprocesses the instance to obtain the language of the data.
Usage
pipe(instance, languageTwitter = TRUE)
Value
The instance with the modifications that have occurred in the pipe.
Arguments
instance (Instance) Instance to preproccess.
languageTwitter (logical) Indicates whether for the instances of type twtid the language that returns the api is obtained or the detector is applied.
getLanguage Function that guess the language of data.
Usage
getLanguage(data)
Value
The language guesser. Format: see ISO 639-3:2007.
Arguments
data (character) Text to guess the language.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.