struct.sequence
Class POSDataManager

java.lang.Object
  extended by struct.sequence.SequenceDataManager
      extended by struct.sequence.POSDataManager
All Implemented Interfaces:
DataManager

public class POSDataManager
extends SequenceDataManager

POSDataManager.

Version:
07/15/2006

Field Summary
private static java.util.logging.Logger logger
           
 
Fields inherited from class struct.sequence.SequenceDataManager
dataAlphabet, tagAlphabet
 
Constructor Summary
POSDataManager()
           
 
Method Summary
 void createAlphabets(java.lang.String file, boolean createUnsupported)
          Creates alphabets.
private  void createTagAlphabet(java.lang.String file)
           
 java.util.LinkedList[] getPredicates(java.lang.String[] toks)
           
 java.util.LinkedList[] getPredicates(java.lang.String[] toks, java.lang.String[] pos)
           
 SequenceInstance[] readData(java.lang.String file, boolean createFeatureFile)
           
 
Methods inherited from class struct.sequence.SequenceDataManager
closeAlphabets, createAlphabets, createCRF, createFeatureVector, createFeatureVector, createFeatureVector, createForest, createU, getDataAlphabet, getTagAlphabet, normalize, readData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static java.util.logging.Logger logger
Constructor Detail

POSDataManager

public POSDataManager()
Method Detail

readData

public SequenceInstance[] readData(java.lang.String file,
                                   boolean createFeatureFile)
                            throws java.io.IOException
Overrides:
readData in class SequenceDataManager
Throws:
java.io.IOException

createAlphabets

public void createAlphabets(java.lang.String file,
                            boolean createUnsupported)
                     throws java.io.IOException
Description copied from class: SequenceDataManager
Creates alphabets.

Overrides:
createAlphabets in class SequenceDataManager
Throws:
java.io.IOException

createTagAlphabet

private void createTagAlphabet(java.lang.String file)
                        throws java.io.IOException
Throws:
java.io.IOException

getPredicates

public java.util.LinkedList[] getPredicates(java.lang.String[] toks,
                                            java.lang.String[] pos)
Specified by:
getPredicates in class SequenceDataManager

getPredicates

public java.util.LinkedList[] getPredicates(java.lang.String[] toks)


Copyright (C) 2006 University of Pennsylvania.