Uses of Interface
opennlp.tools.util.ObjectStream

Packages that use ObjectStream
opennlp.tools.chunker Package related to finding non-recursive syntactic annotation such as noun phrase chunks. 
opennlp.tools.cmdline   
opennlp.tools.cmdline.namefind   
opennlp.tools.cmdline.parser   
opennlp.tools.coref Package related to performing coreference resolution. 
opennlp.tools.doccat Package for classifying a document into a category. 
opennlp.tools.formats Experimental package related to converting various corpora to OpenNLP Format. 
opennlp.tools.formats.ad   
opennlp.tools.formats.convert   
opennlp.tools.formats.frenchtreebank   
opennlp.tools.formats.muc   
opennlp.tools.namefind Package related to finding proper names and numeric amounts. 
opennlp.tools.parser Package containing common code for performing full syntactic parsing. 
opennlp.tools.parser.chunking Package containing code for performing full syntactic parsing using shift/reduce-style decisions. 
opennlp.tools.parser.treeinsert Package containing experimental code for performing full syntactic parsing using attachment decisions. 
opennlp.tools.postag Package related to part-of-speech tagging. 
opennlp.tools.sentdetect Package related to identifying sentece boundries. 
opennlp.tools.tokenize Contains classes related to finding token or words in a string. 
opennlp.tools.util Package containing utility data structures and algorithms used by multiple other packages. 
opennlp.tools.util.eval   
 

Uses of ObjectStream in opennlp.tools.chunker
 

Classes in opennlp.tools.chunker that implement ObjectStream
 class ChunkSampleStream
          Parses the conll 2000 shared task shallow parser training data.
 

Methods in opennlp.tools.chunker with parameters of type ObjectStream
 void ChunkerCrossValidator.evaluate(ObjectStream<ChunkSample> samples, int nFolds)
          Starts the evaluation.
static ChunkerModel ChunkerME.train(String lang, ObjectStream<ChunkSample> in, ChunkerContextGenerator contextGenerator, TrainingParameters mlParams)
          Deprecated. Use #train(String, ObjectStream, ChunkerContextGenerator, TrainingParameters, ChunkerFactory) instead.
static ChunkerModel ChunkerME.train(String lang, ObjectStream<ChunkSample> in, int cutoff, int iterations)
          Deprecated. use ChunkerME.train(String, ObjectStream, ChunkerContextGenerator, TrainingParameters) instead and pass in a TrainingParameters object.
static ChunkerModel ChunkerME.train(String lang, ObjectStream<ChunkSample> in, int cutoff, int iterations, ChunkerContextGenerator contextGenerator)
          Deprecated. use ChunkerME.train(String, ObjectStream, ChunkerContextGenerator, TrainingParameters) instead and pass in a TrainingParameters object.
static ChunkerModel ChunkerME.train(String lang, ObjectStream<ChunkSample> in, TrainingParameters mlParams, ChunkerFactory factory)
           
 

Constructors in opennlp.tools.chunker with parameters of type ObjectStream
ChunkerEventStream(ObjectStream<ChunkSample> d)
          Deprecated. Use ChunkerEventStream.ChunkerEventStream(ObjectStream, ChunkerContextGenerator) instead.
ChunkerEventStream(ObjectStream<ChunkSample> d, ChunkerContextGenerator cg)
          Creates a new event stream based on the specified data stream using the specified context generator.
ChunkSampleStream(ObjectStream<String> samples)
          Initializes the current instance.
 

Uses of ObjectStream in opennlp.tools.cmdline
 

Fields in opennlp.tools.cmdline declared as ObjectStream
protected  ObjectStream<T> AbstractTrainerTool.sampleStream
           
protected  ObjectStream<T> AbstractEvaluatorTool.sampleStream
           
 

Methods in opennlp.tools.cmdline that return ObjectStream
 ObjectStream<T> ObjectStreamFactory.create(String[] args)
          Creates the ObjectStream.
 

Uses of ObjectStream in opennlp.tools.cmdline.namefind
 

Methods in opennlp.tools.cmdline.namefind with parameters of type ObjectStream
static Dictionary CensusDictionaryCreatorTool.createDictionary(ObjectStream<StringList> sampleStream)
          Creates a dictionary.
 

Uses of ObjectStream in opennlp.tools.cmdline.parser
 

Methods in opennlp.tools.cmdline.parser with parameters of type ObjectStream
protected  ParserModel BuildModelUpdaterTool.trainAndUpdate(ParserModel originalModel, ObjectStream<Parse> parseSamples, opennlp.tools.cmdline.parser.ModelUpdaterTool.ModelUpdaterParams parameters)
           
protected  ParserModel CheckModelUpdaterTool.trainAndUpdate(ParserModel originalModel, ObjectStream<Parse> parseSamples, opennlp.tools.cmdline.parser.ModelUpdaterTool.ModelUpdaterParams parameters)
           
 

Uses of ObjectStream in opennlp.tools.coref
 

Classes in opennlp.tools.coref that implement ObjectStream
 class CorefSampleDataStream
           
 

Methods in opennlp.tools.coref with parameters of type ObjectStream
static void CorefTrainer.train(String modelDirectory, ObjectStream<CorefSample> samples, boolean useTreebank, boolean useDiscourseModel)
           
 

Constructors in opennlp.tools.coref with parameters of type ObjectStream
CorefSampleDataStream(ObjectStream<String> in)
           
 

Uses of ObjectStream in opennlp.tools.doccat
 

Classes in opennlp.tools.doccat that implement ObjectStream
 class DocumentSampleStream
          This class reads in string encoded training samples, parses them and outputs DocumentSample objects.
 

Methods in opennlp.tools.doccat with parameters of type ObjectStream
static DoccatModel DocumentCategorizerME.train(String languageCode, ObjectStream<DocumentSample> samples)
          Trains a doccat model with default feature generation.
static DoccatModel DocumentCategorizerME.train(String languageCode, ObjectStream<DocumentSample> samples, int cutoff, int iterations)
          Trains a doccat model with default feature generation.
static DoccatModel DocumentCategorizerME.train(String languageCode, ObjectStream<DocumentSample> samples, int cutoff, int iterations, FeatureGenerator... featureGenerators)
          Trains a document categorizer model with custom feature generation.
static DoccatModel DocumentCategorizerME.train(String languageCode, ObjectStream<DocumentSample> samples, TrainingParameters mlParams, FeatureGenerator... featureGenerators)
           
 

Constructors in opennlp.tools.doccat with parameters of type ObjectStream
DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples)
          Initializes the current instance.
DocumentCategorizerEventStream(ObjectStream<DocumentSample> data, FeatureGenerator... featureGenerators)
          Initializes the current instance.
DocumentSampleStream(ObjectStream<String> samples)
           
 

Uses of ObjectStream in opennlp.tools.formats
 

Classes in opennlp.tools.formats that implement ObjectStream
 class BioNLP2004NameSampleStream
          Parser for the training files of the BioNLP/NLPBA 2004 shared task.
 class Conll02NameSampleStream
          Parser for the dutch and spanish ner training files of the CONLL 2002 shared task.
 class Conll03NameSampleStream
          An import stream which can parse the CONLL03 data.
 class ConllXPOSSampleStream
          Parses the data from the CONLL 06 shared task into POS Samples.
 class DirectorySampleStream
          The directory sample stream scans a directory (recursively) for plain text files and outputs each file as a String object.
 class LeipzigDoccatSampleStream
          Stream filter to produce document samples out of a Leipzig sentences.txt file.
 class NameFinderCensus90NameStream
          This class helps to read the US Census data from the files to build a StringList for each dictionary entry in the name-finder dictionary.
 

Methods in opennlp.tools.formats that return ObjectStream
 ObjectStream<TokenSample> TokenSampleStreamFactory.create(String[] args)
           
 ObjectStream<CorefSample> CorefSampleStreamFactory.create(String[] args)
           
 ObjectStream<POSSample> ConllXPOSSampleStreamFactory.create(String[] args)
           
 ObjectStream<SentenceSample> SentenceSampleStreamFactory.create(String[] args)
           
 ObjectStream<NameSample> NameSampleDataStreamFactory.create(String[] args)
           
 ObjectStream<Parse> ParseSampleStreamFactory.create(String[] args)
           
 ObjectStream<SentenceSample> ConllXSentenceSampleStreamFactory.create(String[] args)
           
 ObjectStream<NameSample> Conll03NameSampleStreamFactory.create(String[] args)
           
 ObjectStream<POSSample> WordTagSampleStreamFactory.create(String[] args)
           
 ObjectStream<DocumentSample> LeipzigDocumentSampleStreamFactory.create(String[] args)
           
 ObjectStream<NameSample> Conll02NameSampleStreamFactory.create(String[] args)
           
 ObjectStream<DocumentSample> DocumentSampleStreamFactory.create(String[] args)
           
 ObjectStream<NameSample> BioNLP2004NameSampleStreamFactory.create(String[] args)
           
 ObjectStream<TokenSample> ConllXTokenSampleStreamFactory.create(String[] args)
           
 ObjectStream<ChunkSample> ChunkerSampleStreamFactory.create(String[] args)
           
 

Constructors in opennlp.tools.formats with parameters of type ObjectStream
Conll02NameSampleStream(Conll02NameSampleStream.LANGUAGE lang, ObjectStream<String> lineStream, int types)
           
Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang, ObjectStream<String> lineStream, int types)
           
ConllXPOSSampleStream(ObjectStream<String> lineStream)
           
NameFinderCensus90NameStream(ObjectStream<String> lineStream)
          This constructor takes an ObjectStream and initializes the class to handle the stream.
 

Uses of ObjectStream in opennlp.tools.formats.ad
 

Classes in opennlp.tools.formats.ad that implement ObjectStream
 class ADChunkSampleStream
          Parser for Floresta Sita(c)tica Arvores Deitadas corpus, output to for the Portuguese Chunker training.
 class ADNameSampleStream
          Parser for Floresta Sita(c)tica Arvores Deitadas corpus, output to for the Portuguese NER training.
 class ADPOSSampleStream
          Note: Do not use this class, internal use only!
 class ADSentenceSampleStream
          Note: Do not use this class, internal use only!
 class ADSentenceStream
          Stream filter which merges text lines into sentences, following the Arvores Deitadas syntax.
 

Fields in opennlp.tools.formats.ad declared as ObjectStream
protected  ObjectStream<ADSentenceStream.Sentence> ADChunkSampleStream.adSentenceStream
           
 

Methods in opennlp.tools.formats.ad that return ObjectStream
 ObjectStream<NameSample> ADNameSampleStreamFactory.create(String[] args)
           
 ObjectStream<ChunkSample> ADChunkSampleStreamFactory.create(String[] args)
           
 ObjectStream<POSSample> ADPOSSampleStreamFactory.create(String[] args)
           
 ObjectStream<SentenceSample> ADSentenceSampleStreamFactory.create(String[] args)
           
 ObjectStream<TokenSample> ADTokenSampleStreamFactory.create(String[] args)
           
 

Constructors in opennlp.tools.formats.ad with parameters of type ObjectStream
ADChunkSampleStream(ObjectStream<String> lineStream)
          Creates a new NameSample stream from a line stream, i.e.
ADNameSampleStream(ObjectStream<String> lineStream, boolean splitHyphenatedTokens)
          Creates a new NameSample stream from a line stream, i.e.
ADPOSSampleStream(ObjectStream<String> lineStream, boolean expandME, boolean includeFeatures)
          Creates a new POSSample stream from a line stream, i.e.
ADSentenceSampleStream(ObjectStream<String> lineStream, boolean includeHeadlines)
          Creates a new SentenceSample stream from a line stream, i.e.
ADSentenceStream(ObjectStream<String> lineStream)
           
 

Uses of ObjectStream in opennlp.tools.formats.convert
 

Classes in opennlp.tools.formats.convert that implement ObjectStream
 class AbstractToSentenceSampleStream<T>
           
 class FileToByteArraySampleStream
           
 class FileToStringSampleStream
           
 class NameToSentenceSampleStream
          Note: Do not use this class, internal use only!
 class NameToTokenSampleStream
          Note: Do not use this class, internal use only!
 class ParseToPOSSampleStream
          Note: Do not use this class, internal use only!
 class POSToSentenceSampleStream
          Note: Do not use this class, internal use only!
 class POSToTokenSampleStream
          Note: Do not use this class, internal use only!
 

Methods in opennlp.tools.formats.convert that return ObjectStream
 ObjectStream<SentenceSample> ParseToSentenceSampleStreamFactory.create(String[] args)
           
 ObjectStream<TokenSample> POSToTokenSampleStreamFactory.create(String[] args)
           
 ObjectStream<TokenSample> NameToTokenSampleStreamFactory.create(String[] args)
           
 ObjectStream<SentenceSample> NameToSentenceSampleStreamFactory.create(String[] args)
           
 ObjectStream<SentenceSample> POSToSentenceSampleStreamFactory.create(String[] args)
           
 ObjectStream<TokenSample> ParseToTokenSampleStreamFactory.create(String[] args)
           
 ObjectStream<POSSample> ParseToPOSSampleStreamFactory.create(String[] args)
           
 

Constructors in opennlp.tools.formats.convert with parameters of type ObjectStream
FileToByteArraySampleStream(ObjectStream<File> samples)
           
FileToStringSampleStream(ObjectStream<File> samples, Charset encoding)
           
NameToSentenceSampleStream(Detokenizer detokenizer, ObjectStream<NameSample> samples, int chunkSize)
           
NameToTokenSampleStream(Detokenizer detokenizer, ObjectStream<NameSample> samples)
           
ParseToPOSSampleStream(ObjectStream<Parse> samples)
           
POSToSentenceSampleStream(Detokenizer detokenizer, ObjectStream<POSSample> samples, int chunkSize)
           
POSToTokenSampleStream(Detokenizer detokenizer, ObjectStream<POSSample> samples)
           
 

Uses of ObjectStream in opennlp.tools.formats.frenchtreebank
 

Classes in opennlp.tools.formats.frenchtreebank that implement ObjectStream
 class ConstitParseSampleStream
           
 

Methods in opennlp.tools.formats.frenchtreebank that return ObjectStream
 ObjectStream<Parse> ConstitParseSampleStreamFactory.create(String[] args)
           
 

Constructors in opennlp.tools.formats.frenchtreebank with parameters of type ObjectStream
ConstitParseSampleStream(ObjectStream<byte[]> samples)
           
 

Uses of ObjectStream in opennlp.tools.formats.muc
 

Classes in opennlp.tools.formats.muc that implement ObjectStream
 class FullParseCorefEnhancerStream
           
 class MucCorefSampleStream
           
 class MucMentionInserterStream
          The mention insert is responsible to insert the mentions from the training data into the parse trees.
 class MucNameSampleStream
           
 class NameFinderCorefEnhancerStream
          Adds names to the Coref Sample Stream.
 class ShallowParseCorefEnhancerStream
           
 

Methods in opennlp.tools.formats.muc that return ObjectStream
 ObjectStream<NameSample> Muc6NameSampleStreamFactory.create(String[] args)
           
 ObjectStream<CorefSample> Muc6FullParseCorefSampleStreamFactory.create(String[] args)
           
 

Constructors in opennlp.tools.formats.muc with parameters of type ObjectStream
FullParseCorefEnhancerStream(Parser parser, ObjectStream<RawCorefSample> samples)
           
MucCorefSampleStream(Tokenizer tokenizer, ObjectStream<String> documents)
           
MucMentionInserterStream(ObjectStream<RawCorefSample> samples)
           
MucNameSampleStream(Tokenizer tokenizer, ObjectStream<String> samples)
           
NameFinderCorefEnhancerStream(TokenNameFinder[] nameFinders, String[] tags, ObjectStream<RawCorefSample> samples)
           
ShallowParseCorefEnhancerStream(POSTagger posTagger, Chunker chunker, ObjectStream<RawCorefSample> samples)
           
 

Uses of ObjectStream in opennlp.tools.namefind
 

Classes in opennlp.tools.namefind that implement ObjectStream
 class NameSampleDataStream
          The NameSampleDataStream class converts tagged Strings provided by a DataStream to NameSample objects.
 class NameSampleTypeFilter
          A stream which removes Name Samples which do not have a certain type.
 

Methods in opennlp.tools.namefind with parameters of type ObjectStream
 void TokenNameFinderCrossValidator.evaluate(ObjectStream<NameSample> samples, int nFolds)
          Starts the evaluation.
static TokenNameFinderModel NameFinderME.train(String languageCode, String type, ObjectStream<NameSample> samples, AdaptiveFeatureGenerator generator, Map<String,Object> resources, int iterations, int cutoff)
          Trains a name finder model.
static TokenNameFinderModel NameFinderME.train(String languageCode, String type, ObjectStream<NameSample> samples, byte[] generatorDescriptor, Map<String,Object> resources, int iterations, int cutoff)
          Deprecated. use NameFinderME.train(String, String, ObjectStream, TrainingParameters, byte[], Map) instead and pass in a TrainingParameters object.
static TokenNameFinderModel NameFinderME.train(String languageCode, String type, ObjectStream<NameSample> samples, Map<String,Object> resources)
           
static TokenNameFinderModel NameFinderME.train(String languageCode, String type, ObjectStream<NameSample> samples, Map<String,Object> resources, int iterations, int cutoff)
          Deprecated. use NameFinderME.train(String, String, ObjectStream, TrainingParameters, AdaptiveFeatureGenerator, Map) instead and pass in a TrainingParameters object.
static TokenNameFinderModel NameFinderME.train(String languageCode, String type, ObjectStream<NameSample> samples, TrainingParameters trainParams, AdaptiveFeatureGenerator generator, Map<String,Object> resources)
          Trains a name finder model.
static TokenNameFinderModel NameFinderME.train(String languageCode, String type, ObjectStream<NameSample> samples, TrainingParameters trainParams, byte[] featureGeneratorBytes, Map<String,Object> resources)
          Trains a name finder model.
 

Constructors in opennlp.tools.namefind with parameters of type ObjectStream
NameFinderEventStream(ObjectStream<NameSample> dataStream)
           
NameFinderEventStream(ObjectStream<NameSample> dataStream, String type, NameContextGenerator contextGenerator)
          Creates a new name finder event stream using the specified data stream and context generator.
NameSampleDataStream(ObjectStream<String> in)
           
NameSampleSequenceStream(ObjectStream<NameSample> psi)
           
NameSampleSequenceStream(ObjectStream<NameSample> psi, AdaptiveFeatureGenerator featureGen)
           
NameSampleSequenceStream(ObjectStream<NameSample> psi, NameContextGenerator pcg)
           
NameSampleTypeFilter(Set<String> types, ObjectStream<NameSample> samples)
           
NameSampleTypeFilter(String[] types, ObjectStream<NameSample> samples)
           
 

Uses of ObjectStream in opennlp.tools.parser
 

Classes in opennlp.tools.parser that implement ObjectStream
 class ParseSampleStream
           
 class PosSampleStream
           
 

Methods in opennlp.tools.parser with parameters of type ObjectStream
static Dictionary AbstractBottomUpParser.buildDictionary(ObjectStream<Parse> data, HeadRules rules, int cutoff)
          Creates a n-gram dictionary from the specified data stream using the specified head rule and specified cut-off.
static Dictionary AbstractBottomUpParser.buildDictionary(ObjectStream<Parse> data, HeadRules rules, TrainingParameters params)
          Creates a n-gram dictionary from the specified data stream using the specified head rule and specified cut-off.
 

Constructors in opennlp.tools.parser with parameters of type ObjectStream
AbstractParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)
           
AbstractParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)
           
ChunkSampleStream(ObjectStream<Parse> in)
           
ParseSampleStream(ObjectStream<String> in)
           
PosSampleStream(ObjectStream<Parse> in)
           
 

Uses of ObjectStream in opennlp.tools.parser.chunking
 

Methods in opennlp.tools.parser.chunking with parameters of type ObjectStream
static ParserModel Parser.train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, int iterations, int cut)
          Deprecated. use Parser.train(String, ObjectStream, HeadRules, TrainingParameters) instead and pass in a TrainingParameters object.
static ParserModel Parser.train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams)
           
 

Constructors in opennlp.tools.parser.chunking with parameters of type ObjectStream
ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)
           
ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)
          Create an event stream based on the specified data stream of the specified type using the specified head rules.
 

Uses of ObjectStream in opennlp.tools.parser.treeinsert
 

Methods in opennlp.tools.parser.treeinsert with parameters of type ObjectStream
static ParserModel Parser.train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, int iterations, int cut)
           
static ParserModel Parser.train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams)
           
 

Constructors in opennlp.tools.parser.treeinsert with parameters of type ObjectStream
ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)
           
ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)
           
 

Uses of ObjectStream in opennlp.tools.postag
 

Classes in opennlp.tools.postag that implement ObjectStream
 class WordTagSampleStream
          A stream filter which reads a sentence per line which contains words and tags in word_tag format and outputs a POSSample objects.
 

Methods in opennlp.tools.postag with parameters of type ObjectStream
static Dictionary POSTaggerME.buildNGramDictionary(ObjectStream<POSSample> samples, int cutoff)
           
 void POSTaggerCrossValidator.evaluate(ObjectStream<POSSample> samples, int nFolds)
          Starts the evaluation.
static void POSTaggerME.populatePOSDictionary(ObjectStream<POSSample> samples, MutableTagDictionary dict, int cutoff)
           
static POSModel POSTaggerME.train(String languageCode, ObjectStream<POSSample> samples, ModelType modelType, POSDictionary tagDictionary, Dictionary ngramDictionary, int cutoff, int iterations)
          Deprecated. use POSTaggerME.train(String, ObjectStream, TrainingParameters, POSTaggerFactory) instead and pass in a POSTaggerFactory and a TrainingParameters.
static POSModel POSTaggerTrainer.train(String languageCode, ObjectStream<POSSample> samples, POSDictionary tagDictionary, Dictionary ngramDictionary, int cutoff, int iterations)
          Deprecated.  
static POSModel POSTaggerME.train(String languageCode, ObjectStream<POSSample> samples, TrainingParameters trainParams, POSDictionary tagDictionary, Dictionary ngramDictionary)
          Deprecated. use POSTaggerME.train(String, ObjectStream, TrainingParameters, POSTaggerFactory) instead and pass in a POSTaggerFactory.
static POSModel POSTaggerME.train(String languageCode, ObjectStream<POSSample> samples, TrainingParameters trainParams, POSTaggerFactory posFactory)
           
 

Constructors in opennlp.tools.postag with parameters of type ObjectStream
POSSampleEventStream(ObjectStream<POSSample> samples)
          Initializes the current instance with given samples and a DefaultPOSContextGenerator.
POSSampleEventStream(ObjectStream<POSSample> samples, POSContextGenerator cg)
          Initializes the current instance with the given samples and the given POSContextGenerator.
POSSampleSequenceStream(ObjectStream<POSSample> psi)
           
POSSampleSequenceStream(ObjectStream<POSSample> psi, POSContextGenerator pcg)
           
WordTagSampleStream(ObjectStream<String> sentences)
           
 

Uses of ObjectStream in opennlp.tools.sentdetect
 

Classes in opennlp.tools.sentdetect that implement ObjectStream
 class EmptyLinePreprocessorStream
          Stream to to clean up empty lines for empty line separated document streams.
- Skips empty line at training data start
- Transforms multiple empty lines in a row into one
- Replaces white space lines with empty lines
- TODO: Terminates last document with empty line if it is missing

This stream should be used by the components that mark empty lines to mark document boundaries.
 class SentenceSampleStream
          This class is a stream filter which reads a sentence by line samples from a Reader and converts them into SentenceSample objects.
 

Methods in opennlp.tools.sentdetect with parameters of type ObjectStream
 void SDCrossValidator.evaluate(ObjectStream<SentenceSample> samples, int nFolds)
          Starts the evaluation.
static SentenceModel SentenceDetectorME.train(String languageCode, ObjectStream<SentenceSample> samples, boolean useTokenEnd, Dictionary abbreviations)
          Deprecated. Use SentenceDetectorME.train(String, ObjectStream, SentenceDetectorFactory, TrainingParameters) and pass in af SentenceDetectorFactory.
static SentenceModel SentenceDetectorME.train(String languageCode, ObjectStream<SentenceSample> samples, boolean useTokenEnd, Dictionary abbreviations, int cutoff, int iterations)
          Deprecated. Use SentenceDetectorME.train(String, ObjectStream, SentenceDetectorFactory, TrainingParameters) and pass in af SentenceDetectorFactory.
static SentenceModel SentenceDetectorME.train(String languageCode, ObjectStream<SentenceSample> samples, boolean useTokenEnd, Dictionary abbreviations, TrainingParameters mlParams)
          Deprecated. Use SentenceDetectorME.train(String, ObjectStream, SentenceDetectorFactory, TrainingParameters) and pass in af SentenceDetectorFactory.
static SentenceModel SentenceDetectorME.train(String languageCode, ObjectStream<SentenceSample> samples, SentenceDetectorFactory sdFactory, TrainingParameters mlParams)
           
 

Constructors in opennlp.tools.sentdetect with parameters of type ObjectStream
EmptyLinePreprocessorStream(ObjectStream<String> in)
           
SDEventStream(ObjectStream<SentenceSample> samples, SDContextGenerator cg, EndOfSentenceScanner scanner)
          Initializes the current instance.
SentenceSampleStream(ObjectStream<String> sentences)
           
 

Uses of ObjectStream in opennlp.tools.tokenize
 

Classes in opennlp.tools.tokenize that implement ObjectStream
 class TokenizerStream
          The TokenizerStream uses a tokenizer to tokenize the input string and output TokenSamples.
 class TokenSampleStream
          This class is a stream filter which reads in string encoded samples and creates TokenSamples out of them.
 class WhitespaceTokenStream
          This stream formats a TokenSamples into whitespace separated token strings.
 

Methods in opennlp.tools.tokenize with parameters of type ObjectStream
 void TokenizerCrossValidator.evaluate(ObjectStream<TokenSample> samples, int nFolds)
          Starts the evaluation.
static TokenizerModel TokenizerME.train(ObjectStream<TokenSample> samples, TokenizerFactory factory, TrainingParameters mlParams)
          Trains a model for the TokenizerME.
static TokenizerModel TokenizerME.train(String languageCode, ObjectStream<TokenSample> samples, boolean useAlphaNumericOptimization)
          Deprecated. Use #train(String, ObjectStream, TokenizerFactory, TrainingParameters) and pass in a TokenizerFactory
static TokenizerModel TokenizerME.train(String languageCode, ObjectStream<TokenSample> samples, boolean useAlphaNumericOptimization, int cutoff, int iterations)
          Deprecated. Use #train(String, ObjectStream, TokenizerFactory, TrainingParameters) and pass in a TokenizerFactory
static TokenizerModel TokenizerME.train(String languageCode, ObjectStream<TokenSample> samples, boolean useAlphaNumericOptimization, TrainingParameters mlParams)
          Deprecated. Use #train(String, ObjectStream, TokenizerFactory, TrainingParameters) and pass in a TokenizerFactory
static TokenizerModel TokenizerME.train(String languageCode, ObjectStream<TokenSample> samples, Dictionary abbreviations, boolean useAlphaNumericOptimization, TrainingParameters mlParams)
          Deprecated. Use #train(String, ObjectStream, TokenizerFactory, TrainingParameters) and pass in a TokenizerFactory
 

Constructors in opennlp.tools.tokenize with parameters of type ObjectStream
TokenizerStream(Tokenizer tokenizer, ObjectStream<String> input)
           
TokenSampleStream(ObjectStream<String> sentences)
           
TokenSampleStream(ObjectStream<String> sampleStrings, String separatorChars)
           
TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics)
          Initializes the current instance.
TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, Pattern alphaNumeric, TokenContextGenerator cg)
          Initializes the current instance.
TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, TokenContextGenerator cg)
          Initializes the current instance.
WhitespaceTokenStream(ObjectStream<TokenSample> tokens)
           
 

Uses of ObjectStream in opennlp.tools.util
 

Classes in opennlp.tools.util that implement ObjectStream
 class CollectionObjectStream<E>
           
 class FilterObjectStream<S,T>
          Abstract base class for filtering ObjectStreams.
 class ParagraphStream
          Stream filter which merges text lines into paragraphs.
 class PlainTextByLineStream
          Reads a plain text file and return each line as a String object.
 

Fields in opennlp.tools.util declared as ObjectStream
protected  ObjectStream<S> FilterObjectStream.samples
           
 

Methods in opennlp.tools.util that return ObjectStream
static
<T> ObjectStream<T>
ObjectStreamUtils.createObjectStream(Collection<T> collection)
          Creates an ObjectStream form a collection.
static
<T> ObjectStream<T>
ObjectStreamUtils.createObjectStream(ObjectStream<T>... streams)
           
static
<T> ObjectStream<T>
ObjectStreamUtils.createObjectStream(T... array)
          Creates an ObjectStream form an array.
 

Methods in opennlp.tools.util with parameters of type ObjectStream
static
<T> ObjectStream<T>
ObjectStreamUtils.createObjectStream(ObjectStream<T>... streams)
           
 

Constructors in opennlp.tools.util with parameters of type ObjectStream
AbstractEventStream(ObjectStream<T> samples)
          Initializes the current instance with a sample Iterator.
FilterObjectStream(ObjectStream<S> samples)
           
ParagraphStream(ObjectStream<String> lineStream)
           
 

Uses of ObjectStream in opennlp.tools.util.eval
 

Classes in opennlp.tools.util.eval that implement ObjectStream
static class CrossValidationPartitioner.TrainingSampleStream<E>
          The TrainingSampleStream which iterates over all training elements.
 

Methods in opennlp.tools.util.eval that return ObjectStream
 ObjectStream<E> CrossValidationPartitioner.TrainingSampleStream.getTestSampleStream()
          Retrieves the ObjectStream over the test/evaluations elements and poisons this TrainingSampleStream.
 

Methods in opennlp.tools.util.eval with parameters of type ObjectStream
 void Evaluator.evaluate(ObjectStream<T> samples)
          Reads all sample objects from the stream and evaluates each sample object with Evaluator.evaluateSample(Object) method.
 

Constructors in opennlp.tools.util.eval with parameters of type ObjectStream
CrossValidationPartitioner(ObjectStream<E> inElements, int numberOfPartitions)
          Initializes the current instance.
 



Copyright © 2013 The Apache Software Foundation. All Rights Reserved.