Skip to content

请问如何如何在自定义词典「custom_phrase.txt」里限制词汇? #924

Answered by lotem
nutnutwin asked this question in Q&A
Discussion options

You must be logged in to vote

關閉自動造句選項,可以減少無意義的詞組。(同時也減少有意義的詞組,習慣打字詞不打長句可以考慮)
luna_pinyin方案爲例:

# luna_pinyin.custom.yaml
patch:
  translator/enable_sentence: false

另外,只要在custom_phrase.txt任意設置一個輸入碼爲abc的條目,例如文字隨意設爲abc,他會成爲該輸入的默認候選項,而通過拼音計算的詞組排在後邊,也可以防打錯。

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nutnutwin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #923 on November 18, 2021 15:40.