public class LanguageDetectorSampleStream extends FilterObjectStream<String,LanguageSample>
LanguageSample objects.
 
 Format:
 Each line contains one sample document.
 The language is the first string in the line followed by a tab and the document content.
 Sample line: category-string tab-char document line-break-char(s)
| Constructor and Description | 
|---|
| LanguageDetectorSampleStream(ObjectStream<String> samples) | 
| Modifier and Type | Method and Description | 
|---|---|
| LanguageSample | read()Returns the next object. | 
close, resetpublic LanguageDetectorSampleStream(ObjectStream<String> samples)
public LanguageSample read() throws IOException
ObjectStreamIOException - if there is an error during readingCopyright © 2018 The Apache Software Foundation. All rights reserved.