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

Some rows contain ''None" labels. #3

Open
dongheechoi opened this issue May 15, 2024 · 1 comment
Open

Some rows contain ''None" labels. #3

dongheechoi opened this issue May 15, 2024 · 1 comment

Comments

@dongheechoi
Copy link

When I run bash scripts/build_biorex_datasets.sh, the error occurs.

label = label2id[ex[self.label_name]]

Here, the code emits an error, because it cannot find a label when the label is ''.

I think the

data_df = pd.read_csv(data_file, sep='\t', dtype=str).fillna(np.str_(''))
should be changed.
The None label is changed into "'' for this code.

@ptlai
Copy link
Collaborator

ptlai commented May 22, 2024

Thank you very much for reporting the error. I have merged your request.

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
-