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

Label meaning #10

Open
Jingling1 opened this issue Sep 23, 2024 · 0 comments
Open

Label meaning #10

Jingling1 opened this issue Sep 23, 2024 · 0 comments

Comments

@Jingling1
Copy link

Jingling1 commented Sep 23, 2024

Dear contributors:

the label of each frame has the indices from 0 to 14, but only the indices of 0, 1, 7, 8, 14 are used
I'm interested in the meaning of label[2:7] and label[9:14]

Thanks for your help!

Your code is like:

for label in labels:
triplet = label[0:1]
if triplet[0] != -1.0:
triplet_label[triplet[0]] += 1
tool = label[1:7]
if tool[0] != -1.0:
tool_label[tool[0]] += 1
verb = label[7:8]
if verb[0] != -1.0:
verb_label[verb[0]] += 1
target = label[8:14]
if target[0] != -1.0:
target_label[target[0]] += 1
phase = label[14:15]
if phase[0] != -1.0:
phase_label[phase[0]] += 1

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