Using 'ner' task in pipeline with a non default model gives me entities as "LABEL-6" , "LABEL-8" instead of "I-ORG" and "I-LOC"
See original GitHub issuemodel - dbmdz/bert-base-cased-finetuned-conll03-english
Language - english
The problem arises when using:
- my own modified scripts
The tasks I am working on is:
- an official GLUE/SQUaD task: ner
To reproduce
tokenizer = AutoTokenizer.from_pretrained("dbmdz/bert-base-cased-finetuned-conll03-english")
model = AutoModelForTokenClassification.from_pretrained("dbmdz/bert-base-cased-finetuned-conll03-english")
ner_task = pipeline(task='ner', model=model, tokenizer=tokenizer)
ner_task('Hugging Face is a French company based in New-York.')
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
How to keep structure of text after feeding it to a pipeline for NER
Basically what I do is substituting the entities recognized with the entity tag, and leave the rest of the text as is. With...
Read more >DotNetCoreCLI@2 - .NET Core v2 task - Microsoft Learn
Build, test, package, or publish a dotnet application, or run a custom dotnet command.
Read more >Create a CI/CD pipeline for .NET with the DevOps Starter Project
What's covered in this lab? · Create an ASP.NET sample DevOps project using DevOps Starter feature in Azure · Examine the CI/CD pipelines...
Read more >Creating a CI/CD pipeline with Azure Pipelines and Compute ...
This tutorial shows how to use Azure Pipelines to create a continuous integration/continuous deployment (CI/CD) pipeline for applications ...
Read more >Apply Solution Upgrade in Pipeline
UPDATE (2021-04-02): For a few days there is a task in the Power Platform Build Tools to apply solution upgrades. As I mentioned...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh no, there’s something wrong with the label alignment (can also be seen in the
config.json
):Thanks for reporting, I’ll try to fix it 😃
In the meantime, you could use our large model
dbmdz/bert-large-cased-finetuned-conll03-english
😅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.