public int getType() { POS pos = getPOS(); if(pos != POS.ADJECTIVE) return pos.getNumber(); return isAdjectiveSatellite() ? 5 : 3; }
/** * @param synset A WordNet synset. * @return Creates an Entity from a synset. */ public static Entity synsetToEntity(Synset synset) { if (synset == null) { return null; } return new Entity(getSynsetLexemes(synset), mapPos(synset.getPOS())); }