/** * Say whether this character is an annotation introducing * character. * * @param ch The character to check * @return Whether it is an annotation introducing character */ public boolean isLabelAnnotationIntroducingCharacter(char ch) { if (tlp.isLabelAnnotationIntroducingCharacter(ch)) { return true; } //for heads, there's one more char we want to check because we don't care about grammatical fns if (ch == '-') { return true; } return false; }
private String changeBaseCat(String cat, String newBaseCat) { int i = 1; // not 0 in case tag is annotation introducing char int length = cat.length(); for (; (i < length); i++) { if (tlp.isLabelAnnotationIntroducingCharacter(cat.charAt(i))) { break; } } if (i < length) { return newBaseCat + cat.substring(i); } else { return newBaseCat; } }
/** * Say whether this character is an annotation introducing * character. * * @param ch The character to check * @return Whether it is an annotation introducing character */ public boolean isLabelAnnotationIntroducingCharacter(char ch) { if (tlp.isLabelAnnotationIntroducingCharacter(ch)) { return true; } //for heads, there's one more char we want to check because we don't care about grammatical fns if (ch == '-') { return true; } return false; }
/** * Say whether this character is an annotation introducing * character. * * @param ch The character to check * @return Whether it is an annotation introducing character */ public boolean isLabelAnnotationIntroducingCharacter(char ch) { if (tlp.isLabelAnnotationIntroducingCharacter(ch)) { return true; } //for heads, there's one more char we want to check because we don't care about grammatical fns if (ch == '-') { return true; } return false; }
private String changeBaseCat(String cat, String newBaseCat) { int i = 1; // not 0 in case tag is annotation introducing char int length = cat.length(); for (; (i < length); i++) { if (tlp.isLabelAnnotationIntroducingCharacter(cat.charAt(i))) { break; } } if (i < length) { return newBaseCat + cat.substring(i); } else { return newBaseCat; } }
private String changeBaseCat(String cat, String newBaseCat) { int i = 1; // not 0 in case tag is annotation introducing char int length = cat.length(); for (; (i < length); i++) { if (tlp.isLabelAnnotationIntroducingCharacter(cat.charAt(i))) { break; } } if (i < length) { return newBaseCat + cat.substring(i); } else { return newBaseCat; } }
private String changeBaseCat(String cat, String newBaseCat) { int i = 1; // not 0 in case tag is annotation introducing char int leng = cat.length(); for (; (i < leng); i++) { if (tlp.isLabelAnnotationIntroducingCharacter(cat.charAt(i))) { break; } } if (i < leng) { return newBaseCat + cat.substring(i); } else { return newBaseCat; } }
private String changeBaseCat(String cat, String newBaseCat) { int i = 1; // not 0 in case tag is annotation introducing char int length = cat.length(); for (; (i < length); i++) { if (tlp.isLabelAnnotationIntroducingCharacter(cat.charAt(i))) { break; } } if (i < length) { return newBaseCat + cat.substring(i); } else { return newBaseCat; } }