Package opennlp.tools.chunker

Examples of opennlp.tools.chunker.DefaultChunkerSequenceValidator


      detailedFMeasureListener = new ChunkerDetailedFMeasureListener();
      listeners.add(detailedFMeasureListener);
    }

    ChunkerEvaluator evaluator = new ChunkerEvaluator(new ChunkerME(model,
        ChunkerME.DEFAULT_BEAM_SIZE, new DefaultChunkerSequenceValidator()),
        listeners.toArray(new ChunkerEvaluationMonitor[listeners.size()]));
   
    final ObjectStream<ChunkSample> sampleStream = ChunkerTrainerTool.openSampleData("Test",
        testData, encoding);
View Full Code Here


    }
   
    ChunkerModel model = new ChunkerModelLoader().load(new File(args[0]));
   
    ChunkerME chunker = new ChunkerME(model, ChunkerME.DEFAULT_BEAM_SIZE,
        new DefaultChunkerSequenceValidator());
   
    ObjectStream<String> lineStream =
      new PlainTextByLineStream(new InputStreamReader(System.in));
   
    PerformanceMonitor perfMon = new PerformanceMonitor(System.err, "sent");
View Full Code Here

TOP

Related Classes of opennlp.tools.chunker.DefaultChunkerSequenceValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.