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

_PY3_DATA_UPDATES uses win path if on win #777

Merged
merged 1 commit into from Oct 26, 2014

Conversation

owenhaynes
Copy link
Contributor

py3_data function does not work on windows as the item would never match a value in a windows path.

_PY3_DATA_UPDATES now has a windows version if windows is used

This is only a quick fix as having the list of theses data directories is not perfect.

py3_data function does not work on windows as the item would never match a value in a windows path.

_PY3_DATA_UPDATES now has a windows version if windows is used

This is only a quick fix as having the list of theses data directories is not perfect.
@stevenbird
Copy link
Member

Thanks for this. While it's not the final solution it's a helpful step in that direction.

stevenbird added a commit that referenced this pull request Oct 26, 2014
_PY3_DATA_UPDATES uses win path if on win
@stevenbird stevenbird merged commit 4b4b665 into nltk:develop Oct 26, 2014
_PY3_DATA_UPDATES = ["chunkers/maxent_ne_chunker",
"help/tagsets",
"taggers/maxent_treebank_pos_tagger",
"tokenizers/punkt"]
Copy link
Contributor

Choose a reason for hiding this comment

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

os.path.join() should join fragments correctly, taking care of '/' and ''.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that would be much cleaner, if you don't mind submitting a patch!

@dimazest
Copy link
Contributor

could you reopen the issue and assign it to me, so it doesn't get lost.

@stevenbird stevenbird mentioned this pull request Oct 31, 2014
@stevenbird
Copy link
Member

@dimazest I've added you as a developer; once you accept, please assign #783 to yourself and submit a PR when you're ready, thanks!

@dimazest
Copy link
Contributor

dimazest commented Nov 1, 2014

cool! thanks

@dimazest dimazest self-assigned this Nov 1, 2014
inteldict pushed a commit to inteldict/nltk that referenced this pull request Jul 15, 2015
_PY3_DATA_UPDATES uses win path if on win
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

3 participants