Example #1
0
  private void init(Element eArgument) {
    setType(XmlUtils.getTrimmedAttribute(eArgument, VNXml.A_TYPE));
    setValue(XmlUtils.getTrimmedAttribute(eArgument, VNXml.A_VALUE));

    if (isType(VNXml.ARG_TYPE_THEM_ROLE) || isType(VNXml.ARG_TYPE_VERB_SPECIFIC))
      s_value = StringUtils.toLowerCase(s_value);
  }
Example #2
0
  private void init() {
    Element eMode = getModeElement();

    boolean evalPunct =
        XmlUtils.getBooleanTextContent(
            XmlUtils.getFirstElementByTagName(eMode, "evaluate_punctuation"));
    String rootLabel =
        XmlUtils.getTrimmedTextContent(XmlUtils.getFirstElementByTagName(eMode, "root_label"));
    int beamSize =
        XmlUtils.getIntegerTextContent(XmlUtils.getFirstElementByTagName(eMode, "beam_size"));

    setEvaluatePunctuation(evalPunct);
    setRootLabel(rootLabel);
    setBeamSize(beamSize);
  }