mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix test and schemas
This commit is contained in:
parent
d34fc0915e
commit
631e20d0c6
|
@ -62,6 +62,7 @@ class TokenPatternNumber(BaseModel):
|
|||
IN: Optional[List[StrictInt]] = None
|
||||
NOT_IN: Optional[List[StrictInt]] = None
|
||||
EQ: Union[StrictInt, StrictFloat] = Field(None, alias="==")
|
||||
NEQ: Union[StrictInt, StrictFloat] = Field(None, alias="!=")
|
||||
GEQ: Union[StrictInt, StrictFloat] = Field(None, alias=">=")
|
||||
LEQ: Union[StrictInt, StrictFloat] = Field(None, alias="<=")
|
||||
GT: Union[StrictInt, StrictFloat] = Field(None, alias=">")
|
||||
|
|
|
@ -198,11 +198,7 @@ def test_train_empty():
|
|||
batches = util.minibatch(train_data)
|
||||
for batch in batches:
|
||||
texts, annotations = zip(*batch)
|
||||
nlp.update(
|
||||
texts, # batch of texts
|
||||
annotations, # batch of annotations
|
||||
losses=losses,
|
||||
)
|
||||
nlp.update(train_data, losses=losses)
|
||||
|
||||
|
||||
def test_overwrite_token():
|
||||
|
|
Loading…
Reference in New Issue
Block a user