org.jdmp.mallet.tagger
Class MalletTagger

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.mallet.tagger.MalletTagger
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 MalletTagger
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
 
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
MalletTagger()
           
 
Method Summary
 cc.mallet.types.Alphabet getDataAlphabet()
           
 cc.mallet.types.Alphabet getLabelAlphabet()
           
 List<Matrix> tag(Matrix input)
           
 List<Matrix> tag(String input)
           
 void test(Matrix matrix)
           
 void train(List<String> sentences)
           
 void train(Matrix matrix)
           
 
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
 

Constructor Detail

MalletTagger

public MalletTagger()
Method Detail

tag

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

tag

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

train

public void train(List<String> sentences)
           throws Exception
Throws:
Exception

getLabelAlphabet

public cc.mallet.types.Alphabet getLabelAlphabet()

getDataAlphabet

public cc.mallet.types.Alphabet getDataAlphabet()

train

public void train(Matrix matrix)
           throws Exception
Throws:
Exception

test

public void test(Matrix matrix)
          throws Exception
Throws:
Exception


Copyright © 2009. All Rights Reserved.