Examples of HackishSegmentParser


Examples of joshua.decoder.segment_file.HackishSegmentParser

    //
    // TODO: maybe using real reflection would be cleaner. If it weren't for the argument for HackishSegmentParser then we could do all this over in the JoshuaConfiguration class instead
    final String className = JoshuaConfiguration.segmentFileParserClass;
    if (null == className) {
      // Use old behavior by default
      segmentParser = new HackishSegmentParser(this.startSentenceID);
     
    } else if ("PlainSegmentParser".equals(className)) {
      segmentParser = new PlainSegmentParser();
     
    } else if ("HackishSegmentParser".equals(className)) {
      segmentParser = new HackishSegmentParser(this.startSentenceID);
     
    } else if ("SAXSegmentParser".equals(className)) {
      segmentParser = new SAXSegmentParser();
     
    } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.