transformers/examples/legacy
Roy Hvaara 35a7052b61
[NumPy] Remove references to deprecated NumPy type aliases (#21022)
[NumPy] Remove references to deprecated NumPy type aliases.

This change replaces references to a number of deprecated NumPy type aliases (np.bool, np.int, np.float, np.complex, np.object, np.str) with their recommended replacement (bool, int, float, complex, object, str).

NumPy 1.24 drops the deprecated aliases, so we must remove uses before updating NumPy.

Co-authored-by: Peter Hawkins <phawkins@google.com>

Co-authored-by: Peter Hawkins <phawkins@google.com>
2023-01-05 13:02:10 -05:00
..
multiple_choice Black preview (#17217) 2022-05-12 16:25:55 -04:00
pytorch-lightning Just re-reading the whole doc every couple of months 😬 (#18489) 2022-08-06 09:38:55 +02:00
question-answering Black preview (#17217) 2022-05-12 16:25:55 -04:00
seq2seq [NumPy] Remove references to deprecated NumPy type aliases (#21022) 2023-01-05 13:02:10 -05:00
text-classification Black preview (#17217) 2022-05-12 16:25:55 -04:00
token-classification Just re-reading the whole doc every couple of months 😬 (#18489) 2022-08-06 09:38:55 +02:00
README.md Reorganize examples (#9010) 2020-12-11 10:07:02 -05:00
run_camembert.py [examples] make run scripts executable (#10037) 2021-02-05 15:51:18 -08:00
run_chinese_ref.py [examples] make run scripts executable (#10037) 2021-02-05 15:51:18 -08:00
run_language_modeling.py Black preview (#17217) 2022-05-12 16:25:55 -04:00
run_openai_gpt.py Black preview (#17217) 2022-05-12 16:25:55 -04:00
run_swag.py Black preview (#17217) 2022-05-12 16:25:55 -04:00
run_transfo_xl.py remove extra white space from log format (#12360) 2021-06-25 13:20:14 -07:00

Legacy examples

This folder contains examples which are not actively maintained (mostly contributed by the community).

Using these examples together with a recent version of the library usually requires to make small (sometimes big) adaptations to get the scripts working.