class StopWords implements TransformationInterface
Stop Words are words which are filtered out because they carry little to no information.
This class transforms tokens. If they are listed as stop words
it returns null in order for the Document to remove them.
Otherwise it leaves them unchanged.
Methods
__construct(array $stopwords) | ||
mixed |
transform($token)
Return the value transformed. |
Details
at line 17
public
__construct(array $stopwords)
at line 25
public mixed
transform($token)
Return the value transformed.