@@ -0,0 +1,1272 @@
+package org.deeplearning4j.word2vec.sentenceiterator;%0A%0Aimport org.apache.commons.io.FileUtils;%0Aimport org.apache.commons.io.LineIterator;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0A/**%0A * Each line is a sentence%0A *%0A * @author Adam Gibson%0A */%0Apublic class LineSentenceIterator extends BaseSentenceIterator %7B%0A%0A    private File file;%0A    private LineIterator iter;%0A%0A    public LineSentenceIterator(File f) %7B%0A        if (!f.exists() %7C%7C !f.isFile())%0A            throw new IllegalArgumentException(%22Please specify an existing file%22);%0A        this.file = f;%0A        try %7B%0A            iter = FileUtils.lineIterator(file);%0A        %7D catch (IOException e) %7B%0A            throw new RuntimeException(e);%0A        %7D%0A    %7D%0A%0A    @Override%0A    public String nextSentence() %7B%0A        String line = iter.nextLine();%0A        if (preProcessor != null) %7B%0A            line = preProcessor.preProcess(line);%0A        %7D%0A        return line;%0A    %7D%0A%0A    @Override%0A    public boolean hasNext() %7B%0A        return iter.hasNext();%0A    %7D%0A%0A    @Override%0A    public void reset() %7B%0A        try %7B%0A            if (iter != null)%0A                iter.close();%0A            iter = FileUtils.lineIterator(file);%0A        %7D catch (IOException e) %7B%0A            throw new RuntimeException(e);%0A        %7D%0A%0A    %7D%0A%0A%0A%7D%0A

Create LineSentenceIterator.java