net.sf.extjwnl.data.Word.getIndex()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(144)

本文整理了Java中net.sf.extjwnl.data.Word.getIndex()方法的一些代码示例,展示了Word.getIndex()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Word.getIndex()方法的具体详情如下:
包路径:net.sf.extjwnl.data.Word
类名称:Word
方法名:getIndex

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(' ');

相关文章