Add new token classification example (#8340)

* Add new token classification example

* Remove txt file

* Add test

* With actual testing done

* Less warmup is better

* Update examples/token-classification/run_ner_new.py

Co-authored-by: Thomas Wolf <thomwolf@users.noreply.github.com>

* Address review comments

* Fix test

* Make Lysandre happy

* Last touches and rename

* Rename in tests

* Address review comments

* More run_ner -> run_ner_old

Co-authored-by: Thomas Wolf <thomwolf@users.noreply.github.com>
This commit is contained in:
Sylvain Gugger
2020-11-09 11:39:55 -05:00
committed by GitHub
parent c7cb1aa26c
commit 908a28894c
21 changed files with 652 additions and 185 deletions

View File

@@ -3,7 +3,7 @@ import sys
import unittest
from unittest.mock import patch
import run_ner
import run_ner_old as run_ner
from transformers.testing_utils import slow