@@ -0,0 +1,2529 @@
+ /** %0D%0A * Copyright (c) 2009, Regents of the University of Colorado %0D%0A * All rights reserved.%0D%0A * %0D%0A * Redistribution and use in source and binary forms, with or without%0D%0A * modification, are permitted provided that the following conditions are met:%0D%0A * %0D%0A * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. %0D%0A * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. %0D%0A * Neither the name of the University of Colorado at Boulder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. %0D%0A * %0D%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS %22AS IS%22%0D%0A * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE%0D%0A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE%0D%0A * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE%0D%0A * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR%0D%0A * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF%0D%0A * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS%0D%0A * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN%0D%0A * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)%0D%0A * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE%0D%0A * POSSIBILITY OF SUCH DAMAGE. %0D%0A*/%0D%0A%0D%0Apackage org.cleartk.corpus.genia;%0D%0A%0D%0Aimport java.io.IOException;%0D%0A%0D%0Aimport org.apache.uima.UIMAException;%0D%0Aimport org.apache.uima.analysis_engine.AnalysisEngineDescription;%0D%0Aimport org.apache.uima.collection.CollectionReader;%0D%0Aimport org.cleartk.util.PlainTextWriter;%0D%0Aimport org.cleartk.util.UIMAUtil;%0D%0A%0D%0A/**%0D%0A * %3Cbr%3ECopyright (c) 2009, Regents of the University of Colorado %0D%0A * %3Cbr%3EAll rights reserved.%0D%0A * %3Cp%3E%0D%0A * %0D%0A * @author Philip Ogren%0D%0A *%0D%0A * This class provides a way to recover the original text of the GENIA corpus %22GENIAcorpus3.02.pos.xml%22.  %0D%0A * %0D%0A */%0D%0Apublic class Genia2PlainText %7B%0D%0A%0D%0A%09public static void main(String%5B%5D args) throws UIMAException, IOException %7B%0D%0A%09%09CollectionReader geniaReader = GeniaPosGoldReader.getDescription(args%5B0%5D);%0D%0A%09%09AnalysisEngineDescription plainTextWriter = PlainTextWriter.getDescription(args%5B1%5D);%0D%0A%09%09UIMAUtil.runUIMAPipeline(geniaReader, plainTextWriter);%0D%0A%09%09%0D%0A%09%7D%0D%0A%7D%0D%0A

Initial commit of a short script that converts the GENIA corpus into plaintext