kylm.reader
Interface SentenceReader

All Superinterfaces:
java.lang.Iterable<java.lang.String[]>
All Known Implementing Classes:
TextArraySentenceReader, TextFileSentenceReader, TextStreamSentenceReader

public interface SentenceReader
extends java.lang.Iterable<java.lang.String[]>

An abstract class that allows the loading of sentences

Author:
neubig TODO: Add a "close" function

Method Summary
 java.util.Iterator<java.lang.String[]> iterator()
           
 boolean supportsReset()
          Whether the sentence loader supports returning multiple iterators or not.
 

Method Detail

iterator

java.util.Iterator<java.lang.String[]> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.lang.String[]>

supportsReset

boolean supportsReset()
Whether the sentence loader supports returning multiple iterators or not. If multiple iterators are not supported, input can only be read once.

Returns:
Whether multiple iterators can be returned.