mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Remove logging [ci skip]
This would be fired on each example, which is wrong
This commit is contained in:
parent
f4f49f5877
commit
8171e28b20
|
@ -5,7 +5,7 @@ import copy
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from pydantic import BaseModel, StrictStr
|
from pydantic import BaseModel, StrictStr
|
||||||
|
|
||||||
from ..util import registry, logger
|
from ..util import registry
|
||||||
from ..tokens import Doc
|
from ..tokens import Doc
|
||||||
from .example import Example
|
from .example import Example
|
||||||
|
|
||||||
|
@ -119,7 +119,6 @@ def make_orth_variants(
|
||||||
orig_token_dict = copy.deepcopy(token_dict)
|
orig_token_dict = copy.deepcopy(token_dict)
|
||||||
ndsv = orth_variants.get("single", [])
|
ndsv = orth_variants.get("single", [])
|
||||||
ndpv = orth_variants.get("paired", [])
|
ndpv = orth_variants.get("paired", [])
|
||||||
logger.debug(f"Data augmentation: {len(ndsv)} single / {len(ndpv)} paired variants")
|
|
||||||
words = token_dict.get("words", [])
|
words = token_dict.get("words", [])
|
||||||
tags = token_dict.get("tags", [])
|
tags = token_dict.get("tags", [])
|
||||||
# keep unmodified if words or tags are not defined
|
# keep unmodified if words or tags are not defined
|
||||||
|
|
Loading…
Reference in New Issue
Block a user