本文整理了Java中de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.pos.POS.setCoarseValue()
方法的一些代码示例,展示了POS.setCoarseValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。POS.setCoarseValue()
方法的具体详情如下:
包路径:de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.pos.POS
类名称:POS
方法名:setCoarseValue
[英]setter for coarseValue - sets Coarse-grained POS tag. This may be produced by a POS tagger or reader in addition to the fine-grained tag.
[中]粗值设置器-设置粗粒度POS标记。除了细粒度标记之外,还可以由POS标记器或读取器生成。
代码示例来源:origin: dkpro/dkpro-core
public static void assignCoarseValue(POS pos)
{
if (pos == null) {
return;
}
String shortName = pos.getType().getShortName();
if (!StringUtils.equals(pos.getType().getName(), POS.class.getName())) {
if (!shortName.startsWith(POS_TYPE_PREFIX)) {
throw new IllegalArgumentException("The type " + shortName
+ "of the given POS annotation does not fulfill the convention of starting with prefix '"
+ POS_TYPE_PREFIX + "'");
}
pos.setCoarseValue(shortName.substring(POS_TYPE_PREFIX.length()).intern());
}
}
}
代码示例来源:origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.io.conll-asl
pos.setCoarseValue(word[CPOSTAG] != null ? word[CPOSTAG].intern() : null);
代码示例来源:origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.io.conll-asl
pos.setCoarseValue(word[CPOSTAG] != null ? word[CPOSTAG].intern() : null);
代码示例来源:origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.tokit-asl
pos.setCoarseValue(cposValue);
aToken.setPos(pos);
代码示例来源:origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.io.tcf-asl
dependentPos.setEnd(aTokens.get(dependentTokens[0].getID()).getEnd());
dependentPos.setPosValue("--");
dependentPos.setCoarseValue("--");
dependentPos.addToIndexes();
aTokens.get(dependentTokens[0].getID()).setPos(dependentPos);
内容来源于网络,如有侵权,请联系作者删除!