- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中se.lth.cs.srl.corpus.Yield.isContinuous()
方法的一些代码示例,展示了Yield.isContinuous()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yield.isContinuous()
方法的具体详情如下:
包路径:se.lth.cs.srl.corpus.Yield
类名称:Yield
方法名:isContinuous
[英]Checks whether this yield is continuous, ie they contain all the words in the sentence between this.first() and this.last(). Yields with 1 word are always continuous
[中]检查这个结果是否是连续的(它们包含这个句子中的所有单词)。首先是这个。最后()。一个单词的产出总是连续的
代码示例来源:origin: com.googlecode.mate-tools/srl
if(!y.isContinuous()){ //Warn the user if we have discontinuous yields
errors.append("((Discontinous yield of argument '"+y+"' of predicate '"+pred.getSense()+"'. Yield contains tokens [");
for(Word w:y)
代码示例来源:origin: microth/PathLSTM
if (isContinuous())
return Arrays.asList(this);
Collection<Yield> ret = new TreeSet<>();
代码示例来源:origin: com.googlecode.mate-tools/srl
/**
* Breaks this yield down to continuous yields if this yield is discontinuous, otherwise it returns itself in a list.
* Yields are labeled lab, C-lab, C-C-lab, etc in a sequential manner from left to right.
* It follows algorithm 5.3 in Richard Johansson (2008), page 88
* @return a collection of continuous yields
*/
public Collection<Yield> explode() {
if(isContinuous())
return Arrays.asList(this);
Collection<Yield> ret=new TreeSet<Yield>();
String curArgLabel=argLabel;
Yield subYield=new Yield(pred,sen,curArgLabel);
for(int i=sen.indexOf(this.first());i<=sen.indexOf(this.last());++i){
Word curWord=sen.get(i);
if(this.contains(curWord)){ //If this yield contain the word, add it, it's continuous.
subYield.add(curWord);
} else if(!subYield.isEmpty()) { //If this yield doesn't contain the word, and we have an unempty subyield, then the subyield is completed
ret.add(subYield);
curArgLabel="C-"+curArgLabel;
subYield=new Yield(pred,sen,curArgLabel);
}
}
if(!subYield.isEmpty()) //Add the last subyield
ret.add(subYield);
return ret;
}
}
我刚刚升级到Python 2.7.4(从2.7.3)和OpenCV 2.4.5(从2.4.0),因为我需要它们附带的一些新功能。 我以前有几行代码运行良好,基本上可以将2张图像组合为一个并显示生成的图
本文整理了Java中se.lth.cs.srl.corpus.Yield.isContinuous()方法的一些代码示例,展示了Yield.isContinuous()的具体用法。这些代码示例主要来源
我正在尝试在 visual studio 2010 中使用 opencv 和 curl 从 url 加载图像。运行代码时出现上述错误。该错误是什么意思?如何更正我的代码。这是我的代码 #include
我是一名优秀的程序员,十分优秀!