1. 29 Mar, 2021 1 commit
    • Daniel Stancl's avatar
      Add `examples/run_ner_no_trainer.py` (#10902) · d7b50ce4
      Daniel Stancl authored
      * Add NER example with accelerate library
      
      * This commit contains the first (yet really unfinished)
      version of a script for showing how to train HuggingFace model
      with their new accelerate library.
      
      * Fix metric calculation
      
      * make style quality
      
      * mv ner_no_trainer to token-classification dir
      
      * Delete --debug flag from running script
      
      * hf_datasets -> raw_datasets
      
      * Make a few slight adjustments
      
      * Add an informative comment + rewrite a help comment
      
      * Change header
      
      * Fix a few things
      
      * Enforce to use fast tokenizers only
      
      * DataCollatorWithPadding -> DataCollatorForTokenClassification
      
      * Change bash script: python3 -> accelerate launch
      
      * make style
      
      * Add a few missing things (see below)
      
      * Add a max-lenghth padding to predictions and labels to
      enable accelerate gather functionality
      
      * Add PyTorch no trainer example to the example README.md
      
      * Remove --do-train from args as being redundant for now
      
      * DataCollatorWithPadding -> DataCollatorForTokenClassification
      
      * Remove some obsolete args.do_train conditions from the script
      
      * Delete --do_train from bash running script
      
      * Delete use_slow_tokenizer from args
      
      * Add unintentionally removed flag --label_all_tokens
      
      * Delete --debug flag from running script
      d7b50ce4
  2. 19 Mar, 2021 1 commit
  3. 16 Mar, 2021 2 commits
  4. 15 Mar, 2021 1 commit
  5. 08 Mar, 2021 1 commit
  6. 27 Feb, 2021 1 commit
  7. 19 Feb, 2021 1 commit
  8. 05 Feb, 2021 1 commit
  9. 28 Jan, 2021 1 commit
  10. 27 Jan, 2021 1 commit
  11. 26 Jan, 2021 1 commit
  12. 25 Jan, 2021 1 commit
  13. 14 Jan, 2021 1 commit
    • Sylvain Gugger's avatar
      Switch metrics in run_ner to datasets (#9567) · 46ed56cf
      Sylvain Gugger authored
      * Switch metrics in run_ner to datasets
      
      * Add flag to return all metrics
      
      * Upstream (and rename) sortish_sampler
      
      * Revert "Upstream (and rename) sortish_sampler"
      
      This reverts commit e07d0dcf650c2bae36da011dd76c77a8bb4feb0d.
      46ed56cf
  14. 06 Jan, 2021 1 commit
  15. 22 Dec, 2020 1 commit
  16. 18 Dec, 2020 1 commit
  17. 11 Dec, 2020 1 commit
  18. 07 Dec, 2020 1 commit
  19. 30 Nov, 2020 1 commit
  20. 19 Nov, 2020 1 commit
  21. 17 Nov, 2020 2 commits
  22. 12 Nov, 2020 1 commit
  23. 11 Nov, 2020 1 commit
  24. 10 Nov, 2020 1 commit
  25. 09 Nov, 2020 3 commits
  26. 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
  27. 28 Oct, 2020 1 commit
  28. 18 Sep, 2020 1 commit
  29. 27 Aug, 2020 1 commit
  30. 26 Aug, 2020 1 commit
  31. 24 Aug, 2020 2 commits
  32. 17 Aug, 2020 1 commit
  33. 13 Aug, 2020 1 commit
  34. 11 Aug, 2020 1 commit
  35. 09 Aug, 2020 1 commit