improved_2
This commit is contained in:
parent
07afcec739
commit
d971ae8da7
39972
dev-0/out.tsv
39972
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
23256
dev-1/out.tsv
23256
dev-1/out.tsv
File diff suppressed because it is too large
Load Diff
BIN
ngrams_2.pkl
BIN
ngrams_2.pkl
Binary file not shown.
28264
test-A/out.tsv
28264
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
2
train.py
2
train.py
@ -28,7 +28,7 @@ def main():
|
||||
if counter % 1000 == 0:
|
||||
print('counter = ', counter)
|
||||
counter += 1
|
||||
ngrams[1] = dict(sorted(ngrams[1].items(), key=lambda item: ngrams[1][item[0]], reverse=True)[:1000])
|
||||
ngrams[1] = dict(sorted(ngrams[1].items(), key=lambda item: ngrams[1][item[0]], reverse=True)[:10000])
|
||||
ngrams[2] = dict(sorted(ngrams[2].items(), key=lambda item: ngrams[2][item[0]], reverse=True)[:100000])
|
||||
pickle.dump(ngrams, open('ngrams_2.pkl', 'wb'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user