Skip to content

Commit 4031089

Browse files
committed
Add new phrases to BPMFMappings.txt and phrase.occ; update import statements in scripts
1 parent fcb5991 commit 4031089

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

Source/Data/BPMFMappings.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37823,6 +37823,7 @@
3782337823
大方 ㄉㄚˋ ㄈㄤ
3782437824
大方向 ㄉㄚˋ ㄈㄤ ㄒㄧㄤˋ
3782537825
大於 ㄉㄚˋ ㄩˊ
37826+
大於不等於 ㄉㄚˋ ㄩˊ ㄅㄨˋ ㄉㄥˇ ㄩˊ
3782637827
大於等於 ㄉㄚˋ ㄩˊ ㄉㄥˇ ㄩˊ
3782737828
大族 ㄉㄚˋ ㄗㄨˊ
3782837829
大易 ㄉㄚˋ ㄧˋ
@@ -39166,6 +39167,7 @@
3916639167
太陽能源板 ㄊㄞˋ ㄧㄤˊ ㄋㄥˊ ㄩㄢˊ ㄅㄢˇ
3916739168
太陽能熱水器 ㄊㄞˋ ㄧㄤˊ ㄋㄥˊ ㄖㄜˋ ㄕㄨㄟˇ ㄑㄧˋ
3916839169
太陽能電池 ㄊㄞˋ ㄧㄤˊ ㄋㄥˊ ㄉㄧㄢˋ ㄔˊ
39170+
太陽花 ㄊㄞˋ ㄧㄤˊ ㄏㄨㄚ
3916939171
太陽谷 ㄊㄞˋ ㄧㄤˊ ㄍㄨˇ
3917039172
太陽輻射 ㄊㄞˋ ㄧㄤˊ ㄈㄨˊ ㄕㄜˋ
3917139173
太陽隊 ㄊㄞˋ ㄧㄤˊ ㄉㄨㄟˋ

Source/Data/phrase.occ

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40669,6 +40669,7 @@
4066940669
大方 155
4067040670
大方向 30
4067140671
大於 208
40672+
大於不等於 0
4067240673
大於等於 0
4067340674
大族 11
4067440675
大易 8
@@ -41984,6 +41985,7 @@
4198441985
太陽能源板 0
4198541986
太陽能熱水器 0
4198641987
太陽能電池 7
41988+
太陽花 0
4198741989
太陽谷 2
4198841990
太陽輻射 2
4198941991
太陽隊 13

Source/Data/scripts/find_low_scored_phrases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from .find_shared import load_top_phrases_from_data_txt
1+
import find_shared
22

33
def main():
44
'''
55
Find the phrases that have a lower score than the sum of the scores of their
66
components.
77
'''
8-
top_scored_chars, top_scored_phrases = load_top_phrases_from_data_txt()
8+
top_scored_chars, top_scored_phrases = find_shared.load_top_phrases_from_data_txt()
99
for key in top_scored_phrases.keys():
1010
entry = top_scored_phrases[key]
1111
score = entry.score

Source/Data/scripts/find_symbol_only_phrases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from .find_shared import load_top_phrases_from_data_txt
1+
import find_shared
22

33
def main():
44
'''
55
Check if there is any top scored phrase that has a score lower than -8.0,
66
which is the score for emojis.
77
'''
8-
_, top_scored_phrases = load_top_phrases_from_data_txt()
8+
_, top_scored_phrases = find_shared.load_top_phrases_from_data_txt()
99
for key in top_scored_phrases.keys():
1010
entry = top_scored_phrases[key]
1111
if entry.score <= -8.0:

0 commit comments

Comments
 (0)