Update Perceiver code examples (#14783)

* Fix code examples

* Fix code example
This commit is contained in:
NielsRogge
2021-12-15 17:06:38 +01:00
committed by GitHub
parent 48d4827697
commit 50bc57cef8
2 changed files with 122 additions and 19 deletions

View File

@@ -81,9 +81,10 @@ Tips:
- The quickest way to get started with the Perceiver is by checking the [tutorial
notebooks](https://github.com/NielsRogge/Transformers-Tutorials/tree/master/Perceiver).
- Note that the models available in the library only showcase some examples of what you can do with the Perceiver.
There are many more use cases, including question answering,
named-entity recognition, object detection, audio classification, video classification, etc.
- Refer to the [blog post](https://huggingface.co/blog/perceiver) if you want to fully understand how the model works and
is implemented in the library. Note that the models available in the library only showcase some examples of what you can do
with the Perceiver. There are many more use cases, including question answering, named-entity recognition, object detection,
audio classification, video classification, etc.
## Perceiver specific outputs
@@ -102,10 +103,7 @@ named-entity recognition, object detection, audio classification, video classifi
## PerceiverTokenizer
[[autodoc]] PerceiverTokenizer
- build_inputs_with_special_tokens
- get_special_tokens_mask
- create_token_type_ids_from_sequences
- save_vocabulary
- __call__
## PerceiverFeatureExtractor