Update examples/ner/run_ner.py
Update the example file by changing the name of AlbertForTokenClassification to AlbertForSequenceClassification.
# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/3261?src=pr&el=h1) Report
> Merging [#3261](https://codecov.io/gh/huggingface/transformers/pull/3261?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/afea70c01c7d2a844662a4d66b9f9d933cc6449c&el=desc) will **increase** coverage by `0.12%`.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/huggingface/transformers/pull/3261/graphs/tree.svg?width=650&height=150&src=pr&token=9qOlN6Hb1c)](https://codecov.io/gh/huggingface/transformers/pull/3261?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master    #3261      +/-   ##
==========================================
+ Coverage   77.82%   77.94%   +0.12%     
==========================================
  Files          98       98              
  Lines       16666    16666              
==========================================
+ Hits        12970    12990      +20     
+ Misses       3696     3676      -20     
```


| [Impacted Files](https://codecov.io/gh/huggingface/transformers/pull/3261?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [src/transformers/modeling\_utils.py](https://codecov.io/gh/huggingface/transformers/pull/3261/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy9tb2RlbGluZ191dGlscy5weQ==) | `93.56% <0.00%> (-0.14%)` | :arrow_down: |
| [src/transformers/modeling\_tf\_utils.py](https://codecov.io/gh/huggingface/transformers/pull/3261/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy9tb2RlbGluZ190Zl91dGlscy5weQ==) | `86.22% <0.00%> (+3.75%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/huggingface/transformers/pull/3261?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/huggingface/transformers/pull/3261?src=pr&el=footer). Last update [afea70c...547efb9](https://codecov.io/gh/huggingface/transformers/pull/3261?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
<|||||>Well, I don't think the `SequenceClassification" head is not the right one, as it is supposed for sequence classification/regression tasks (see https://huggingface.co/transformers/model_doc/albert.html#transformers.AlbertForSequenceClassification).

NER requires a per token classification implementation: https://github.com/huggingface/transformers/blob/master/src/transformers/modeling_albert.py#L791 <|||||>Will this be fixed by switching to AutoModel? I think we are doing that here for `run_pl_ner.py` https://github.com/huggingface/transformers/pull/3290<|||||> I knew what the problem was.  In version 2.5.1, there is no definition for `AlbertForTokenClassification` in `run_ner.py`
However, it is included in the master branch. I'll close this request.<|||||>@srush I think using AutoModelForTokenClassification is better than calling each model class. How about making a change to `run_ner.py`?<|||||>Yes, if you can send that PR and add me as a reviewers