mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-18 17:36:41 +00:00
ignore log in text
This commit is contained in:
parent
ae59522b27
commit
d895ac837e
@ -1,5 +1,5 @@
|
||||
import nltk.corpus
|
||||
from hexlib.misc import silent_stdout
|
||||
from hexlib.misc import silent_stderr
|
||||
from lxml import etree
|
||||
from nltk.corpus import stopwords
|
||||
from nltk.stem import WordNetLemmatizer
|
||||
@ -10,7 +10,7 @@ get_text = etree.XPath("//text()")
|
||||
|
||||
stop_words_en = set(stopwords.words("english"))
|
||||
|
||||
with silent_stdout:
|
||||
with silent_stderr:
|
||||
nltk.download("stopwords")
|
||||
nltk.download("wordnet")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user