Replace debugging prints by session logs.
This commit is contained in:
parent
79034f85a9
commit
6fb1e1e649
3 changed files with 9 additions and 5 deletions
|
@ -65,8 +65,8 @@ def main():
|
|||
with session().log(example['text']):
|
||||
tokens = list(knowledge.tokenize(example['text']))
|
||||
|
||||
print(tokens)
|
||||
print(example['tokens'])
|
||||
session().log('Expected “{}”, found “{}”'
|
||||
.format(tokens, example['tokens']))
|
||||
assert example['tokens'] == tokens
|
||||
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue