MaltParser 1.0.1

org.maltparser.parser.guide.feature
Class TokenFeature

java.lang.Object
  extended by org.maltparser.parser.guide.feature.Feature
      extended by org.maltparser.parser.guide.feature.AtomicFeature
          extended by org.maltparser.parser.guide.feature.TokenFeature
Direct Known Subclasses:
ColumnFeature

public abstract class TokenFeature
extends AtomicFeature

Since:
1.0
Author:
Johan Hall

Field Summary
 
Fields inherited from class org.maltparser.parser.guide.feature.Feature
cardinality, featureKnown, featureValues, nullValue, parsingAlgorithm
 
Constructor Summary
TokenFeature()
           
 
Method Summary
protected  boolean createOperationStack(String op)
           
 boolean equals(Object obj)
           
protected  Node getNode()
           
 void replaceStackItem(String replaceOperation, String newOperation)
           
 void setCardinality(int cardinality)
          Sets the cardinality (the number of distinct values) of the feature
 String toString()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenFeature

public TokenFeature()
             throws MaltChainedException
Throws:
MaltChainedException
Method Detail

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

toString

public String toString()
Overrides:
toString in class AtomicFeature

MaltParser 1.0.1

Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.