This commit is contained in:
s426135 2020-03-22 13:34:23 +01:00
parent c8cb346bf5
commit 9ea4e1abab
6 changed files with 3877 additions and 8 deletions

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -53,10 +53,10 @@ def main():
paranormal_class_logprob = pickle_list[0] paranormal_class_logprob = pickle_list[0]
sceptic_class_logprob = pickle_list[1] sceptic_class_logprob = pickle_list[1]
word_logprobs = pickle_list[2] word_logprobs = pickle_list[2]
in_file = "test-A/in.tsv" #in_file = "test-A/in.tsv"
#in_file = "dev-0/in.tsv" in_file = "dev-0/in.tsv"
out_file = "test-A/out.tsv" #out_file = "test-A/out.tsv"
#out_file = "dev-0/out.tsv" out_file = "dev-0/out.tsv"
print (f"in {in_file}") print (f"in {in_file}")
print (f"out {out_file}") print (f"out {out_file}")
with open(in_file) as in_f, open(out_file, 'w') as out_f: with open(in_file) as in_f, open(out_file, 'w') as out_f:

View File

@ -73,10 +73,10 @@ def calc_word_logprobs(word_counts):
return word_logprobs return word_logprobs
def main(): def main():
expected = './train/expected.tsv' #expected = './train/expected.tsv'
#expected = './dev-0/expected.tsv' expected = './dev-0/expected.tsv'
in_f = './train/in.tsv' #in_f = './train/in.tsv'
#in_f = './dev-0/in.tsv' in_f = './dev-0/in.tsv'
print (f"expected {expected}") print (f"expected {expected}")
print (f"in {in_f}") print (f"in {in_f}")
paranormal_class_lgprob, skeptic_class_logprob = calc_class_logprob(expected) paranormal_class_lgprob, skeptic_class_logprob = calc_class_logprob(expected)