本文整理了Java中net.sf.extjwnl.data.Word.getIndex()
方法的一些代码示例,展示了Word.getIndex()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Word.getIndex()
方法的具体详情如下:
包路径:net.sf.extjwnl.data.Word
类名称:Word
方法名:getIndex
[英]Returns the number of this word (1-based) or 0 if not found. NB Word numbers are assigned to the word fields in a synset, from left to right, beginning with 1.
[中]返回此单词的数字(基于1),如果找不到,则返回0。NB字号从左到右,从1开始分配给语法集中的单词字段。
代码示例来源:origin: net.sf.extjwnl/extjwnl
public String toString() {
return ResourceBundleSet.insertParams("[Word: {0} [Lemma: {1}] {2} [Index: {3}]]", new Object[]{getPOS(), getLemma(), getSynset(), getIndex()});
}
代码示例来源:origin: extjwnl/extjwnl
public String toString() {
return ResourceBundleSet.insertParams("[Word: {0} [Lemma: {1}] {2} [Index: {3}]]", new Object[]{getPOS(), getLemma(), getSynset(), getIndex()});
}
代码示例来源:origin: net.sf.extjwnl/extjwnl-utilities
synsetWordStmt.setInt(4, word.getIndex());
synsetWordStmt.setInt(5, word.getUseCount());
synsetWordStmt.setLong(6, word.getLexId());
synsetVerbFrameStmt.setInt(4, word.getIndex());
BitSet bits = ((Verb) word).getVerbFrameFlags();
for (int i = bits.nextSetBit(0); i >= 0; i = bits.nextSetBit(i + 1)) {
代码示例来源:origin: extjwnl/extjwnl
synsetWordStmt.setInt(4, word.getIndex());
synsetWordStmt.setInt(5, word.getUseCount());
synsetWordStmt.setLong(6, word.getLexId());
synsetVerbFrameStmt.setInt(4, word.getIndex());
BitSet bits = ((Verb) word).getVerbFrameFlags();
for (int i = bits.nextSetBit(0); i >= 0; i = bits.nextSetBit(i + 1)) {
代码示例来源:origin: net.sf.extjwnl/extjwnl
for (int i = bits.nextSetBit(0); i >= 0; i = bits.nextSetBit(i + 1)) {
if (!verbFrames.get(i)) {
if (checkVerbFrameLimit && log.isWarnEnabled() && (0xFF < word.getIndex())) {
log.warn(dictionary.getMessages().resolveMessage("PRINCETON_WARN_008",
new Object[]{synset.getOffset(), word.getIndex()}));
if (word.getIndex() < 0x10) {
result.append("0");
result.append(Integer.toHexString(word.getIndex())).append(' ');
代码示例来源:origin: extjwnl/extjwnl
for (int i = bits.nextSetBit(0); i >= 0; i = bits.nextSetBit(i + 1)) {
if (!verbFrames.get(i)) {
if (checkVerbFrameLimit && log.isWarnEnabled() && (0xFF < word.getIndex())) {
log.warn(dictionary.getMessages().resolveMessage("PRINCETON_WARN_008",
new Object[]{synset.getOffset(), word.getIndex()}));
if (word.getIndex() < 0x10) {
result.append("0");
result.append(Integer.toHexString(word.getIndex())).append(' ');
内容来源于网络,如有侵权,请联系作者删除!