8000 setRelation deprecated · Issue #20 · uma-pi1/minie · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
setRelation deprecated #20
Open
Open
@ProfTuan

Description

@ProfTuan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0