Replace debugging prints by session logs.
This commit is contained in:
parent
79034f85a9
commit
6fb1e1e649
3 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
from ..session.org_mode import (
|
||||
global_session as session,
|
||||
)
|
||||
|
||||
BASIC_TOKENIZATION_EXAMPLES = (
|
||||
({
|
||||
"text": 'cat',
|
||||
|
@ -15,5 +19,6 @@ BASIC_TOKENIZATION_EXAMPLES = (
|
|||
|
||||
|
||||
def train_basic_tokenization(knowledge_base):
|
||||
for example in BASIC_TOKENIZATION_EXAMPLES:
|
||||
knowledge_base.train_tokenizer(example)
|
||||
with session().log('Training basic tokenization'):
|
||||
for example in BASIC_TOKENIZATION_EXAMPLES:
|
||||
knowledge_base.train_tokenizer(example)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue