NlpTools API
Interface

NlpTools\FeatureFactories\FeatureFactoryInterface

interface FeatureFactoryInterface

Methods

array getFeatureArray(string $class, DocumentInterface $d)

Return an array with unique strings that are the features that "fire" for the specified Document $d and class $class

Details

at line 17
public array getFeatureArray(string $class, DocumentInterface $d)

Return an array with unique strings that are the features that "fire" for the specified Document $d and class $class

Parameters

string $class The class for which we are calculating features
DocumentInterface $d The document for which we are calculating features

Return Value

array