transformers/docs/source
Romain Rigaux cabfdfafc0
Docs copy button misses ... prefixed code (#6518)
Tested in a local build of the docs.

e.g. Just above https://huggingface.co/transformers/task_summary.html#causal-language-modeling

Copy will copy the full code, e.g.

for token in top_5_tokens:
     print(sequence.replace(tokenizer.mask_token, tokenizer.decode([token])))

Instead of currently only:

for token in top_5_tokens:


>>> for token in top_5_tokens:
...     print(sequence.replace(tokenizer.mask_token, tokenizer.decode([token])))
Distilled models are smaller than the models they mimic. Using them instead of the large versions would help reduce our carbon footprint.
Distilled models are smaller than the models they mimic. Using them instead of the large versions would help increase our carbon footprint.
Distilled models are smaller than the models they mimic. Using them instead of the large versions would help decrease our carbon footprint.
Distilled models are smaller than the models they mimic. Using them instead of the large versions would help offset our carbon footprint.
Distilled models are smaller than the models they mimic. Using them instead of the large versions would help improve our carbon footprint.

Docs for the option fix:
https://sphinx-copybutton.readthedocs.io/en/latest/
2020-08-20 17:35:06 +08:00
..
_static add custom datasets tutorial (#6466) 2020-08-17 09:15:34 -04:00
imgs Guide to fixed-length model perplexity evaluation (#5449) 2020-07-07 16:04:15 -06:00
internal Doc pipelines (#6175) 2020-08-03 11:44:46 -04:00
main_classes Generation doc (#6470) 2020-08-14 09:46:39 -04:00
model_doc [Pegasus Doc] minor typo (#6579) 2020-08-18 12:47:47 -04:00
benchmarks.rst Small docfile fixes (#6328) 2020-08-10 05:37:12 -04:00
bertology.rst [doc] Fix broken links + remove crazy big notebook 2020-05-07 18:44:18 -04:00
conf.py Docs copy button misses ... prefixed code (#6518) 2020-08-20 17:35:06 +08:00
contributing.md Update installation page and add contributing to the doc (#5084) 2020-06-17 14:01:10 -04:00
converting_tensorflow_models.rst Add ALBERT to the Tensorflow to Pytorch model conversion cli (#3933) 2020-05-11 13:10:00 -04:00
custom_datasets.rst add custom datasets tutorial (#6466) 2020-08-17 09:15:34 -04:00
examples.md per_device instead of per_gpu/error thrown when argument unknown (#4618) 2020-05-27 11:36:55 -04:00
favicon.ico Adding usage examples for common tasks (#2850) 2020-02-25 13:48:24 -05:00
glossary.rst [doc] make the text more readable, fix some typos, add some disambiguation (#6508) 2020-08-17 11:07:58 -04:00
index.rst [Doc] add more MBart and other doc (#6490) 2020-08-17 12:30:26 -04:00
installation.md [doc] fix invalid env vars (#6504) 2020-08-17 11:11:40 +08:00
migration.md Add hugs (#5225) 2020-06-24 07:56:14 -04:00
model_sharing.rst How to share model cards with the CLI (#5374) 2020-06-30 08:59:32 -04:00
model_summary.rst [doc] Summary of the models fixes (#6511) 2020-08-17 16:04:53 +08:00
multilingual.rst Refactor Code samples; Test code samples (#5036) 2020-06-25 16:46:00 -04:00
notebooks.md Update notebooks (#3620) 2020-04-06 14:32:39 -04:00
perplexity.rst tiny ppl doc typo fix (#5751) 2020-07-14 10:39:44 -06:00
philosophy.rst typos (#6505) 2020-08-17 10:57:36 +08:00
preprocessing.rst Fix #6575 (#6596) 2020-08-19 13:04:33 -04:00
pretrained_models.rst [Doc] add more MBart and other doc (#6490) 2020-08-17 12:30:26 -04:00
quicktour.rst Small docfile fixes (#6328) 2020-08-10 05:37:12 -04:00
serialization.rst Enable ONNX/ONNXRuntime optimizations through converter script (#6131) 2020-07-31 09:45:13 +02:00
task_summary.rst replace _ with __ rst links (#6541) 2020-08-17 12:27:02 -04:00
tokenizer_summary.rst [docs] Fix number of 'ug' occurrences in tokenizer_summary (#6574) 2020-08-18 10:23:25 -04:00
training.rst Import accuracy_score (#6480) 2020-08-14 08:16:16 -04:00