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

release year cannot be obtained in ml-10m #131

Open
ytachioka opened this issue Jul 2, 2024 · 0 comments
Open

release year cannot be obtained in ml-10m #131

ytachioka opened this issue Jul 2, 2024 · 0 comments

Comments

@ytachioka
Copy link

When item parsing ML-10M, for some cases, release year cannot be obtained.
origin_name.find('(') catches alternate name. I modified extended_dataset.py L.284 load_item_data.
m = re.compile(r'\((\d+)\)') for i in range(origin_data.shape[0]): split_type = origin_data.iloc[i, 2].split('|') type_str = ' '.join(split_type) processed_data.iloc[i, 2] = type_str origin_name = origin_data.iloc[i, 1] r = m.search(origin_name) if r: year = r.group(1) year_start = r.start()+1 #year_start = origin_name.find('(') + 1 #year_end = origin_name.find(')') title_end = year_start - 2 #year = origin_name[year_start:year_end] title = origin_name[0: title_end]

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