/** * Adds an IndexWord to this set. * * @param word word to add */ public void add(IndexWord word) { indexWords.put(word.getPOS(), word); }
/** * Adds an IndexWord to this set. * * @param word word to add */ public void add(IndexWord word) { indexWords.put(word.getPOS(), word); }
public int hashCode() { return getLemma().hashCode() ^ getPOS().hashCode(); }
public int hashCode() { return getLemma().hashCode() ^ getPOS().hashCode(); }
@Override public void removeIndexWord(IndexWord indexWord) throws JWNLException { getTable(indexWord.getPOS(), DictionaryFileType.INDEX).remove(indexWord.getKey()); super.removeIndexWord(indexWord); }
public String toString() { return ResourceBundleSet.insertParams("[IndexWord: [Lemma: {0}] {1}]", new Object[]{getLemma(), getPOS()}); }
public String toString() { return ResourceBundleSet.insertParams("[IndexWord: [Lemma: {0}] {1}]", new Object[]{getLemma(), getPOS()}); }
@Override public void addIndexWord(IndexWord indexWord) throws JWNLException { super.addIndexWord(indexWord); getTable(indexWord.getPOS(), DictionaryFileType.INDEX).put(indexWord.getKey(), indexWord); }
@Override public void removeIndexWord(IndexWord indexWord) throws JWNLException { getTable(indexWord.getPOS(), DictionaryFileType.INDEX).remove(indexWord.getKey()); super.removeIndexWord(indexWord); }
@Override public void addIndexWord(IndexWord indexWord) throws JWNLException { super.addIndexWord(indexWord); getTable(indexWord.getPOS(), DictionaryFileType.INDEX).put(indexWord.getKey(), indexWord); }
iwStmt.setInt(1, id); iwStmt.setString(2, iw.getLemma()); iwStmt.setString(3, iw.getPOS().getKey()); iwStmt.addBatch(); idToSynsetOffset.put(id, iw.getSynsetOffsets());
iwStmt.setInt(1, id); iwStmt.setString(2, iw.getLemma()); iwStmt.setString(3, iw.getPOS().getKey()); iwStmt.addBatch(); idToSynsetOffset.put(id, iw.getSynsetOffsets());
@Override public void removeIndexWord(IndexWord indexWord) throws JWNLException { clearIndexWord(indexWord.getPOS(), indexWord.getKey()); super.removeIndexWord(indexWord); }
@Override public void removeIndexWord(IndexWord indexWord) throws JWNLException { clearIndexWord(indexWord.getPOS(), indexWord.getKey()); super.removeIndexWord(indexWord); }
if (POS.ADJECTIVE == getPOS()) { int i = 0; while (i < nonUCSenses.size()) {
if (POS.ADJECTIVE == getPOS()) { int i = 0; while (i < nonUCSenses.size()) {
result.append(indexWord.getPOS().getKey()).append(' '); // pos result.append(indexWord.getSenses().size()).append(' '); // synset_cnt result.append(pointerTypes.size()).append(' '); // p_cnt
result.append(indexWord.getPOS().getKey()).append(' '); // pos result.append(indexWord.getSenses().size()).append(' '); // synset_cnt result.append(pointerTypes.size()).append(' '); // p_cnt