From 773ac3e581cd742e9f4db5f993af11d7832d64ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Parafi=C5=84ski?= Date: Wed, 11 May 2022 01:08:33 +0200 Subject: [PATCH] Zaktualizuj 'run.py' --- run.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/run.py b/run.py index 054b1a9..ea5bd60 100644 --- a/run.py +++ b/run.py @@ -2,7 +2,6 @@ import lzma from sklearn.naive_bayes import MultinomialNB from sklearn.feature_extraction.text import TfidfVectorizer -from sklearn.metrics import accuracy_score def get_data(file_name, data_type): @@ -38,13 +37,3 @@ def bayes(train): bayes("train") - -# y_true = [] -# with open("dev-0/expected.tsv", encoding='utf-8') as file: -# for line in file.readlines(): -# y_true.append(line) -# y_pred = [] -# with open("dev-0/out.tsv", encoding='utf-8') as file: -# for line in file.readlines(): -# y_pred.append(line) -# print(accuracy_score(y_true, y_pred))