Description Usage Arguments Format Details Inherit Methods See Also
A pipe to transform a SynsetVector
wich contains a list of
synsets included in a message into a SynsetFeatureVector
wich compile togeher
duplicated features and assign a score for each feature according with a
groupingStrategy.
1 2 3 | SynsetVector2SynsetFeatureVectorPipe$new(propertyName = "",
alwaysBeforeDeps = list(),
notAfterDeps = list())
|
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). |
An object of class R6ClassGenerator
of length 24.
The groupStrategy is one of the following: - COUNT: indicates the number of times that a synset is observed in the content. - BOOLEAN: Indicates if the synset is observed in the content (1) or not (0). - FREQUENCY: Indicates the frequency of the synset in the text that is the count of times that the synset is observed divided by the whole amount of synsets.
This class inherits from PipeGeneric
and implements the
pipe
abstract function.
pipe Function that preprocesses the instance to remove html tags.
Usage
pipe(instance, groupStrategy = "COUNT")
Value
The instance with the modifications that have occurred in the pipe.
Arguments
instance (Instance) Instance to preproccess.
groupStrategy (character) Strategy to count the synstes. It can be COUNT, BOOLEAN or FREQUENCY.
countMatchers Converts a synsetVector in a synsetFeatureVector, with the synsetId and the number of times that a synsetId appears in synsetVector.
Usage
countMatchers(synsetVector)
Value
A synsetFeatureVector with the synsetId and the number of times that a synsetId appears in synsetVector.
Arguments
synsetVector (SynsetVector)
booleanMatchers Converts a synsetVector in a synsetFeatureVector, with the synsetId and 1 or 0 depends if the synsetId appears in synsetVector.
Usage
booleanMatchers(synsetVector)
Value
A synsetFeatureVector with the synsetId and 1 or 0 depends if the synsetId appears in synsetVector.
Arguments
synsetVector (SynsetVector)
frequencyMatchers Converts a synsetVector in a synsetFeatureVector, with the synsetId and the frequency that a synsetId appears in synsetVector.
Usage
frequencyMatchers(synsetVector)
Value
A synsetFeatureVector with the synsetId and the frequency that a synsetId appears in synsetVector.
Arguments
synsetVector (SynsetVector)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.