de.tuebingen.uni.sfs.dspin.tcf.data
Class TextCorpusData
java.lang.Object
de.tuebingen.uni.sfs.dspin.tcf.data.TextCorpusData
public class TextCorpusData
- extends java.lang.Object
Constructor Summary |
TextCorpusData(java.io.InputStream inputStream,
LayerTag[] namesOfLayersToRead)
|
TextCorpusData(java.io.InputStream inputStream,
LayerTag[] namesOfLayersToRead,
java.io.OutputStream outputStream,
LayerTag[] namesOfLayersToWrite)
|
TextCorpusData(java.io.OutputStream outputStream,
LayerTag[] namesOfLayersToWrite,
java.lang.String lang)
|
TextCorpusData(java.io.Reader reader)
|
TextCorpusData(java.io.Reader reader,
LayerTag[] namesOfLayersToRead)
|
TextCorpusData(java.io.Reader reader,
LayerTag[] namesOfLayersToRead,
java.io.Writer writer,
LayerTag[] namesOfLayersToWrite)
|
TextCorpusData(java.io.Writer writer,
LayerTag[] 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
TextCorpusData
public TextCorpusData(java.io.InputStream inputStream,
LayerTag[] namesOfLayersToRead,
java.io.OutputStream outputStream,
LayerTag[] namesOfLayersToWrite)
throws TextCorpusFormatException
- Throws:
TextCorpusFormatException
TextCorpusData
public TextCorpusData(java.io.Reader reader,
LayerTag[] namesOfLayersToRead,
java.io.Writer writer,
LayerTag[] namesOfLayersToWrite)
throws TextCorpusFormatException
- Throws:
TextCorpusFormatException
TextCorpusData
public TextCorpusData(java.io.Reader reader)
throws TextCorpusFormatException
- Throws:
TextCorpusFormatException
TextCorpusData
public TextCorpusData(java.io.OutputStream outputStream,
LayerTag[] namesOfLayersToWrite,
java.lang.String lang)
throws TextCorpusFormatException,
java.io.FileNotFoundException
- Throws:
TextCorpusFormatException
java.io.FileNotFoundException
TextCorpusData
public TextCorpusData(java.io.Writer writer,
LayerTag[] namesOfLayersToWrite,
java.lang.String lang)
throws TextCorpusFormatException,
java.io.FileNotFoundException
- Throws:
TextCorpusFormatException
java.io.FileNotFoundException
TextCorpusData
public TextCorpusData(java.io.InputStream inputStream,
LayerTag[] namesOfLayersToRead)
throws TextCorpusFormatException
- Throws:
TextCorpusFormatException
TextCorpusData
public TextCorpusData(java.io.Reader reader,
LayerTag[] namesOfLayersToRead)
throws TextCorpusFormatException
- Throws:
TextCorpusFormatException
getFactory
public TextCorpusFactory getFactory()
getFormatVersion
public java.lang.String getFormatVersion()
getLanguage
public java.lang.String getLanguage()
getLayersRead
public java.util.Set<LayerTag> getLayersRead()
getTextLayer
public TextLayer getTextLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
getTokensLayer
public TokensLayer getTokensLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
getSentencesLayer
public SentencesLayer getSentencesLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
getPOSTagsLayer
public POSTagsLayer getPOSTagsLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
getLemmasLayer
public LemmasLayer getLemmasLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
getMorphologyLayer
public MorphologyLayer getMorphologyLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
getParsingConstituentLayer
public ParsingConstituentLayer getParsingConstituentLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
getParsingDependencyLayer
public ParsingDependencyLayer getParsingDependencyLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
getCoreferencesLayer
public CoreferencesLayer getCoreferencesLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
getNamedEntitiesLayer
public NamedEntitiesLayer getNamedEntitiesLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
getSemLexRelationsLayer
public SemLexRelationsLayer getSemLexRelationsLayer()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
writeTextLayer
public void writeTextLayer(java.lang.String text)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
writeTokensLayer
public void writeTokensLayer(java.util.List<Token> tokens)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
writeSentencesLayer
public void writeSentencesLayer(java.util.List<Sentence> sentences)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
writePOSTagsLayer
public void writePOSTagsLayer(java.util.List<Tag> posTags,
java.lang.String tagset)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
writeLemmasLayer
public void writeLemmasLayer(java.util.List<Lemma> lemmas)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
writeMorphologyLayer
public void writeMorphologyLayer(java.util.List<Analysis> analysisList,
java.lang.String tagset)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
writeParsingConstituentLayer
public void writeParsingConstituentLayer(java.util.List<Constituent> sentencesParses,
java.lang.String tagset)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
writeParsingDependencyLayer
public void writeParsingDependencyLayer(java.util.List<DependencyParse> sentencesParses,
java.lang.String tagset)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
writeCoreferencesLayer
public void writeCoreferencesLayer(java.util.List<Coreference> coreferences)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
writeNamedEntitiesLayer
public void writeNamedEntitiesLayer(java.util.List<Entity> namedEntities)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
writeSemLexRelationsLayer
public void writeSemLexRelationsLayer(java.util.List<SemLexRelation> semLexRelations,
java.lang.String relationsSource)
throws TextCorpusFormatException,
java.lang.IllegalAccessException
- Throws:
TextCorpusFormatException
java.lang.IllegalAccessException
hasDataToWrite
public boolean hasDataToWrite()