This class is responsible of detecting the existing emoticons in the
data field of each Instance
. Identified emoticons are
stored inside the emoticon field of Instance
class.
Moreover if required, is able to perform inline emoticon removement.
FindEmoticonPipe
FindEmoticonPipe$new(propertyName = "emoticon", alwaysBeforeDeps = list(), notAfterDeps = list("FindHashtagPipe"))
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).
This class inherits from PipeGeneric
and implements the
pipe
abstract function.
pipe:
preprocesses the Instance
to obtain/remove the emoticons.
findEmoticon: finds the emoticons in the data.
Usage:
findEmoticon(data)
Value: list with emoticons found.
Arguments:
data: (character) text to search the emoticons.
removeEmoticon: removes the emoticons in the data.
Usage:
removeEmoticon(data)
Value: the data with emoticons removed.
Arguments:
data: (character) text in which emoticons will be removed.
emoticonPattern: (character) regular expression to detect emoticons.
The regular expression indicated in the emoticonPattern
variable is used to identify emoticons.
AbbreviationPipe
, ContractionPipe
,
File2Pipe
, FindEmojiPipe
,
FindHashtagPipe
, FindUrlPipe
,
FindUserNamePipe
, GuessDatePipe
,
GuessLanguagePipe
, Instance
,
InterjectionPipe
, MeasureLengthPipe
,
PipeGeneric
, SlangPipe
,
StopWordPipe
, StoreFileExtPipe
,
TargetAssigningPipe
, TeeCSVPipe
,
ToLowerCasePipe