final
This commit is contained in:
parent
6c3ca75b83
commit
97572efbcf
@ -7,7 +7,7 @@ from sklearn.metrics import accuracy_score
|
|||||||
|
|
||||||
|
|
||||||
df = pd.read_csv("train/train.tsv", sep="\t", header=None, error_bad_lines=False)
|
df = pd.read_csv("train/train.tsv", sep="\t", header=None, error_bad_lines=False)
|
||||||
|
df = df.head(1000)
|
||||||
|
|
||||||
|
|
||||||
dev_x = pd.read_csv("dev-0/in.tsv", sep="\t", header=None, error_bad_lines=False)
|
dev_x = pd.read_csv("dev-0/in.tsv", sep="\t", header=None, error_bad_lines=False)
|
||||||
@ -42,3 +42,8 @@ with open('test-A/out.tsv', 'wt') as file:
|
|||||||
for pred in pred_test:
|
for pred in pred_test:
|
||||||
file.write(str(pred)+'\n')
|
file.write(str(pred)+'\n')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1128
dev-0/out.tsv
1128
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
7
run.py
7
run.py
@ -7,7 +7,7 @@ from sklearn.metrics import accuracy_score
|
|||||||
|
|
||||||
|
|
||||||
df = pd.read_csv("train/train.tsv", sep="\t", header=None, error_bad_lines=False)
|
df = pd.read_csv("train/train.tsv", sep="\t", header=None, error_bad_lines=False)
|
||||||
|
df = df.head(1000)
|
||||||
|
|
||||||
|
|
||||||
dev_x = pd.read_csv("dev-0/in.tsv", sep="\t", header=None, error_bad_lines=False)
|
dev_x = pd.read_csv("dev-0/in.tsv", sep="\t", header=None, error_bad_lines=False)
|
||||||
@ -42,3 +42,8 @@ with open('test-A/out.tsv', 'wt') as file:
|
|||||||
for pred in pred_test:
|
for pred in pred_test:
|
||||||
file.write(str(pred)+'\n')
|
file.write(str(pred)+'\n')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1044
test-A/out.tsv
1044
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user