/** * This is the code we used to deduce voice in Spanish (and Catalan) for CoNLL 2009, however we * didn't actually use it in the final submission. I think it was because we never saw any real * improvement. I'm not sure it's proper though, my Spanish skills are rather non-existant. I just * put it here for future reference. * * @param pred the predicate * @return true if the predicate (verb) is in passive tense, false otherwise */ private boolean isPassive(Predicate pred) { for (Word c : pred.getChildren()) if ((c.getLemma().equals("estar") || c.getLemma().equals("ser")) && c.getFeats().contains("auxiliary")) return true; return false; }