de.tuebingen.uni.sfs.dspin.tcf.data
Class LexiconData
java.lang.Object
de.tuebingen.uni.sfs.dspin.tcf.data.LexiconData
public class LexiconData
- extends java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUPPORTED_FORMAT_VERSION
public static final java.lang.String SUPPORTED_FORMAT_VERSION
- See Also:
- Constant Field Values
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
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()