ner example failed on examples/token-classification % bash run.sh
Author: SeekPoint
Pull request: no
Labels: name: wontfix

name: Ex: Named Entity Recognition

(.venvpy36) examples/token-classification % bash run.sh

08/24/2020 15:56:12 - INFO - filelock -   Lock 5754732216 acquired on ./cached_train_BertTokenizer_128.lock
08/24/2020 15:56:12 - INFO - utils_ner -   Creating features from dataset file at .
08/24/2020 15:56:12 - INFO - utils_ner -   Saving features into cached file ./cached_train_BertTokenizer_128
08/24/2020 15:56:12 - INFO - filelock -   Lock 5754732216 released on ./cached_train_BertTokenizer_128.lock
08/24/2020 15:56:12 - INFO - filelock -   Lock 5754732048 acquired on ./cached_dev_BertTokenizer_128.lock
08/24/2020 15:56:12 - INFO - utils_ner -   Creating features from dataset file at .
08/24/2020 15:56:12 - INFO - utils_ner -   Writing example 0 of 9
08/24/2020 15:56:12 - INFO - filelock -   Lock 5754732048 released on ./cached_dev_BertTokenizer_128.lock
Traceback (most recent call last):
  File "run_ner.py", line 304, in <module>
    main()
  File "run_ner.py", line 189, in main
    if training_args.do_eval
  File "/Users/yuanke/ghSrc/transformers/examples/token-classification/utils_ner.py", line 127, in __init__
    pad_token_label_id=self.pad_token_label_id,
  File "/Users/yuanke/ghSrc/transformers/examples/token-classification/utils_ner.py", line 305, in convert_examples_to_features
    label_ids.extend([label_map[label]] + [pad_token_label_id] * (len(word_tokens) - 1))
KeyError: '[null,"AIzaSyCF97XfLoejM9NhWDAZeOcjC6kOEsEmv6A","897606708560-a63d8ia0t9dhtpdt4i3djab2m42see7o.apps.googleusercontent.com",null,null,"v2",null,null,null,null,null,null,null,"https://content.googleapis.com","SITES_%s",null,null,null,null,null,0,null,null,null,["AHKXmL0ZzONWw2TXF2GVALSixIY_wY8DFDhrOeiPL5czjvgRVJRjibFVAqFSDdzkAGNCFzy2FNRZ",1,"CJDXlfOos-sCFZWnIwAdnZoJHA",1598254209133000,[5703022,5703839,5704621,5705837,5705841,5706601,5706832,5706836,5707711,5709888,5710567,5710768,5710806,5711078,5711206,5711530,5711563,5711808,5711866,5711929,5712328,5713049,5714628,14100031,14100834,14100854,14101054,14101218,14101254,14101334,14101346,14101350,14101354,14101358,14101374,14101378,14101386,14101410,14101418,14101430,14101442,14101446,14101458,14101462,14101474,14101492]'
     
- `transformers` version:
latest
- Platform: Mac
- Python version:
py3.6
- PyTorch version (GPU?):
1.4
- Tensorflow version (GPU?):
- Using GPU in script?:
no
- Using distributed or parallel set-up in script?:
no

### Who can help
<!-- Your issue will be replied to more quickly if you can figure out the right person to tag with @
 If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
 Please tag fewer than 3 people.
 
 albert, bert, GPT2, XLM: @LysandreJik 
 tokenizers: @mfuntowicz
 Trainer: @sgugger
 Speed and Memory Benchmarks: @patrickvonplaten
 Model Cards: @julien-c
 Translation: @sshleifer
 Summarization: @sshleifer
 TextGeneration: @TevenLeScao 
 examples/distillation: @VictorSanh
 nlp datasets: [different repo](https://github.com/huggingface/nlp)
 rust tokenizers: [different repo](https://github.com/huggingface/tokenizers)
 Text Generation: @TevenLeScao
 blenderbot: @mariamabarham
 Bart: @sshleifer
 Marian: @sshleifer
 T5: @patrickvonplaten
 Longformer/Reformer: @patrickvonplaten
 TransfoXL/XLNet: @TevenLeScao 
 examples/seq2seq: @sshleifer
 examples/bert-loses-patience: @JetRunner
 tensorflow: @jplu
 examples/token-classification: @stefan-it
 documentation: @sgugger
 -->

## Information

Model I am using (Bert, XLNet ...):

The problem arises when using:
* [ ] the official example scripts: (give details below)
* [ ] my own modified scripts: (give details below)

The tasks I am working on is:
* [ ] an official GLUE/SQUaD task: (give the name)
* [ ] my own task or dataset: (give details below)

## To reproduce

Steps to reproduce the behavior:

1.
2.
3.

<!-- If you have code snippets, error messages, stack traces please provide them here as well.
     Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting
     Do not use screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.-->

## Expected behavior

<!-- A clear and concise description of what you would expect to happen. -->


Comments:
I also get this same error on this example.

Hi @loveJasmine and @isoboroff ,

this should be fixed in latest `master` version (I'm currently training a model with this example script, preprocessing was fine) :)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.