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

Predict sequence when some parts are known #549

Open
dimidd opened this issue Mar 16, 2020 · 0 comments
Open

Predict sequence when some parts are known #549

dimidd opened this issue Mar 16, 2020 · 0 comments

Comments

@dimidd
Copy link
Contributor

dimidd commented Mar 16, 2020

Is your feature request related to a problem? Please describe.
I'd like to predict labels for a sequence. Suppose some of the labels are known, and I only want to predict the rest. E.g. in the sentece
'Paxar Corp said it has acquired Thermo-Print GmbH'
Suppose I know that 'Paxar Corp' is a named entity of type ORG, but I'd still like to predict other entities. Assuming that the knowledge of some entities can affect the label distribution of others.

Describe the solution you'd like
Perhaps add an optional param named known to SequenceLabeler.predict, which is a list of dictionaries. Each dictionary will contain the start and end indices, the text, and the label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant