Zaktualizuj 'run.py'
This commit is contained in:
parent
f1dc927718
commit
e9efe3a197
2
run.py
2
run.py
@ -6,7 +6,7 @@ from sklearn.feature_extraction.text import TfidfVectorizer
|
|||||||
from sklearn.naive_bayes import MultinomialNB
|
from sklearn.naive_bayes import MultinomialNB
|
||||||
from sklearn.pipeline import make_pipeline
|
from sklearn.pipeline import make_pipeline
|
||||||
from sklearn.metrics import accuracy_score
|
from sklearn.metrics import accuracy_score
|
||||||
|
#test
|
||||||
def readFile(filename):
|
def readFile(filename):
|
||||||
X_dev = []
|
X_dev = []
|
||||||
with open(filename, 'r', encoding="utf-8") as dev_in:
|
with open(filename, 'r', encoding="utf-8") as dev_in:
|
||||||
|
Loading…
Reference in New Issue
Block a user