fix dev
This commit is contained in:
parent
c8cb346bf5
commit
9ea4e1abab
BIN
.predict.py.swp
BIN
.predict.py.swp
Binary file not shown.
BIN
.train.py.swp
BIN
.train.py.swp
Binary file not shown.
3869
dev-0/out.tsv
3869
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -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:
|
||||||
|
8
train.py
8
train.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user