Skip to content

Commit c9241e3

Browse files
authored
Add files via upload
1 parent 9082ac4 commit c9241e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ModelTrainer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def model_trainer():
7676
obj_data_en = lst_new_en.copy() # obj_data_en is now a list of tokenized sentence
7777
obj_data_fil = lst_new_fil.copy() # i.e. a list of sentences where each sentence is a list of words
7878

79-
# max_trans = 30000
80-
max_trans = 3000
79+
max_trans = 14075
80+
# max_trans = 3000
8181

8282
# for parsing the filipino sentences and tokenizing the words
8383
lst_fil_sen, fil_word_dict, reverse_fil_dict = sen_tokenizer(obj_data_fil, max_trans)
@@ -87,7 +87,7 @@ def model_trainer():
8787

8888

8989
#run the EM algorithm of IBM Model 1
90-
translate_eng_fil = IBM1_EM.expectation_maximization(fil_word_dict,en_word_dict,lst_fil_sen,lst_en_sen)
90+
translate_eng_fil = IBM1_EM.expect_max(fil_word_dict,en_word_dict,lst_fil_sen,lst_en_sen)
9191

9292

9393
# The following code finds out the maximum probability

0 commit comments

Comments
 (0)