I have a question regarding SentenceIterator/DocumentIterator for NLP. Each line in my file represents a short document, which consists of 1 or more sentences. I would like to pass each line to UIMA nlp processor and receive a List of pos-tagged sentences for this single line (therefore one document), let's say List of PosTaggedSentences. Is there something similar in the DL4j library that can achieve this purpose?
SentenceIterator iter = UimaSentenceIterator.createWithPath(filePath);
This code splits all sentences in the file into individual ones, but it doesn't preserve the structure of one document per line.
Any suggestions how to do this in DL4j?