1. 17 Nov, 2020 1 commit
  2. 12 Nov, 2020 1 commit
  3. 11 Nov, 2020 1 commit
  4. 10 Nov, 2020 1 commit
  5. 09 Nov, 2020 3 commits
  6. 05 Nov, 2020 1 commit
    • Bobby Donchev's avatar
      change TokenClassificationTask class methods to static methods (#7902) · 52f44dd6
      Bobby Donchev authored
      
      
      * change TokenClassificationTask class methods to static methods
      
      Since we do not require self in the class methods of TokenClassificationTask we should probably switch to static methods. Also, since the class TokenClassificationTask does not contain a constructor it is currently unusable as is. By switching to static methods this fixes the issue of having to document the intent of the broken class.
      
      Also, since the get_labels and read_examples_from_file methods are ought to be implemented. Static method definitions are unchanged even after inheritance, which means that it can be overridden, similar to other class methods.
      
      * Trigger Build
      Co-authored-by: default avatarLysandre <lysandre.debut@reseau.eseo.fr>
      52f44dd6
  7. 28 Oct, 2020 1 commit
  8. 18 Sep, 2020 1 commit
  9. 27 Aug, 2020 1 commit
  10. 26 Aug, 2020 1 commit
  11. 24 Aug, 2020 2 commits
  12. 17 Aug, 2020 1 commit
  13. 13 Aug, 2020 1 commit
  14. 11 Aug, 2020 1 commit
  15. 09 Aug, 2020 1 commit
  16. 07 Aug, 2020 1 commit
  17. 29 Jul, 2020 1 commit
    • Julien Plu's avatar
      Rework TF trainer (#6038) · 54f9fbef
      Julien Plu authored
      * Fully rework training/prediction loops
      
      * fix method name
      
      * Fix variable name
      
      * Fix property name
      
      * Fix scope
      
      * Fix method name
      
      * Fix tuple index
      
      * Fix tuple index
      
      * Fix indentation
      
      * Fix variable name
      
      * fix eval before log
      
      * Add drop remainder for test dataset
      
      * Fix step number + fix logging datetime
      
      * fix eval loss value
      
      * use global step instead of step + fix logging at step 0
      
      * Fix logging datetime
      
      * Fix global_step usage
      
      * Fix breaking loop + logging datetime
      
      * Fix step in prediction loop
      
      * Fix step breaking
      
      * Fix train/test loops
      
      * Force TF at least 2.2 for the trainer
      
      * Use assert_cardinality to facilitate the dataset size computation
      
      * Log steps per epoch
      
      * Make tfds compliant with TPU
      
      * Make tfds compliant with TPU
      
      * Use TF dataset enumerate instead of the Python one
      
      * revert previous commit
      
      * Fix data_dir
      
      * Apply style
      
      * rebase on master
      
      * Address Sylvain's comments
      
      * Address Sylvain's and Lysandre comments
      
      * Trigger CI
      
      * Remove unused import
      54f9fbef
  18. 07 Jul, 2020 1 commit
  19. 01 Jul, 2020 1 commit
  20. 30 Jun, 2020 1 commit
    • Hong Xu's avatar
      In the run_ner.py example, give the optional label arg a default value (#5326) · 501040fd
      Hong Xu authored
      Otherwise, if label is not specified, the following error occurs:
      
      	Traceback (most recent call last):
      	  File "run_ner.py", line 303, in <module>
      	    main()
      	  File "run_ner.py", line 101, in main
      	    model_args, data_args, training_args = parser.parse_json_file(json_file=os.path.abspath(sys.argv[1]))
      	  File "/home/user/anaconda3/envs/bert/lib/python3.7/site-packages/transformers/hf_argparser.py", line 159, in parse_json_file
      	    obj = dtype(**inputs)
      	TypeError: __init__() missing 1 required positional argument: 'labels'
      501040fd
  21. 15 Jun, 2020 1 commit
  22. 04 Jun, 2020 1 commit
    • Stefan Schweter's avatar
      NER: Add new WNUT’17 example (#4681) · 2a4b9e09
      Stefan Schweter authored
      * ner: add preprocessing script for examples that splits longer sentences
      
      * ner: example shell scripts use local preprocessing now
      
      * ner: add new example section for WNUT’17 NER task. Remove old English CoNLL-03 results
      
      * ner: satisfy black and isort
      2a4b9e09
  23. 02 Jun, 2020 1 commit
    • Julien Chaumond's avatar
      Kill model archive maps (#4636) · d4c2cb40
      Julien Chaumond authored
      * Kill model archive maps
      
      * Fixup
      
      * Also kill model_archive_map for MaskedBertPreTrainedModel
      
      * Unhook config_archive_map
      
      * Tokenizers: align with model id changes
      
      * make style && make quality
      
      * Fix CI
      d4c2cb40
  24. 27 May, 2020 1 commit
  25. 19 May, 2020 1 commit
  26. 14 May, 2020 1 commit
  27. 13 May, 2020 1 commit
  28. 11 May, 2020 1 commit
  29. 08 May, 2020 1 commit
  30. 07 May, 2020 1 commit
    • Julien Chaumond's avatar
      BIG Reorganize examples (#4213) · 0ae96ff8
      Julien Chaumond authored
      * Created using Colaboratory
      
      * [examples] reorganize files
      
      * remove run_tpu_glue.py as superseded by TPU support in Trainer
      
      * Bugfix: int, not tuple
      
      * move files around
      0ae96ff8