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

Code to go from clusters to transformed document #61

Open
griff4692 opened this issue Jul 23, 2020 · 2 comments
Open

Code to go from clusters to transformed document #61

griff4692 opened this issue Jul 23, 2020 · 2 comments

Comments

@griff4692
Copy link

Is there code to go from "The dog wagged its tail" --> "The dog wagged the dog's tail"?

Basically, go from clusters to head prediction and then replacement of mentions with heads?

@mandarjoshi90
Copy link
Owner

Not in this repo, no. But if you look at the output prediction files (*.jsonlines), you should be able to do this easily since it contains coreferent span clusters.

@griff4692
Copy link
Author

Thanks for replying! I'm cross referencing this post on allennllp allenai/allennlp#4503

Please see my solution resolve_coref_clusters.py

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

2 participants