VTK
|
Converts a collection of tokens into a collection of N-grams. More...
#include <vtkNGramExtraction.h>
Converts a collection of tokens into a collection of N-grams.
Given a table containing tokens, generates a table containing N-grams.
Inputs: Input port 0: (required) A vtkTable containing document, begin, end, and text columns.
Outputs: Output port 0: A vtkTable containing "document", "begin", "end", "type", and "text" columns.
Use SetInputArrayToProcess(0, ...) to specify the "document" array. Use SetInputArrayToProcess(1, ...) to specify the "begin" array. Use SetInputArrayToProcess(2, ...) to specify the "end" array. Use SetInputArrayToProcess(3, ...) to specify the "text" array.
BTX vtkIdType N; ETX