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

issue in create_mil_data #7

Open
sssingh21 opened this issue Oct 25, 2022 · 1 comment
Open

issue in create_mil_data #7

sssingh21 opened this issue Oct 25, 2022 · 1 comment

Comments

@sssingh21
Copy link

line 11

seeds_filedir = 'seeds/' + filedir[5:]

What does this line do? seems incorrect.

And train.jsonl is not available for oposum data and it seems that line 28 onwards is hardcoded for space data only. Can you please upload the latest working code?

@artemprisiazhniuk
Copy link

filedir[5:] is a way to extract dataset/domain from datapath. For instance, it turns 'data/space' into 'space' and 'data/oposum/bag' to 'oposum/bag'

oposum dataset has train.jsonl for every domain (in every domain folder, e. g. oposum/bag/train.jsonl) because every domain in oposum has its own aspects. And in line domain = 'space' domain is just an alias, you can use filedir.split('/')[-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

2 participants