org.maltparser.parser.guide.feature
Class TokenFeature
java.lang.Object
org.maltparser.parser.guide.feature.Feature
org.maltparser.parser.guide.feature.AtomicFeature
org.maltparser.parser.guide.feature.TokenFeature
- Direct Known Subclasses:
- ColumnFeature
public abstract class TokenFeature
- extends AtomicFeature
- Since:
- 1.0
- Author:
- Johan Hall
Methods inherited from class org.maltparser.parser.guide.feature.Feature |
getCardinality, getFirstIntegerValue, getFirstStringValue, getIntegerValue, getIntegerValues, getParsingAlgorithm, getStringValue, getStringValues, getValues, init, init, initialize, isKnown, isNullValue, setParsingAlgorithm, setValue, setValue, update, updateCardinality |
TokenFeature
public TokenFeature()
throws MaltChainedException
- Throws:
MaltChainedException
createOperationStack
protected boolean createOperationStack(String op)
throws MaltChainedException
- Throws:
MaltChainedException
getNode
protected Node getNode()
throws MaltChainedException
- Throws:
MaltChainedException
replaceStackItem
public void replaceStackItem(String replaceOperation,
String newOperation)
setCardinality
public void setCardinality(int cardinality)
- Description copied from class:
Feature
- Sets the cardinality (the number of distinct values) of the feature
- Overrides:
setCardinality
in class Feature
- Parameters:
cardinality
- the cardinality (the number of distinct values)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class AtomicFeature
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class AtomicFeature
Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.