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

setRelation deprecated #20

Open
ProfTuan opened this issue Jul 10, 2023 · 0 comments
Open

setRelation deprecated #20

ProfTuan opened this issue Jul 10, 2023 · 0 comments

Comments

@ProfTuan
Copy link

For versioning reasons, I've been experimenting with updating the Stanford CoreNLP library to the latest (v4.5.4). However, an error is thrown for the CoreNLPUtils.java file, specifically the setRelation function. According to issue e7a7657 setRelation has been replaced in favor of updateEdge from SemanticGraph class.

Therefore (from CoreNLPUtils)

edge.setRelation(EnglishGrammaticalRelations.shortNameToGRel.get(oldRel.getShortName()));

should be replace with

semanticGraph.updateEdge(edge, EnglishGrammaticalRelations.shortNameToGRel.get(oldRel.getShortName()));

if latest version of CoreNLP is used.

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