-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用長字符畫文字查詢語言模型發生崩潰 #512
Comments
按照描述無法復現。 |
崩溃报告
|
配置方面我增加了 patch:
style:
color_scheme: apathy
horizontal: true
inline_preedit: true
candidate_format: "%c\u2005%@ \u2005" # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间。
font_point: 16 # 候选文字大小
label_font_point: 14 # 候选编号大小
corner_radius: 5 # 候选条圆角
border_height: 0 # 窗口边界高度,大于圆角半径才生效
border_width: 0 # 窗口边界宽度,大于圆角半径才生效 default.custom.yaml: patch:
switcher:
caption: 〔方案选单〕
hotkeys:
- Control+grave
menu:
page_size: 10
schema_list:
- schema: luna_pinyin_simp
- schema: luna_pinyin
- schema: luna_pinyin_fluency # 语句流
# - schema: wubi_pinyin # 五笔拼音混合輸入 luna_pinyin_simp.custom.yaml: patch:
# 載入朙月拼音擴充詞庫
"translator/dictionary": luna_pinyin.extended
# 改寫拼寫運算,使得含西文的詞彙(位於 luna_pinyin.cn_en.dict.yaml 中)不影響簡拼功能(注意,此功能只適用於朙月拼音系列方案,不適用於各類雙拼方案)
# 本條補靪只在「小狼毫 0.9.30」、「鼠鬚管 0.9.25 」、「Rime-1.2」及更高的版本中起作用。
"speller/algebra/@before 0": xform/^([b-df-hj-np-tv-z])$/$1_/
# 符号快速输入和部分符号的快速上屏
punctuator:
import_preset: symbols
symbols:
"/fs": [½, ‰, ¼, ⅓, ⅔, ¾, ⅒ ]
"/bq": [😂️, 😅️, ☺️, 😱️, 😭️, 😇️, 🙃️, 🤔️, 💊️, 💯️, 👍️, 🙈️, 💩️, 😈️ ]
"/dn": [⌘, ⌥, ⇧, ⌃, ⎋, ⇪, , ⌫, ⌦, ↩︎, ⏎, ↑, ↓, ←, →, ↖, ↘, ⇟, ⇞]
"/fh": [ ©, ®, ℗, ℠, ™, ℡, ⓘ, ♂, ♀, ☉, ☊, ☋, ☌, ☍, ☐, ☑︎, ☒, ☜, ☝, ☞, ☟, ✎, ✄, ♲, ♻, ⚐, ⚑, ⚠]
"/xh": [ *, ×, ✱, ★, ☆, ✩, ✧, ❋, ❊, ❉, ❈, ❅, ✿, ✲]
half_shape:
"#": "#"
"*": "*"
"`": "`"
"~": "~"
"@": "@"
"=": "="
"/": ["/", "÷"]
'\': "、"
"_" : "──"
"'": {pair: ["「", "」"]}
"[": ["【", "["]
"]": ["】", "]"]
"$": ["¥", "$", "€", "£", "¢", "¤"]
"<": ["《", "〈", "«", "<"]
">": ["》", "〉", "»", ">"]
recognizer:
patterns:
email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$"
uppercase: "[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$"
punct: "^/([a-z]+|[0-9]0?)$"
# 模糊拼音
'speller/algebra':
- erase/^xx$/ # 第一行保留
# 以下是一組容錯拼寫,《漢語拼音》方案以前者爲正
- derive/^([nl])ve$/$1ue/ # nve = nue, lve = lue
- derive/^([jqxy])u/$1v/ # ju = jv,
- derive/un$/uen/ # gun = guen,
- derive/ui$/uei/ # gui = guei,
- derive/iu$/iou/ # jiu = jiou,
# 自動糾正一些常見的按鍵錯誤
- derive/([aeiou])ng$/$1gn/ # dagn => dang
- derive/([dtngkhrzcs])o(u|ng)$/$1o/ # zho => zhong|zhou
- derive/ong$/on/ # zhonguo => zhong guo
- derive/ao$/oa/ # hoa => hao
- derive/([iu])a(o|ng?)$/a$1$2/ # tain => tian 此外是一些字典文件。 |
崩溃在查询语言模型的代码里。没有找到重现方法。可能跟词典有关。 |
我找到引起问题的部分了,在我 *´∀`)´∀`)*´∀`)*´∀`) ha ha ha ha
ヾ(≧∇≦*)ゝ hai
(。・∀・)ノ゙ hai
(′▽`〃) hai xiu
(✿◡‿◡) hai xiu
Σ( ° △ °|||)︴ han
(lll¬ω¬) han si
Σ( ° △ °|||)︴ han si
|(*′口`) han si
(゜▽^*)) hao di
(u‿ฺu✿ฺ) hao di
(*^▽^*) hao kai xin
(*^-^*) hao ke ai
(╯▽╰ )好香~~ hao xiang
(≧∇≦)ノ hao xi huan
ヽ(✿゚▽゚)ノ hao ye
(o゜▽゜)o☆ hao zhu yi
(´▽`ʃ♡ƪ) happy
(@ ̄ー ̄@) heng heng
o( ̄ヘ ̄o#) heng heng
(;′⌒`) heng heng
Hi~ o(* ̄▽ ̄*)ブ ni hao
○( ^皿^)っHiahiahia… hia hia 上述文件是通过 ---
name: luna_pinyin.extended
version: "2015.12.02"
sort: by_weight
use_preset_vocabulary: true
#此處爲明月拼音擴充詞庫(基本)默認鏈接載入的詞庫,有朙月拼音官方詞庫、明月拼音擴充詞庫(漢語大詞典)、明月拼音擴充詞庫(詩詞)、明月拼音擴充詞庫(含西文的詞彙)。如果不需要加載某个詞庫請將其用「#」註釋掉。
#雙拼不支持 luna_pinyin.cn_en 詞庫,請用戶手動禁用。
import_tables:
- luna_pinyin
- luna_pinyin.hanyu
- luna_pinyin.poetry
- luna_pinyin.cn_en
- luna_pinyin.kaomoji
- luna_pinyin.sgmain
... 导入的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
系统: macOS Big Sur 11.2
鼠须管:0.15.0
如何复现:中文状态连续按h
在第6个h时会没有反应,再按一次h会清空内容,反复上述过程(一般为2次,偶尔出现需要多次),会出现语言播报一段英文的错误提示。大意为launch啥玩意失败了,squirrel crashed,如果反复出现联系开发者。
The text was updated successfully, but these errors were encountered: