Package joshua.decoder.segment_file

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

Related Classes of joshua.decoder.segment_file.HackishSegmentParser

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.