org.jdmp.stanfordpos
Class StanfordPOSTagger

java.lang.Object
  extended by org.jdmp.core.AbstractCoreObject
      extended by org.jdmp.core.algorithm.AbstractAlgorithm
          extended by org.jdmp.core.algorithm.tagger.AbstractTagger
              extended by org.jdmp.stanfordpos.StanfordPOSTagger
All Implemented Interfaces:
Serializable, Cloneable, org.jdmp.core.algorithm.Algorithm, org.jdmp.core.algorithm.HasAlgorithmMap, org.jdmp.core.algorithm.HasAlgorithms, org.jdmp.core.algorithm.tagger.Tagger, org.jdmp.core.CoreObject, org.jdmp.core.variable.HasVariableMap, org.jdmp.core.variable.HasVariables, Clearable, HasDescription, HasGUIObject, HasLabel

public class StanfordPOSTagger
extends org.jdmp.core.algorithm.tagger.AbstractTagger

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jdmp.core.algorithm.Algorithm
org.jdmp.core.algorithm.Algorithm.EdgeDirection
 
Field Summary
static String DEFAULTMODEL
           
static String MODELPATH
           
 
Fields inherited from class org.jdmp.core.AbstractCoreObject
ALL, COLUMN, logger, ROW, X, Y, Z
 
Fields inherited from interface org.jdmp.core.algorithm.tagger.Tagger
TAGGED
 
Fields inherited from interface org.jdmp.core.algorithm.Algorithm
ALGORITHMARRAY, DIMENSION, IGNORENAN, SOURCE, TARGET
 
Constructor Summary
StanfordPOSTagger()
           
StanfordPOSTagger(File modelFile)
           
 
Method Summary
static StanfordPOSTagger getInstance()
           
 List<Matrix> tag(Matrix input)
           
 List<Matrix> tag(String input)
           
 
Methods inherited from class org.jdmp.core.algorithm.tagger.AbstractTagger
tag, tag
 
Methods inherited from class org.jdmp.core.algorithm.AbstractAlgorithm
addVariableKey, calculate, calculate, calculate, calculate, calculateObjects, calculateObjects, calculateObjects, clear, getAlgorithms, getAsString, getDescription, getEdgeDirection, getEdgeLabel, getGUIObject, getInputKeys, getLabel, getMatrix, getOutputKeys, getVariableKeys, getVariables, notifyGUIObject, setAlgorithm, setDescription, setEdgeDirection, setEdgeLabel, setLabel, setMatrix, setObject, setVariable, setVariables, setVariables, toString
 
Methods inherited from class org.jdmp.core.AbstractCoreObject
showGUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ujmp.core.interfaces.HasGUIObject
showGUI
 

Field Detail

MODELPATH

public static final String MODELPATH

DEFAULTMODEL

public static final String DEFAULTMODEL
See Also:
Constant Field Values
Constructor Detail

StanfordPOSTagger

public StanfordPOSTagger()
                  throws Exception
Throws:
Exception

StanfordPOSTagger

public StanfordPOSTagger(File modelFile)
                  throws Exception
Throws:
Exception
Method Detail

tag

public List<Matrix> tag(String input)
                 throws Exception
Throws:
Exception

tag

public List<Matrix> tag(Matrix input)
                 throws Exception
Throws:
Exception

getInstance

public static StanfordPOSTagger getInstance()


Copyright © 2009. All Rights Reserved.