Package joshua.decoder.segment_file

Examples of joshua.decoder.segment_file.Segment


          this.fatalError(new SAXParseException(
            "Found </seg> but segment was null (missing root tag?)",
            this.locator));
        } else {
          try {
            Segment seg  = this.tempSeg.typeCheck(text);
            this.tempSeg = null;
            this.coit.coNext(seg);
           
          } catch (TypeCheckingException e) {
            this.error(new SAXParseException(
View Full Code Here


          throw new TypeCheckingException("Overlapping hard spans in segment " + id + ", approximately in the range of " + span.start() + " to " + span.end());
        }
      }
    }
   
    return new Segment() {
      public String id()                        { return id;       }
      public String sentence()                  { return sentence; }
      public List<ConstraintSpan> constraints() { return spans;    }
    };
  }
View Full Code Here

TOP

Related Classes of joshua.decoder.segment_file.Segment

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.