Sha256: 665cc625afe23b3be5679dbf6f80cf3065fc99d6130499b339160c85e9208d3e

Contents?: true

Size: 1.01 KB

Versions: 45

Compression:

Stored size: 1.01 KB

Contents

package lingscope.drivers;

import java.util.List;
import lingscope.algorithms.Annotator;
import lingscope.io.AnnotatedSentencesIO;
import lingscope.structures.AnnotatedSentence;

/**
 * Runs the annotators
 * @author shashank
 */
public class NegexDriver {

    /**
     *
     * @param args
     * 0 - Annotator type ("cue" or "scope")
     * 1 - Serialized annotator file
     * 2 - Input file
     * 3 - Output file
     * 4 - (boolean) does the input file contain annotated sentence (true) or
     * not (false)
     */
    public static void main(String[] args) {
        Annotator annotator = SentenceTagger.getAnnotator("negex", args[0]);
        annotator.loadAnnotator(args[1]);
        boolean isAnnotated = Boolean.parseBoolean(args[4]);
        List<String> inputSentences = SentenceTagger.getStringList(args[2], isAnnotated);
        List<AnnotatedSentence> outputSentences = SentenceTagger.annotateSentences(annotator, inputSentences, isAnnotated);
        AnnotatedSentencesIO.write(args[3], outputSentences);
    }
}

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
abstractor-4.4.7 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.4.6 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.4.5 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.4.4 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.4.3 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.4.2 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.4.1 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.4.0 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.3.3 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.3.2 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.3.1 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.3.0 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.2.3 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.2.2 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.2.1 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.2.0 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.1.5 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.1.4 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.1.3 lib/lingscope/src/lingscope/drivers/NegexDriver.java
abstractor-4.1.2 lib/lingscope/src/lingscope/drivers/NegexDriver.java