Class WordTagSampleStream

    • Method Detail

      • read

        public POSSample read()
                       throws IOException
        Parses the next sentence and return the next POSSample object.

        If an error occurs an empty POSSample object is returned and a warning message is logged. Usually it does not matter if one or many sentences are ignored.

        Returns:
        A valid POSSample or null if the sentence stream is exhausted.
        Throws:
        IOException - Thrown if IO errors occurred during read.