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

mapping from propbank to framenet #10

Open
jheinecke opened this issue Jan 12, 2022 · 1 comment
Open

mapping from propbank to framenet #10

jheinecke opened this issue Jan 12, 2022 · 1 comment

Comments

@jheinecke
Copy link

jheinecke commented Jan 12, 2022

Hello,
thanks for this data! I'm trying to map propbank rolesets andarguments to FrameNet frames and frame-elements. But as I see this is not (yet) possible using the .json files in instances/. So I try to use the instances/semlink-2 file (together with tools/annotation.py. However, I came across cases where the FrameNet frame is None (OK, no FrameNet frame defined) NF or IN. What is the meaning of the latter two?

BTW, the python lines indicating how to use the json-files seem to have an error, the following works:

    # Let's get the FN mappings from the PB roleset "abduct.01"
    vn_mapping = pb_vn_mappings["abduct.01"]    

    # Here we just grab the first sense
    # vn_class = vn_mapping[list(vn_mapping.keys())[0]] # original line (here vn_class is a dict)
    vn_class = list(vn_mapping.keys())[0]  # should be like this

    # From VN, abduct.01 maps to VerbNet class 10.5
    fn_mapping = vn_fn_mappings[vn_class + "-" + verb]

    print (fn_mapping)
    # And from FN we get the Frame "kidnapping"

Thanks

@kevincstowe
Copy link
Collaborator

Sorry for the delay! These two codes are a holdover from a much older version. I believe "NF" is for "Not found": cases where the verb form was not in (the current) version of FrameNet. Theoretically this should be treated the same as None. "IN" was for "indefinite": cases where the sense mapped to multiple FN frames, and it wasn't clear which one to use. All three cases indicate a lack of a FN annotation.

It should be possible if not straightforward to ma p from PB rolesets/arguments to FN using the files, by going PB -> VN -> FN, which might be a solution, but I understand it's a bit of a hassle.

I've made the revision to the code you suggested, thank you!

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