Closed JeMunos closed 7 years ago
$pip show stop_words Name: stop-words Version: 2015.2.23.1 Summary: Get list of common stop words in various languages in Python Home-page: https://github.com/Alir3z4/python-stop-words Author: Alireza Savand Author-email: alireza.savand@gmail.com License: Copyright (c) 2014, Alireza Savand, Contributors Location: /usr/local/lib/python2.7/site-packages
@JeMunos Python 2 Unicode strings have the u
in their prefix.
The u
is not part of the string itself, it's just the way to tell Python the string is an unicode string.
However in Python 3 Unicode handling is much nicer and doesn't have that kind of confusion.
Unicode in Python 2: https://docs.python.org/2/howto/unicode.html Unicode in Python 3: https://docs.python.org/3/howto/unicode.html
Does that makes sense ? I'll close this issue, feel free to re-open if that doesn't answer your question.
Ok that makes sense. Thank you for the clarification.
Somehow the english library is outputting the letter u in front of each word.