public class PartOfSpeechDependencyContextGenerator extends AbstractOccurrenceDependencyContextGenerator
DependencyContextGenerator that marks each co-occurrence with part
of speech information.| Constructor and Description |
|---|
PartOfSpeechDependencyContextGenerator(BasisMapping<String,String> basis,
int windowSize)
Constructs a new
PartOfSpeechDependencyContextGenerator. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getFeature(DependencyTreeNode node,
int index)
Returns a string with the node's word plus it's part of speech, with a
hyphen between the two.
|
addContextTerms, generateContext, getVectorLength, setReadOnlypublic PartOfSpeechDependencyContextGenerator(BasisMapping<String,String> basis, int windowSize)
PartOfSpeechDependencyContextGenerator.protected String getFeature(DependencyTreeNode node, int index)
getFeature in class AbstractOccurrenceDependencyContextGeneratorCopyright © 2012. All Rights Reserved.