improve finally
This commit is contained in:
parent
d971ae8da7
commit
801cfedc85
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
4
train.py
4
train.py
@ -28,8 +28,8 @@ def main():
|
|||||||
if counter % 1000 == 0:
|
if counter % 1000 == 0:
|
||||||
print('counter = ', counter)
|
print('counter = ', counter)
|
||||||
counter += 1
|
counter += 1
|
||||||
ngrams[1] = dict(sorted(ngrams[1].items(), key=lambda item: ngrams[1][item[0]], reverse=True)[:10000])
|
ngrams[1] = dict(sorted(ngrams[1].items(), key=lambda item: ngrams[1][item[0]], reverse=True)[:100000])
|
||||||
ngrams[2] = dict(sorted(ngrams[2].items(), key=lambda item: ngrams[2][item[0]], reverse=True)[:100000])
|
ngrams[2] = dict(sorted(ngrams[2].items(), key=lambda item: ngrams[2][item[0]], reverse=True)[:120000])
|
||||||
pickle.dump(ngrams, open('ngrams_2.pkl', 'wb'))
|
pickle.dump(ngrams, open('ngrams_2.pkl', 'wb'))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user