Fix Wygładzania
This commit is contained in:
parent
6da349e88f
commit
3882f245bb
Binary file not shown.
21038
dev-0/out.tsv
21038
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
14828
test-A/out.tsv
14828
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
2
train.py
2
train.py
@ -18,7 +18,7 @@ def train_model(data, model,vocab,alpha):
|
||||
denominator = total_count + alpha * len(vocab)
|
||||
for w1 in model[w2]:
|
||||
nominator = model[w2][w1] + alpha
|
||||
model[w2][w1] /= nominator / denominator
|
||||
model[w2][w1] = nominator / denominator
|
||||
|
||||
|
||||
def predict_data(read_path, save_path, model):
|
||||
|
Loading…
Reference in New Issue
Block a user