Skip to content

Commit e17f2e6

Browse files
committed
Replace deprecated pydantic Field(help=...) with Field(title=...)
1 parent e684b0c commit e17f2e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎spacy/schemas.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ class ConfigSchemaInit(BaseModel):
420420
lookups: Optional[Lookups] = Field(..., title="Vocabulary lookups, e.g. lexeme normalization")
421421
vectors: Optional[StrictStr] = Field(..., title="Path to vectors")
422422
init_tok2vec: Optional[StrictStr] = Field(..., title="Path to pretrained tok2vec weights")
423-
tokenizer: Dict[StrictStr, Any] = Field(..., help="Arguments to be passed into Tokenizer.initialize")
424-
components: Dict[StrictStr, Dict[StrictStr, Any]] = Field(..., help="Arguments for TrainablePipe.initialize methods of pipeline components, keyed by component")
423+
tokenizer: Dict[StrictStr, Any] = Field(..., title="Arguments to be passed into Tokenizer.initialize")
424+
components: Dict[StrictStr, Dict[StrictStr, Any]] = Field(..., title="Arguments for TrainablePipe.initialize methods of pipeline components, keyed by component")
425425
before_init: Optional[Callable[["Language"], "Language"]] = Field(..., title="Optional callback to modify nlp object before initialization")
426426
after_init: Optional[Callable[["Language"], "Language"]] = Field(..., title="Optional callback to modify nlp object after initialization")
427427
# fmt: on

0 commit comments

Comments
 (0)