Package opennlp.ccg.parse.tagger.sequencescoring

Examples of opennlp.ccg.parse.tagger.sequencescoring.SequenceScorer


            if (tagSequenceModel != null) {
                // find the n-gram order of the model.
                int ord = SequenceScorer.findOrder(tagSequenceModel);
                // load it into the SequenceScorer.
                seqScorer = new SequenceScorer(ord, tagSequenceModel);
                seqScorer.setSearchBeam(5);
                seqScorer.setAlgorithm(alg);
            }
        } catch (IOException ex) {
            Logger.getLogger(WordAndPOSDictionaryLabellingStrategy.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here


    public BasicPOSTagger(MaxentModel tagMod, FeatureExtractor posFex, String tagSequenceModel)  {
        this.posFex = posFex;
        this.tagMod = tagMod;
        int ord = SequenceScorer.findOrder(tagSequenceModel);
        try {
            posSeqMod = new SequenceScorer(ord, tagSequenceModel);
            // set the search algorithm.
            posSeqMod.setAlgorithm(Constants.TaggingAlgorithm.FORWARDBACKWARD);
            // set the search beam width
            posSeqMod.setSearchBeam(5);
           
View Full Code Here

TOP

Related Classes of opennlp.ccg.parse.tagger.sequencescoring.SequenceScorer

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.