test A
This commit is contained in:
parent
ab3072e91a
commit
2f7aca2ebf
4
run.py
4
run.py
@ -13,7 +13,7 @@ def read_train_data():
|
|||||||
def read_pred_data():
|
def read_pred_data():
|
||||||
print('Load pred data')
|
print('Load pred data')
|
||||||
x_p = []
|
x_p = []
|
||||||
with open("dev-0/in.tsv", encoding='utf-8') as f:
|
with open("test-A/in.tsv", encoding='utf-8') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
x_p.append(line)
|
x_p.append(line)
|
||||||
return x_p
|
return x_p
|
||||||
@ -37,4 +37,4 @@ def get_result():
|
|||||||
x, x_p = vectorize(x, x_p)
|
x, x_p = vectorize(x, x_p)
|
||||||
return calc_score(x, y, x_p)
|
return calc_score(x, y, x_p)
|
||||||
|
|
||||||
pd.DataFrame(get_result()).to_csv("dev-0/out.tsv", header=False, index=None)
|
pd.DataFrame(get_result()).to_csv("test-A/out.tsv", header=False, index=None)
|
5447
test-A/out.tsv
Normal file
5447
test-A/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user