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

Add quotes to paths in MeCab arguments #7142

Merged
merged 1 commit into from
Sep 15, 2020

Conversation

polm
Copy link
Contributor

@polm polm commented Sep 15, 2020

Without quotes directories with spaces in them will fail to be processed
correctly.

This bug was first reported in the fugashi repo here. It's not a bug in fugashi - fugashi handles quoted paths correctly, and the relevant dictionary packages quote paths in MECAB_ARGS to handle this case. Looks like it was missed when the dictionary handling code was added, since it doesn't use MECAB_ARGS but instead builds args up from component parts.

Without quotes directories with spaces in them will fail to be processed
correctly.
Copy link
Contributor

@JetRunner JetRunner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@JetRunner JetRunner merged commit e29c3f1 into huggingface:master Sep 15, 2020
mfuntowicz pushed a commit that referenced this pull request Sep 18, 2020
Without quotes directories with spaces in them will fail to be processed
correctly.
Zigur pushed a commit to Zigur/transformers that referenced this pull request Oct 26, 2020
Without quotes directories with spaces in them will fail to be processed
correctly.
fabiocapsouza pushed a commit to fabiocapsouza/transformers that referenced this pull request Nov 15, 2020
Without quotes directories with spaces in them will fail to be processed
correctly.
fabiocapsouza added a commit to fabiocapsouza/transformers that referenced this pull request Nov 15, 2020
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.

None yet

2 participants