Result of new doc style with fixes (#17015)

* Result of new doc style with fixes

* Add last two files

* Bump hf-doc-builder
This commit is contained in:
Sylvain Gugger
2022-04-29 17:42:15 -04:00
committed by GitHub
parent 18df440709
commit 7152ed2bae
28 changed files with 58 additions and 58 deletions

View File

@@ -97,7 +97,7 @@ Example:
>>> entities = [
... "Beyoncé",
... "Los Angeles",
>>> ] # Wikipedia entity titles corresponding to the entity mentions "Beyoncé" and "Los Angeles"
... ] # Wikipedia entity titles corresponding to the entity mentions "Beyoncé" and "Los Angeles"
>>> entity_spans = [(0, 7), (17, 28)] # character-based entity spans corresponding to "Beyoncé" and "Los Angeles"
>>> inputs = tokenizer(text, entities=entities, entity_spans=entity_spans, add_prefix_space=True, return_tensors="pt")
>>> outputs = model(**inputs)