Skip to content

Commit

Permalink
ADD TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY committed Dec 1, 2020
1 parent 359f17a commit 4f054ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_span.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from ltp.utils import get_entities


def test_span():
span = ['B-PER', 'I-PER', 'O', 'B-LOC']
assert get_entities(span) == [('PER', 0, 1), ('LOC', 3, 3)]

0 comments on commit 4f054ca

Please sign in to comment.