vtkNGramExtraction Class Reference

#include <vtkNGramExtraction.h>

Inheritance diagram for vtkNGramExtraction:

Inheritance graph
[legend]
Collaboration diagram for vtkNGramExtraction:

Collaboration graph
[legend]

List of all members.


Detailed Description

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.

Thanks:
Developed by Timothy M. Shead (tshead@sandia.gov) at Sandia National Laboratories.
Events:
vtkCommand::ProgressEvent
Tests:
vtkNGramExtraction (Tests)

Definition at line 55 of file vtkNGramExtraction.h.


Public Types

typedef vtkTableAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetN (vtkIdType)
virtual vtkIdType GetN ()

Static Public Member Functions

static vtkNGramExtractionNew ()
static int IsTypeOf (const char *type)
static vtkNGramExtractionSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkNGramExtraction ()
 ~vtkNGramExtraction ()
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)

Member Typedef Documentation

Reimplemented from vtkTableAlgorithm.

Definition at line 60 of file vtkNGramExtraction.h.


Constructor & Destructor Documentation

vtkNGramExtraction::vtkNGramExtraction (  )  [protected]

vtkNGramExtraction::~vtkNGramExtraction (  )  [protected]


Member Function Documentation

static vtkNGramExtraction* vtkNGramExtraction::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkTableAlgorithm.

virtual const char* vtkNGramExtraction::GetClassName (  )  [virtual]

Reimplemented from vtkTableAlgorithm.

static int vtkNGramExtraction::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTableAlgorithm.

virtual int vtkNGramExtraction::IsA ( const char *  name  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTableAlgorithm.

static vtkNGramExtraction* vtkNGramExtraction::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkTableAlgorithm.

void vtkNGramExtraction::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkTableAlgorithm.

virtual void vtkNGramExtraction::SetN ( vtkIdType   )  [virtual]

Controls the type of N-gram to produce. Default: 1 (unigrams).

virtual vtkIdType vtkNGramExtraction::GetN (  )  [virtual]

Controls the type of N-gram to produce. Default: 1 (unigrams).

virtual int vtkNGramExtraction::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkTableAlgorithm.


The documentation for this class was generated from the following file:

Generated on Wed Aug 24 11:49:42 2011 for VTK by  doxygen 1.5.6