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

Fix double quotation mark(") in each column for Pandas csv parser compatibility. #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dalgarak
Copy link

This commit fixes some double quotation mark(") pair mismatch errors in each column, without compromising the meaning of the original sentence. (and fixes issue #2 , #4 , #5 , too.)

pandas.read_csv() method is often used for parsing tsv files in many projects, including huggingface datasets.
(e.g. https://huggingface.co/datasets/kor_nlu) but that method utilizes double quotation mark(") at the beginning to escape special characters in the column (same as csv convention), as a result, the TAB character is not parsed properly.

"multinli" dataset (KorNLI/multinli.train.ko.tsv) is not used in huggingface datasets due to related error, (see https://huggingface.co/datasets/kor_nlu/blob/main/kor_nlu.py#L28) and for the same reason, the number of data in testset is treated differently from published one.

ys7yoo pushed a commit to ys7yoo/kor-nlu-datasets that referenced this pull request Mar 26, 2023
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

Successfully merging this pull request may close these issues.

1 participant