de.tuebingen.uni.sfs.dspin.tcf.data
Class LexiconData

java.lang.Object
  extended by de.tuebingen.uni.sfs.dspin.tcf.data.LexiconData

public class LexiconData
extends java.lang.Object


Field Summary
static java.lang.String SUPPORTED_FORMAT_VERSION
           
 
Constructor Summary
LexiconData(java.io.InputStream inputStream, LexiconLayerTag[] namesOfLayersToRead)
           
LexiconData(java.io.InputStream inputStream, LexiconLayerTag[] namesOfLayersToRead, java.io.OutputStream outputStream, LexiconLayerTag[] namesOfLayersToWrite)
           
LexiconData(java.io.OutputStream outputStream, LexiconLayerTag[] namesOfLayersToWrite, java.lang.String lang)
           
LexiconData(java.io.Reader reader)
           
LexiconData(java.io.Reader reader, LexiconLayerTag[] namesOfLayersToRead)
           
LexiconData(java.io.Reader reader, LexiconLayerTag[] namesOfLayersToRead, java.io.Writer writer, LexiconLayerTag[] namesOfLayersToWrite)
           
LexiconData(java.io.Writer writer, LexiconLayerTag[] namesOfLayersToWrite, java.lang.String lang)
           
 
Method Summary
 LexiconFactory getFactory()
           
 java.lang.String getFormatVersion()
           
 LexiconFrequenciesLayer getFrequenciesLayer()
           
 java.lang.String getLanguage()
           
 java.util.Set<LexiconLayerTag> getLayersRead()
           
 LexiconLemmasLayer getLemmasLayer()
           
 LexiconPOSTagsLayer getPOSTagsLayer()
           
 LexiconRelationsLayer getRelationsLayer()
           
 boolean hasDataToWrite()
           
 void writeFrequenciesLayer(java.util.List<LexiconFrequency> frequencies)
           
 void writeLemmasLayer(java.util.List<LexiconLemma> lemmas)
           
 void writePOSTagsLayer(java.util.List<LexiconTag> posTags, java.lang.String tagset)
           
 void writeRelationsLayer(java.util.List<LexiconRelation> relations, java.lang.String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUPPORTED_FORMAT_VERSION

public static final java.lang.String SUPPORTED_FORMAT_VERSION
See Also:
Constant Field Values
Constructor Detail

LexiconData

public LexiconData(java.io.InputStream inputStream,
                   LexiconLayerTag[] namesOfLayersToRead,
                   java.io.OutputStream outputStream,
                   LexiconLayerTag[] namesOfLayersToWrite)
            throws TextCorpusFormatException
Throws:
TextCorpusFormatException

LexiconData

public LexiconData(java.io.Reader reader,
                   LexiconLayerTag[] namesOfLayersToRead,
                   java.io.Writer writer,
                   LexiconLayerTag[] namesOfLayersToWrite)
            throws TextCorpusFormatException
Throws:
TextCorpusFormatException

LexiconData

public LexiconData(java.io.Reader reader)
            throws TextCorpusFormatException
Throws:
TextCorpusFormatException

LexiconData

public LexiconData(java.io.OutputStream outputStream,
                   LexiconLayerTag[] namesOfLayersToWrite,
                   java.lang.String lang)
            throws TextCorpusFormatException,
                   java.io.FileNotFoundException
Throws:
TextCorpusFormatException
java.io.FileNotFoundException

LexiconData

public LexiconData(java.io.Writer writer,
                   LexiconLayerTag[] namesOfLayersToWrite,
                   java.lang.String lang)
            throws TextCorpusFormatException,
                   java.io.FileNotFoundException
Throws:
TextCorpusFormatException
java.io.FileNotFoundException

LexiconData

public LexiconData(java.io.InputStream inputStream,
                   LexiconLayerTag[] namesOfLayersToRead)
            throws TextCorpusFormatException
Throws:
TextCorpusFormatException

LexiconData

public LexiconData(java.io.Reader reader,
                   LexiconLayerTag[] namesOfLayersToRead)
            throws TextCorpusFormatException
Throws:
TextCorpusFormatException
Method Detail

getFactory

public LexiconFactory getFactory()

getFormatVersion

public java.lang.String getFormatVersion()

getLanguage

public java.lang.String getLanguage()

getLayersRead

public java.util.Set<LexiconLayerTag> getLayersRead()

getLemmasLayer

public LexiconLemmasLayer getLemmasLayer()
                                  throws java.lang.IllegalAccessException
Throws:
java.lang.IllegalAccessException

getPOSTagsLayer

public LexiconPOSTagsLayer getPOSTagsLayer()
                                    throws java.lang.IllegalAccessException
Throws:
java.lang.IllegalAccessException

getFrequenciesLayer

public LexiconFrequenciesLayer getFrequenciesLayer()
                                            throws java.lang.IllegalAccessException
Throws:
java.lang.IllegalAccessException

getRelationsLayer

public LexiconRelationsLayer getRelationsLayer()
                                        throws java.lang.IllegalAccessException
Throws:
java.lang.IllegalAccessException

writeLemmasLayer

public void writeLemmasLayer(java.util.List<LexiconLemma> lemmas)
                      throws TextCorpusFormatException,
                             java.lang.IllegalAccessException
Throws:
TextCorpusFormatException
java.lang.IllegalAccessException

writePOSTagsLayer

public void writePOSTagsLayer(java.util.List<LexiconTag> posTags,
                              java.lang.String tagset)
                       throws TextCorpusFormatException,
                              java.lang.IllegalAccessException
Throws:
TextCorpusFormatException
java.lang.IllegalAccessException

writeFrequenciesLayer

public void writeFrequenciesLayer(java.util.List<LexiconFrequency> frequencies)
                           throws TextCorpusFormatException,
                                  java.lang.IllegalAccessException
Throws:
TextCorpusFormatException
java.lang.IllegalAccessException

writeRelationsLayer

public void writeRelationsLayer(java.util.List<LexiconRelation> relations,
                                java.lang.String type)
                         throws TextCorpusFormatException,
                                java.lang.IllegalAccessException
Throws:
TextCorpusFormatException
java.lang.IllegalAccessException

hasDataToWrite

public boolean hasDataToWrite()