/** * Return the <code>POS</code> whose id matches <var>id</var>, * or null if the id does not match any POS. * * @param id id for POS * @return POS */ public static POS getPOSForId(int id) { if (NOUN.getId() == id) { return POS.NOUN; } if (VERB.getId() == id) { return POS.VERB; } if (ADJECTIVE.getId() == id) { return POS.ADJECTIVE; } if (ADVERB.getId() == id) { return POS.ADVERB; } if (ADJECTIVE_SATELLITE_ID == id) { return POS.ADJECTIVE; } return null; }
/** * Return the <code>POS</code> whose id matches <var>id</var>, * or null if the id does not match any POS. * * @param id id for POS * @return POS */ public static POS getPOSForId(int id) { if (NOUN.getId() == id) { return POS.NOUN; } if (VERB.getId() == id) { return POS.VERB; } if (ADJECTIVE.getId() == id) { return POS.ADJECTIVE; } if (ADVERB.getId() == id) { return POS.ADVERB; } if (ADJECTIVE_SATELLITE_ID == id) { return POS.ADJECTIVE; } return null; }
protected int getSynsetType() { int ss_type = getPOS().getId(); if (POS.ADJECTIVE == getSynset().getPOS() && getSynset().isAdjectiveCluster()) { ss_type = POS.ADJECTIVE_SATELLITE_ID; } return ss_type; }
protected int getSynsetType() { int ss_type = getPOS().getId(); if (POS.ADJECTIVE == getSynset().getPOS() && getSynset().isAdjectiveCluster()) { ss_type = POS.ADJECTIVE_SATELLITE_ID; } return ss_type; }
familiar = 7; System.out.println("\n" + iw.getLemma() + " used as " + pos[p.getId() - 1] + " is " + freqs[familiar] + " (polysemy count = " + cnt + ")");
familiar = 7; System.out.println("\n" + iw.getLemma() + " used as " + pos[p.getId() - 1] + " is " + freqs[familiar] + " (polysemy count = " + cnt + ")");