struct.classification
Class TokenSequence2Token

java.lang.Object
  extended by edu.umass.cs.mallet.base.pipe.Pipe
      extended by struct.classification.TokenSequence2Token
All Implemented Interfaces:
java.io.Serializable

public class TokenSequence2Token
extends edu.umass.cs.mallet.base.pipe.Pipe

Convert the length-one TokenSequence to a Token. Exception occurs if the TokenSequence is length more than one.

Author:
Kuzman Ganchev
See Also:
Serialized Form

Field Summary
private static int CURRENT_SERIAL_VERSION
           
private static long serialVersionUID
           
 
Constructor Summary
TokenSequence2Token()
           
 
Method Summary
 edu.umass.cs.mallet.base.types.Instance pipe(edu.umass.cs.mallet.base.types.Instance carrier)
           
private  void readObject(java.io.ObjectInputStream in)
           
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class edu.umass.cs.mallet.base.pipe.Pipe
getDataAlphabet, getInstanceId, getParent, getParentRoot, getTargetAlphabet, isDataAlphabetSet, isTargetProcessing, pipe, readResolve, resolveDataAlphabet, resolveTargetAlphabet, setDataAlphabet, setParent, setTargetAlphabet, setTargetProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

CURRENT_SERIAL_VERSION

private static final int CURRENT_SERIAL_VERSION
See Also:
Constant Field Values
Constructor Detail

TokenSequence2Token

public TokenSequence2Token()
Method Detail

pipe

public edu.umass.cs.mallet.base.types.Instance pipe(edu.umass.cs.mallet.base.types.Instance carrier)
Specified by:
pipe in class edu.umass.cs.mallet.base.pipe.Pipe

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Throws:
java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright (C) 2006 University of Pennsylvania.