Skip to content

Commit 8ed7c49

Browse files
committed
seqeval
1 parent 4e1dd42 commit 8ed7c49

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

fnlp-core/src/main/java/org/fnlp/ml/eval/SeqEval.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,13 @@ public String calcByType2() {
572572

573573

574574
/**
575-
* 从reader中提取实体,存到相应的队列中,并统计固定长度实体的个数,存到相应的map中
575+
* 从reader中提取实体,存到相应的队列中,并统计固定长度实体的个数,存到相应的map中
576+
* 格式为: 字+预测标签+正确标签
577+
* 中 B B
578+
* 国 E S
579+
* 队 S B
580+
* 赢 S E
581+
* 了 S S
576582
* @param filePath 结果文件
577583
* @throws IOException
578584
*/

fnlp-core/src/main/java/org/fnlp/nlp/cn/LangDetection.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020
package org.fnlp.nlp.cn;
2121

2222
import java.lang.Character.UnicodeBlock;
23-
23+
24+
/**
25+
* 判断语言是否为中英文
26+
* @author Xipeng Qiu E-mail: xpqiu@fudan.edu.cn
27+
* @version 创建时间:2015年4月17日 上午10:44:19
28+
*/
2429
public class LangDetection {
2530

2631
public static String detect(String str){

0 commit comments

Comments
 (0)