use of org.deeplearning4j.text.sentenceiterator.LineSentenceIterator in project deeplearning4j by deeplearning4j.
the class GloveTest method before.
@Before
public void before() throws Exception {
ClassPathResource resource = new ClassPathResource("/raw_sentences.txt");
File file = resource.getFile();
iter = new LineSentenceIterator(file);
iter.setPreProcessor(new SentencePreProcessor() {
@Override
public String preProcess(String sentence) {
return sentence.toLowerCase();
}
});
}
Aggregations