For portability you can use the function nltk.data.find(). E.g.,
nltk.data.find('corpora') gives
you the full path to the folder nltk_data\corpora.
Alexis
Incidentally, always use "raw strings" when you have backslashes in a
path: r"C:\Users\Mika\..."
Alexis
The \r has to do with the Windows newline sequence. Unix-style newlines
are typically "\n", but Windows-style newlines are "\r\n". You can just
delete the "\r" at the end if it's there.
John
==
http://homepages.inf.ed.ac.uk/s0930006/
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nltk-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.