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.
This class inherits from GenericPipe and implements the
pipe abstract function.
bdpar::GenericPipe -> FindEmoticonPipe
emoticonPatternA character value. The regular
expression to detect emoticons.
new()Creates a FindEmoticonPipe object.
FindEmoticonPipe$new(
propertyName = "emoticon",
alwaysBeforeDeps = list(),
notAfterDeps = list("FindHashtagPipe"),
removeEmoticons = TRUE
)propertyNameA character value. Name of the property
associated with the GenericPipe.
alwaysBeforeDepsA list value. The dependencies
alwaysBefore (GenericPipes that must be executed before
this one).
notAfterDepsA list value. The dependencies
notAfter (GenericPipes that cannot be executed after
this one).
removeEmoticonsA logical value. Indicates if the
emoticons are removed.
propertyLanguageNameA character value. Name of the
language property.
pipe()Preprocesses the Instance to obtain/remove
the emoticons. The emoticons found in the data are added to the
list of properties of the Instance.
FindEmoticonPipe$pipe(instance)instanceA Instance value. The Instance
to preprocess.
The Instance with the modifications that have
occurred in the pipe.
findEmoticon()Finds the emoticons in the data.
FindEmoticonPipe$findEmoticon(data)dataA character value. The text to search the
emoticons.
The list with emoticons found.
removeEmoticon()Removes the emoticons in the data.
FindEmoticonPipe$removeEmoticon(data)dataA character value. The text where emoticons
will be removed.
The data with the emoticons removed.
clone()The objects of this class are cloneable with this method.
FindEmoticonPipe$clone(deep = FALSE)deepWhether to make a deep clone.
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,
GenericPipe, SlangPipe,
StopWordPipe, StoreFileExtPipe,
TargetAssigningPipe, TeeCSVPipe,
ToLowerCasePipe