From 082c69e0252e728df00c2743c1c9729a818f040d Mon Sep 17 00:00:00 2001 From: Bartusiak Date: Sun, 29 Mar 2020 00:58:08 +0100 Subject: [PATCH] Added file code_prediction, where code creating file out.tsv which results is saving to folders dev-0 and test-A --- code_prediction.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code_prediction.py b/code_prediction.py index 454cab0..870459c 100644 --- a/code_prediction.py +++ b/code_prediction.py @@ -7,6 +7,7 @@ write_file_test=open('test-A/out.tsv','w') write_file_dev=open('dev-0/out.tsv','w') pickle_loaded=pickle.load(open_file) paranomal_class_logprob, skeptic_class_logprob, word_logprobs = pickle_loaded +#Niektórych słów nie bezie w zbiorze treningowym dev-0 i dev-A for i in word_logprobs.keys(): for token, tokens in word_logprobs[i].items(): if (word_logprobs['skeptic'][token] > word_logprobs['paranormal'][token]):