GuessLanguagePipe: Class to guess the language

Description Usage Arguments Format Details Inherit Methods See Also

Description

Class to guess the language by using language detector of library cld2. Optionally, it is possible to choose the language provided by twitter.

Usage

1
2
3
4
5
GuessLanguagePipe$new(propertyName = "language",
                      alwaysBeforeDeps = list("StoreFileExtensionPipe",
                                              "TargetAssigningPipe",
                                              "StripHTMLPipe"),
                      notAfterDeps = list())

Arguments

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).

Format

An object of class R6ClassGenerator of length 24.

Details

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.

Inherit

This class inherits from PipeGeneric and implements the pipe abstract function.

Methods

See Also

PipeGeneric, Instance


miferreiro/bdp4R documentation built on May 20, 2019, 12:59 a.m.