Skip to content

Commit 1dd6320

Browse files
committed
修正seqEval的f1值
1 parent e60514f commit 1dd6320

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

fnlp-core/.classpath

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
2121
<attributes>
2222
<attribute name="maven.pomderived" value="true"/>
23+
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
2324
</attributes>
2425
</classpathentry>
2526
<classpathentry kind="output" path="target/classes"/>

fnlp-core/.project

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,32 @@
55
<projects>
66
</projects>
77
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
813
<buildCommand>
914
<name>org.eclipse.jdt.core.javabuilder</name>
1015
<arguments>
1116
</arguments>
1217
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.wst.validation.validationbuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
1323
<buildCommand>
1424
<name>org.eclipse.m2e.core.maven2Builder</name>
1525
<arguments>
1626
</arguments>
1727
</buildCommand>
1828
</buildSpec>
1929
<natures>
30+
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
31+
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
2032
<nature>org.eclipse.m2e.core.maven2Nature</nature>
2133
<nature>org.eclipse.jdt.core.javanature</nature>
34+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
2235
</natures>
2336
</projectDescription>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ public double[] calcPRF() {
582582

583583
double FB1=0;
584584
if(recall+pre!=0)
585-
FB1 = (pre*recall*2)/(recall+pre)*100;
585+
FB1 = (pre*recall*2)/(recall+pre);
586586

587587
double oovrecall = 0;
588588
if(oov!=0)

0 commit comments

Comments
 (0)