Skip to content
Snippets Groups Projects
Commit 3605f3c4 authored by bjje's avatar bjje
Browse files

Minor bug fixes after introduction of dtuimldmtools

parent 47aa757d
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,7 @@ import importlib_resources
from sklearn.feature_extraction.text import CountVectorizer
filename_docs = importlib_resources.files("dtuimldmtools").joinpath("data/textDocs.txt")
filename_stop = importlib_resources.files("dtuimldmtools").joinpath(
"stopWords.txt"
)
filename_stop = importlib_resources.files("dtuimldmtools").joinpath("data/stopWords.txt")
# As before, load the corpus and preprocess:
with open(filename_docs, "r") as f:
......
......@@ -9,9 +9,7 @@ from nltk.stem import PorterStemmer
from sklearn.feature_extraction.text import CountVectorizer
filename_docs = importlib_resources.files("dtuimldmtools").joinpath("data/textDocs.txt")
filename_stop = importlib_resources.files("dtuimldmtools").joinpath(
"stopWords.txt"
)
filename_stop = importlib_resources.files("dtuimldmtools").joinpath("data/stopWords.txt")
# As before, load the corpus and preprocess:
with open(filename_docs, "r") as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment