@@ -0,0 +1,1244 @@
+package org.cleartk.example.sentence;%0D%0A%0D%0Aimport java.io.IOException;%0D%0A%0D%0Aimport org.apache.uima.UIMAException;%0D%0Aimport org.apache.uima.analysis_engine.AnalysisEngine;%0D%0Aimport org.apache.uima.collection.CollectionReader;%0D%0Aimport org.cleartk.CleartkComponents;%0D%0Aimport org.cleartk.sentence.opennlp.OpenNLPSentenceSegmenter;%0D%0Aimport org.cleartk.type.Sentence;%0D%0Aimport org.cleartk.util.FilesCollectionReader;%0D%0Aimport org.cleartk.util.linewriter.LineWriter;%0D%0Aimport org.uutuc.util.SimplePipeline;%0D%0A%0D%0Apublic class Docs2Sentences %7B%0D%0A%0D%0A%09public static void main(String%5B%5D args) throws UIMAException, IOException %7B%0D%0A%09%09String inputDirectoryName = args%5B0%5D;%0D%0A%09%09String outputFileName = args%5B1%5D;%0D%0A%09%09%0D%0A%09%09CollectionReader filesReader = CleartkComponents.createCollectionReader(FilesCollectionReader.class, FilesCollectionReader.PARAM_FILE_OR_DIRECTORY, inputDirectoryName);%0D%0A%09%09AnalysisEngine sentences = CleartkComponents.createPrimitive(OpenNLPSentenceSegmenter.class);%0D%0A%09%09AnalysisEngine lineWriter = CleartkComponents.createPrimitive(LineWriter.class, LineWriter.PARAM_OUTPUT_FILE_NAME, outputFileName, LineWriter.PARAM_OUTPUT_ANNOTATION_CLASS_NAME, Sentence.class.getName());%0D%0A%0D%0A%09%09SimplePipeline.runPipeline(filesReader, sentences, lineWriter);%0D%0A%09%0D%0A%09%09%0D%0A%09%7D%0D%0A%7D%0D%0A

Here is a simple script that: "Anyone have an AE/CAS consumer that can take a directory as input and produce a list of sentences as output?"