Sentence Iterator
Iteration of words, documents, and sentences for language processing in DL4J.
SentenceIterator iter = new LineSentenceIterator(new File("your file"));Collection<String> sentences = ...;
SentenceIterator iter = new CollectionSentenceIterator(sentences);SentenceIterator iter = new FileSentenceIterator(new File("your dir or file"));Last updated
Was this helpful?