| FindUserNamePipe | R Documentation |
This class is responsible of detecting the existing use names in the
data field of each Instance. Identified user names are
stored inside the userName field of Instance class.
Moreover if required, is able to perform inline user name removement.
The regular expressions indicated in the userPattern
variable are used to identify user names.
FindUserNamePipe will automatically invalidate the
Instance whenever the obtained data is empty.
This class inherits from GenericPipe and implements the
pipe abstract function.
bdpar::GenericPipe -> FindUserNamePipe
userPatternA character value. The regular
expression to detect name users.
new()Creates a FindEmoticonPipe object.
FindUserNamePipe$new( propertyName = "userName", alwaysBeforeDeps = list(), notAfterDeps = list(), removeUser = 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).
removeUserA logical value. Indicates if the
name users are removed.
propertyLanguageNameA character value. Name of the
language property.
pipe()Preprocesses the Instance to obtain/remove
the name users. The emoticons found in the data are added to the
list of properties of the Instance.
FindUserNamePipe$pipe(instance)
instanceA Instance value. The Instance
to preprocess.
The Instance with the modifications that have
occurred in the pipe.
findUserName()Finds the name users in the data.
FindUserNamePipe$findUserName(data)
dataA character value. The text to search the
name users.
The list with name users found.
removeUserName()Removes the name users in the data.
FindUserNamePipe$removeUserName(data)
dataA character value. The text where name users
will be removed.
The data with the name users removed.
clone()The objects of this class are cloneable with this method.
FindUserNamePipe$clone(deep = FALSE)
deepWhether to make a deep clone.
AbbreviationPipe, ContractionPipe,
File2Pipe, FindEmojiPipe,
FindEmoticonPipe, FindHashtagPipe,
FindUrlPipe, GuessDatePipe,
GuessLanguagePipe, Instance,
InterjectionPipe, MeasureLengthPipe,
GenericPipe, SlangPipe,
StopWordPipe, StoreFileExtPipe,
TargetAssigningPipe, TeeCSVPipe,
ToLowerCasePipe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.