Tests for FLC-F1 metric
This commit is contained in:
parent
a66fa35a42
commit
b22d1777d7
@ -285,6 +285,9 @@ main = hspec $ do
|
||||
runGEvalTest "soft-f1-simple" `shouldReturnAlmost` 0.33333333333333
|
||||
it "perfect test" $ do
|
||||
runGEvalTest "soft-f1-perfect" `shouldReturnAlmost` 1.0
|
||||
describe "FLC-F1" $ do
|
||||
it "simple test" $ do
|
||||
runGEvalTest "flc-f1-simple" `shouldReturnAlmost` 0.394231
|
||||
describe "Probabilistic-Soft-F1" $ do
|
||||
it "simple test" $ do
|
||||
runGEvalTest "probabilistic-soft-f1-simple" `shouldReturnAlmost` 0.33333333333333
|
||||
|
1
test/flc-f1-simple/flc-f1-simple/config.txt
Normal file
1
test/flc-f1-simple/flc-f1-simple/config.txt
Normal file
@ -0,0 +1 @@
|
||||
--metric FLC-F1
|
2
test/flc-f1-simple/flc-f1-simple/test-A/expected.tsv
Normal file
2
test/flc-f1-simple/flc-f1-simple/test-A/expected.tsv
Normal file
@ -0,0 +1,2 @@
|
||||
foo:658-700,701-710
|
||||
foo:1870-1893
|
|
2
test/flc-f1-simple/flc-f1-solution/test-A/out.tsv
Normal file
2
test/flc-f1-simple/flc-f1-solution/test-A/out.tsv
Normal file
@ -0,0 +1,2 @@
|
||||
foo:0-75
|
||||
foo:658-699
|
|
Loading…
Reference in New Issue
Block a user