-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
728b358
commit 9b1ffd0
Showing
3 changed files
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
import os | ||
import sys | ||
|
||
FASTTEXT_PATH = 'model/wiki-news-300d-1M-subword.bin' | ||
|
||
HUGARIAN = False # word alignment option (default: grow-diag-final) | ||
|
||
LAMBDA = 0.7 # threshold of word alignment candidate score | ||
DELTA = 0.9 # threshold of phrase alignment candidate score | ||
ALPHA = 0.05 # bias for length of phrase | ||
|
||
if os.path.exists(FASTTEXT_PATH): | ||
MODEL_PATH = 'model/wiki-news-300d-1M-subword.bin' # path of pre-trained word embedding model (default: fastText) | ||
else: | ||
print('Input the path of your pre-trained word embedding model.') | ||
MODEL_PATH = input('> ') |