Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the best way to train spaCy for NER #762

Closed
cbonadio opened this issue Jan 20, 2017 · 2 comments
Closed

What is the best way to train spaCy for NER #762

cbonadio opened this issue Jan 20, 2017 · 2 comments
Labels
usage General spaCy usage

Comments

@cbonadio
Copy link

cbonadio commented Jan 20, 2017

Hello

I am developing a bot for a retailer and I would like to know what is the best way to train spaCy to do Name Entity recognition. The bot will be in the Portuguese language ( I know there is no full support for it ).

With the current implementation of the português language, is it enough to get a reasonable NER result (I will provide all the data for the training) ?

If I want to do ner on the following text “I am looking for a bike” and would like to extract "bike" as an entity labeled “PRODUCT”, should my training data has all the variations on that place for the items that the retailer has, like:

“I am looking for a bike”
“I am looking for a car”
“I am looking for a book”

(bike, car, book) are items on the retailer catalog and should be labeled as “PRODUCT”

or it is better to have more variations like

“I want a bike”
“do you have a car”
“I am searching for a book”

or variations and volume like:

“I want a bike”
“I want a car”
“I want a book”
“do you have a bike”
“do you have a car”
“do you have a book”
“I am searching for a bike”
“I am searching for a car”
“I am searching for a book”

Thanks

@honnibal
Copy link
Member

Hi,

I've given a longer reply on a related question in #773 , to start helping people on this in one place.

The question of how best to provide examples to the model speaks to much deeper questions about NLP and ML. There's currently no one-size-fits-all solution to this, and it's not specifically a spaCy issue.

Closing this so we can keep discussion in one place.

@lock
Copy link

lock bot commented May 9, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
usage General spaCy usage
Projects
None yet
Development

No branches or pull requests

3 participants