Package opennlp.ccg.parse.tagger.Constants

Examples of opennlp.ccg.parse.tagger.Constants.TaggingAlgorithm


       
        // should we use the tagging dictionaries (yes if there is no prior model).
        boolean useWordDictionary = (wDictS != null);
        boolean usePOSDictionary = (pDictS != null);
        POSTagger pTagger = (posConfigS == null) ? null : POSTagger.posTaggerFactory(posConfigS);
        TaggingAlgorithm alg = (opts.get("taggingalgorithm") == null || opts.get("taggingalgorithm").equals("forward-backward")) ?
            TaggingAlgorithm.FORWARDBACKWARD : TaggingAlgorithm.FORWARD;
        MaxentModel mem = new ZLMEM(new File(maxentModS));
        //STTaggerWordDictionary wd,STTaggerPOSDictionary pd,  int K, MaxentModel mo, FeatureExtractor fexer,
        //String tagSequenceModel, Constants.TaggingAlgorithm alg, POSTagger posTagger
        res = (pTagger != null) ?
View Full Code Here


      }
            POSTagFex fexer = new POSTagFex(posPrior);

            res = new BasicPOSTagger(mem, fexer, opts.get("sequencemodel"));
            res.setBeta(Double.parseDouble(opts.get("beta")));
            TaggingAlgorithm alg = (opts.get("taggingalgorithm") == null || opts.get("taggingalgorithm").equals("forward-backward")) ?
                TaggingAlgorithm.FORWARDBACKWARD : TaggingAlgorithm.FORWARD;
            res.setTaggingAlgorithm(alg);

            res.setIncludeGold((opts.get("includegold") == null || opts.get("includegold").equals("false")) ? false : true);
           
View Full Code Here

TOP

Related Classes of opennlp.ccg.parse.tagger.Constants.TaggingAlgorithm

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.