Skip to content

Commit ad17fbf

Browse files
move test to separate file
1 parent 581f6e7 commit ad17fbf

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

webstruct/tests/test_wapiti.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from webstruct.wapiti import WapitiCRF
2+
from webstruct.utils import run_command
3+
4+
def test_is_wapiti_binary_present():
5+
run_command(['which', WapitiCRF.WAPITI_CMD])
6+
7+

webstruct/wapiti.py

-4
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ def merge_top_n(chains):
124124

125125

126126
class WapitiCRF(BaseSequenceClassifier):
127-
"""
128-
>>> run_command(['which', WapitiCRF.WAPITI_CMD], verbose=False)
129-
"""
130-
131127
"""
132128
Class for training and applying Wapiti CRF models.
133129

0 commit comments

Comments
 (0)