| TargetAssigningPipe {bdpar} | R Documentation |
Class to get the target field of the Instance
Description
This class allows searching in the path the target of
the Instance.
Details
The targets that are searched can be controlled through the constructor of the class where targetsName will be the string that is searched within the path and targets has the values that the property can take.
Inherit
This class inherits from GenericPipe and implements the
pipe abstract function.
Super class
bdpar::GenericPipe -> TargetAssigningPipe
Methods
Public methods
Inherited methods
Method new()
Creates a TargetAssigningPipe object.
Usage
TargetAssigningPipe$new(
targets = list("ham", "spam"),
targetsName = list("_ham_", "_spam_"),
propertyName = "target",
alwaysBeforeDeps = list(),
notAfterDeps = list()
)Arguments
targetsA
listvalue. Name of the targets property.targetsNameA
listvalue. The name of folders.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).
Method pipe()
Preprocesses the Instance to obtain the
target.
Usage
TargetAssigningPipe$pipe(instance)
Arguments
Returns
The Instance with the modifications that have
occurred in the pipe.
Method getTarget()
Gets the target from a path.
Usage
TargetAssigningPipe$getTarget(path)
Arguments
pathA
charactervalue. The path to analyze.
Returns
The target of the path.
Method checkTarget()
Checks if the target is in the path.
Usage
TargetAssigningPipe$checkTarget(target, path)
Arguments
Returns
if the target is found, returns target, else returns "".
Method getTargets()
Gets of targets.
Usage
TargetAssigningPipe$getTargets()
Returns
Value of targets.
Method clone()
The objects of this class are cloneable with this method.
Usage
TargetAssigningPipe$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
AbbreviationPipe, ContractionPipe,
File2Pipe, FindEmojiPipe,
FindEmoticonPipe, FindHashtagPipe,
FindUrlPipe, FindUserNamePipe,
GuessDatePipe, GuessLanguagePipe,
Instance, InterjectionPipe,
MeasureLengthPipe, GenericPipe,
ResourceHandler, SlangPipe,
StopWordPipe, StoreFileExtPipe,
TeeCSVPipe, ToLowerCasePipe