Skip to content

Commit

Permalink
Also test on a suffix style input
Browse files Browse the repository at this point in the history
  • Loading branch information
himkt committed Dec 26, 2019
1 parent e9cd6c4 commit ce3d581
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ def test_get_entities_with_unexpected_input(self):
y_true = ['O', 'O', 'O', 'MISC', 'MISC', 'MISC', 'O', 'PER', 'PER']
with self.assertRaises(Exception):
get_entities(y_true)
get_entities(y_true, suffix=True)

def test_get_entities_with_unexpected_input_and_suffix_style(self):
y_true = ['O', 'O', 'O', 'MISC', 'MISC', 'MISC', 'O', 'PER', 'PER']
with self.assertRaises(Exception):
get_entities(y_true)

def test_performance_measure(self):
y_true = [['O', 'O', 'O', 'B-MISC', 'I-MISC', 'O', 'B-ORG'], ['B-PER', 'I-PER', 'O']]
Expand Down

0 comments on commit ce3d581

Please sign in to comment.