| MeasureLengthPipe {bdpar} | R Documentation |
Class to obtain the length of the data field of an Instance
Description
This class is responsible of obtain the length of thedata
field of each Instance. Creates the length property
which indicates the length of the text. The property's name is customize
thought the class constructor.
Inherit
This class inherits from GenericPipe and implements the
pipe abstract function.
Super class
bdpar::GenericPipe -> MeasureLengthPipe
Methods
Public methods
Inherited methods
Method new()
Creates a File2Pipe object.
Usage
MeasureLengthPipe$new( propertyName = "length", alwaysBeforeDeps = list(), notAfterDeps = list(), nchar_conf = TRUE )
Arguments
propertyNameA
charactervalue. Name of the property associated with theGenericPipe.alwaysBeforeDepsA
listvalue. The dependencies alwaysBefore (GenericPipesthat must be executed before this one).notAfterDepsA
listvalue. The dependencies notAfter (GenericPipesthat cannot be executed after this one).nchar_confA
logicalvalue. indicates if the pipe uses nchar or object.size.
Method pipe()
Preprocesses the Instance to obtain the
length of data.
Usage
MeasureLengthPipe$pipe(instance)
Arguments
Returns
The Instance with the modifications that have
occurred in the pipe.
Method getLength()
Preprocesses the Instance to obtain the
length of data.
Usage
MeasureLengthPipe$getLength(data, nchar_conf = TRUE)
Arguments
Returns
The Instance with the modifications that have
occurred in the pipe.
Method clone()
The objects of this class are cloneable with this method.
Usage
MeasureLengthPipe$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
AbbreviationPipe, ContractionPipe,
File2Pipe, FindEmojiPipe,
FindEmoticonPipe, FindHashtagPipe,
FindUrlPipe, FindUserNamePipe,
GuessDatePipe, GuessLanguagePipe,
Instance, InterjectionPipe,
GenericPipe, ResourceHandler,
SlangPipe, StopWordPipe,
StoreFileExtPipe, TargetAssigningPipe,
TeeCSVPipe, ToLowerCasePipe