public interface MonolingualCorpusParser
MonolingualCorpus
es from Reader
(s).Modifier and Type | Method and Description |
---|---|
void |
parseMonolingualCorpus(MonolingualCorpusBuilder builder,
java.io.Reader... in)
Builds a
MonolingualCorpus by parsing some input. |
void |
parseMonolingualCorpus(MonolingualCorpusBuilder builder,
java.util.Set<java.lang.Integer> removedIndexes,
java.io.Reader... in)
Builds a
MonolingualCorpus by parsing some input and removing the sentences in the specified indexes. |
void parseMonolingualCorpus(MonolingualCorpusBuilder builder, java.io.Reader... in) throws ParseException
MonolingualCorpus
by parsing some input.builder
- the MonolingualCorpusBuilder
with which to build the corpus.in
- the input to read from. The exact specifications are implementation dependent.ParseException
- if some sort of parsing error occurs.void parseMonolingualCorpus(MonolingualCorpusBuilder builder, java.util.Set<java.lang.Integer> removedIndexes, java.io.Reader... in) throws ParseException
MonolingualCorpus
by parsing some input and removing the sentences in the specified indexes.builder
- the MonolingualCorpusBuilder
with which to build the corpus.removedIndexes
- the set of indexes for the sentences to remove, starting from 1.in
- the input to read from. The exact specifications are implementation dependent.ParseException
- if some sort of parsing error occurs.