This class is responsible of detecting the existing emojis in the
data field of each Instance
. Identified emojis are
stored inside the emoji field of Instance
class.
Moreover if required, is able to perform inline emoji replacement.
FindEmojiPipe
FindEmojiPipe$new(propertyName = "emoji", alwaysBeforeDeps = list(), 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).
This class inherits from PipeGeneric
and implements the
pipe
abstract function.
pipe:
preprocesses the Instance
to obtain/replace the emojis.
findEmoji: checks for the existence of an specific emoji.
Usage:
findEmoji(data, emoji)
Value: boolean, depending on whether the emoji is on the data.
Arguments:
data: (character) text to search the emoji.
emoji: (character) indicates the emoji to find.
replaceEmoji: replaces the emoji in the data for the extendedEmoji.
Usage:
replaceEmoji(emoji, extendedEmoji, data)
Value: the data with emoji replaced.
Arguments:
emoji: (character) indicates the emoji to remove.
extendedEmoji: (character) determines the text source to replace the emoji found.
data: (character) text where emojis will be replaced.
FindEmojiPipe
use the emoji list provided by rtweet package.
AbbreviationPipe
, ContractionPipe
,
File2Pipe
, FindEmoticonPipe
,
FindHashtagPipe
, FindUrlPipe
,
FindUserNamePipe
, GuessDatePipe
,
GuessLanguagePipe
, Instance
,
InterjectionPipe
, MeasureLengthPipe
,
PipeGeneric
, SlangPipe
,
StopWordPipe
, StoreFileExtPipe
,
TargetAssigningPipe
, TeeCSVPipe
,
ToLowerCasePipe