Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amzxyz/RIME-LMDG
/ functions
Functions
889 in github.com/amzxyz/RIME-LMDG
⨍
Functions
889
◇
Types & classes
107
↓ 70 callers
Method
emit
(self, record)
tqdm/contrib/logging.py:24
↓ 62 callers
Method
write
Print a message via tqdm (without overlap with bars).
tqdm/std.py:717
↓ 45 callers
Method
log
(self, msg)
wanxiang-tools.py:2534
↓ 32 callers
Method
update
Manually update the progress bar, useful for streams such as reading files. E.g.: >>> t = tqdm(total=filesize) # Init
tqdm/std.py:1198
↓ 29 callers
Method
clear
Clear current bar display.
tqdm/std.py:1309
↓ 25 callers
Function
_get_nested_val
(d, path, default=None)
wanxiang-tools.py:1803
↓ 21 callers
Method
decode
(self, raw_input: str)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:504
↓ 18 callers
Method
__init__
(self, args: JobArgs)
wanxiang-tools.py:2312
↓ 15 callers
Function
register
注册一个拼音风格实现。 自定义的函数应当使用 ``**kwargs`` 来兼容后续可能会新增的关键字参数, 当前默认会传递如下参数: * ``pinyin``: 原始有声调的单个拼音 * ``strict``: 是否开启 strict 模式 * ``han`
pypinyin/style/__init__.py:30
↓ 14 callers
Method
read
(*args, **kwargs)
tqdm/utils.py:243
↓ 14 callers
Method
run
(self)
wanxiang-tools.py:2343
↓ 13 callers
Method
_safe_assign
精准在位更新,保留 YAML 容器的所有注释
wanxiang-tools.py:6124
↓ 12 callers
Method
close
Cleanup and (if leave=False) close the progressbar.
tqdm/std.py:1265
↓ 11 callers
Method
_dynamic_row_height
公用小工具:动态撑开行高,防止文字换行时压扁输入框
wanxiang-tools.py:4798
↓ 11 callers
Method
start
启动 rime_api_console.exe 进程 Returns: 是否成功启动
rime-schema-compare/src/rime_schema_compare/call_librime.py:87
↓ 10 callers
Method
_get_function_pointer
从 API 结构体中获取函数指针(简化实现)
rime-schema-compare/src/rime_schema_compare/call_librime.py:445
↓ 10 callers
Method
summary_line
(self)
rime-schema-compare/src/rime_schema_compare/eval_synonyms.py:62
↓ 9 callers
Method
get_value
(self)
wanxiang-tools.py:129
↓ 9 callers
Method
refresh
Force refresh the display of this bar. Parameters ---------- nolock : bool, optional If `True`, does no
tqdm/std.py:1325
↓ 8 callers
Function
_fix_v_u
(origin_py, new_py, v_to_u)
pypinyin/style/_tone_convert.py:573
↓ 8 callers
Method
format_meter
Return a string-based progress bar given some parameters Parameters ---------- n : int or float Number
tqdm/std.py:465
↓ 8 callers
Function
tone2_to_tone
将 :py:attr:`~pypinyin.Style.TONE2` 风格的拼音转换为 :py:attr:`~pypinyin.Style.TONE` 风格的拼音 :param tone2: :py:attr:`~pypinyin.Style.TONE2` 风格的拼音 :r
pypinyin/style/_tone_convert.py:429
↓ 7 callers
Function
_vendor_key
(vendor: Any)
rime-schema-compare/src/rime_schema_compare/reporting.py:12
↓ 7 callers
Function
callback
(i)
tqdm/cli.py:300
↓ 7 callers
Method
close
(self)
rime-schema-compare/src/rime_schema_compare/rime_runner.py:45
↓ 7 callers
Function
repo_root
()
rime-schema-compare/src/rime_schema_compare/config.py:12
↓ 7 callers
Method
reset_host
(self)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:478
↓ 7 callers
Method
simulate_key_sequence
调用 ``RimeSimulateKeySequence``:Python 侧只调一次 DLL,但 librime 内部仍会 把 ``key_sequence`` 拆成按键并逐键处理;长拼音串时比 :meth:`set_input` 慢。
rime-schema-compare/src/rime_schema_compare/call_librime.py:803
↓ 7 callers
Function
tone_to_tone2
将 :py:attr:`~pypinyin.Style.TONE` 风格的拼音转换为 :py:attr:`~pypinyin.Style.TONE2` 风格的拼音 :param tone: :py:attr:`~pypinyin.Style.TONE` 风格的拼音 :par
pypinyin/style/_tone_convert.py:336
↓ 6 callers
Function
_v_to_u
(pinyin, replace=False)
pypinyin/style/_tone_convert.py:567
↓ 6 callers
Method
_wrap
(self, inner: QHBoxLayout)
wanxiang-tools.py:7277
↓ 6 callers
Method
acquire
(self, *a, **k)
tqdm/std.py:102
↓ 6 callers
Function
emit_before
(delimiter_at: int)
rime-schema-compare/src/rime_schema_compare/text_pipeline.py:56
↓ 6 callers
Method
exit
(self)
tqdm/_monitor.py:41
↓ 6 callers
Method
get_lock
Get the global lock. Construct it if it does not exist.
tqdm/std.py:761
↓ 6 callers
Function
get_md5
计算字符串的 MD5 哈希值
scripts/fetch_any_dict.py:376
↓ 6 callers
Function
is_chinese_char
判断单个字符是否为汉字(直接 Unicode 范围比较)
scripts/is_chinese_char.py:20
↓ 6 callers
Function
replace_symbol_to_number
把声调替换为数字
pypinyin/style/_utils.py:66
↓ 6 callers
Function
resolve_rime_dll
(explicit: Optional[str] = None)
rime-schema-compare/src/rime_schema_compare/config.py:105
↓ 6 callers
Method
set_hover_state
(self, hovered)
wanxiang-tools.py:106
↓ 6 callers
Method
submit
`func(*args, **kwargs)` may replace currently waiting task.
tqdm/contrib/utils_worker.py:22
↓ 6 callers
Method
switch_distro
(self, vendor: VendorConfig, root: Optional[Path] = None)
rime-schema-compare/src/rime_schema_compare/rime_runner.py:57
↓ 6 callers
Method
wrapper_setattr
Actual `self.setattr` rather than self._wrapped.setattr
tqdm/utils.py:152
↓ 5 callers
Function
_append_unique_file
(paths: List[Path], candidate: Path)
rime-schema-compare/src/rime_schema_compare/config.py:56
↓ 5 callers
Method
_check_conflict_base
共用的底层冲突扫描引擎:支持正则免疫与编码集、分隔符开关
wanxiang-tools.py:5344
↓ 5 callers
Method
_focus_host
(self)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:623
↓ 5 callers
Function
_normalize_guid
(value: str)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:70
↓ 5 callers
Method
begin_decode_batch
Create one session and select schema; reuse for many :meth:`decode_pinyin_in_batch` calls. Call :meth:`end_decode_batch` when done (o
rime-schema-compare/src/rime_schema_compare/rime_runner.py:82
↓ 5 callers
Method
convert
(self, words, style, heteronym, errors, strict, **kwargs)
pypinyin/converter.py:24
↓ 5 callers
Method
data_dir
(self, root: Optional[Path] = None)
rime-schema-compare/src/rime_schema_compare/config.py:36
↓ 5 callers
Function
disp_len
Returns the real on-screen length of a string which may contain ANSI control codes and wide chars.
tqdm/utils.py:378
↓ 5 callers
Method
end_decode_batch
(self)
rime-schema-compare/src/rime_schema_compare/rime_runner.py:100
↓ 5 callers
Function
extract_hanzi
(s: str)
rime-schema-compare/src/rime_schema_compare/text_pipeline.py:156
↓ 5 callers
Method
get_context
获取输入上下文(候选词等) Args: session_id: 会话 ID Returns: 包含输入和候选词的字典,失败返回 None
rime-schema-compare/src/rime_schema_compare/call_librime.py:831
↓ 5 callers
Function
get_initials
获取单个拼音中的声母. :param pinyin: 单个拼音 :type pinyin: unicode :param strict: 是否严格遵照《汉语拼音方案》来处理声母和韵母 :return: 声母 :rtype: unicode
pypinyin/style/_utils.py:13
↓ 5 callers
Function
progress
(msg = '正在处理', sleep = 0.01)
scripts/progress.py:3
↓ 5 callers
Method
release
(self)
tqdm/std.py:106
↓ 5 callers
Method
write
Replaces internal `message`'s text with `s`.
tqdm/contrib/slack.py:39
↓ 4 callers
Function
_convert_whole
(chars, table)
pypinyin/style/wadegiles.py:550
↓ 4 callers
Method
_is_whitelisted
检查文件是否在白名单内 (优化路径匹配逻辑,完美解决 custom 目录问题)
wanxiang-tools.py:2659
↓ 4 callers
Method
_refresh_window_handles
(self, baseline_hwnds: Optional[Set[int]] = None)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:529
↓ 4 callers
Function
accumulate_char_metrics
Return ``(distance, cer)``; CER is ``None`` only when gold is empty.
rime-schema-compare/src/rime_schema_compare/benchmark_common.py:77
↓ 4 callers
Method
close
(self)
rime-schema-compare/scripts/第一列验证.py:59
↓ 4 callers
Method
delete
Deletes internal `message_id`.
tqdm/contrib/discord.py:81
↓ 4 callers
Method
destroy_session
销毁会话
rime-schema-compare/src/rime_schema_compare/call_librime.py:766
↓ 4 callers
Method
detect
()
wanxiang-tools.py:2479
↓ 4 callers
Function
finalize_summary
(stats: Dict[str, Dict[str, Any]], vendor_keys: Sequence[str])
rime-schema-compare/src/rime_schema_compare/benchmark_common.py:103
↓ 4 callers
Method
get_key_value
(self)
wanxiang-tools.py:404
↓ 4 callers
Function
init_stats
(vendor_keys: Sequence[str])
rime-schema-compare/src/rime_schema_compare/benchmark_common.py:26
↓ 4 callers
Method
moveto
(self, n)
tqdm/std.py:1441
↓ 4 callers
Method
pick_any
(self, target: QLineEdit, allow_dir: bool, is_output: bool = False)
wanxiang-tools.py:7510
↓ 4 callers
Method
pinyin
将汉字转换为拼音,返回汉字的拼音列表。 :param hans: 汉字字符串( ``'你好吗'`` )或列表( ``['你好', '吗']`` ). 可以使用自己喜爱的分词模块对字符串进行分词处理,
pypinyin/core.py:61
↓ 4 callers
Method
post_convert_style
在把原始带声调的拼音按拼音风格转换前会调用 ``pre_convert_style`` 方法。 如果返回值不为 ``None`` 会使用返回的结果代替 ``converted_pinyin`` 作为拼音风格转换后的最终拼音结果。 :param ha
pypinyin/converter.py:121
↓ 4 callers
Method
save_settings
(self)
wanxiang-tools.py:7637
↓ 4 callers
Function
sentence_to_continuous_pinyin
Lowercase contiguous pinyin, Hanzi only (reproducible baseline).
rime-schema-compare/src/rime_schema_compare/text_pipeline.py:164
↓ 4 callers
Function
split_sentences
切分语料为片段。规则要点: - **先按换行**(\\n / \\r\\n)切成行,空行丢弃;再对每行做下列切分; - 全角 ,。 始终切分(引号内亦然),以得到纯汉字块供评测; - 半角 , 同样切分;半角 . 仅在小数点(数字.数字)之外时切分; - 深
rime-schema-compare/src/rime_schema_compare/text_pipeline.py:117
↓ 4 callers
Method
stop
(self)
wanxiang-tools.py:2457
↓ 4 callers
Function
tone3_to_tone2
将 :py:attr:`~pypinyin.Style.TONE3` 风格的拼音转换为 :py:attr:`~pypinyin.Style.TONE2` 风格的拼音 :param tone3: :py:attr:`~pypinyin.Style.TONE3` 风格的拼音 :
pypinyin/style/_tone_convert.py:517
↓ 4 callers
Method
write
(_)
tqdm/cli.py:254
↓ 4 callers
Method
write
Replaces internal `message_id`'s text with `s`.
tqdm/contrib/telegram.py:56
↓ 4 callers
Method
write
Replaces internal `message_id`'s text with `s`.
tqdm/contrib/discord.py:59
↓ 3 callers
Method
__init__
(self, replace='')
tqdm/utils.py:108
↓ 3 callers
Function
_accumulate_char_metrics
Return (levenshtein_distance, cer for this sentence or None if no gold). ``normalize`` is applied to gold/pred before distance/CER (同义词等价评测).
rime-schema-compare/scripts/benchmark_sentences.py:189
↓ 3 callers
Method
_class_name
(self, hwnd: int)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:618
↓ 3 callers
Function
_fixed_result
(pinyin)
pypinyin/style/wadegiles.py:546
↓ 3 callers
Method
_get_free_pos
Skips specified instance.
tqdm/std.py:680
↓ 3 callers
Function
_is_ascii
(s)
tqdm/utils.py:273
↓ 3 callers
Method
_read_host_text
(self)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:717
↓ 3 callers
Function
_run_powershell_json
(command: str)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:202
↓ 3 callers
Function
_screen_shape_wrapper
Return a function which returns console dimensions (width, height). Supported: linux, osx, windows, cygwin.
tqdm/utils.py:282
↓ 3 callers
Method
_send_vk
(self, vk: int)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:696
↓ 3 callers
Function
_summary_csv_rows_for_block
( corpus_label: str, block: Dict[str, Any], vendors: List[VendorConfig], )
rime-schema-compare/scripts/benchmark_sentences.py:218
↓ 3 callers
Function
_write_report_txt
( path: Path, *, generated_utc: str, rime_dll: str, corpus_files: Optional[Dict[str, str]]
rime-schema-compare/scripts/benchmark_sentences.py:496
↓ 3 callers
Function
ask_yes_no
询问是否继续操作 question - 具体请求描述 timeout - 默认超过 5s 自动取消
scripts/fetch_any_dict.py:47
↓ 3 callers
Method
bar2callback
(bar, pop=None, delta=(lambda logs: 1))
tqdm/keras.py:20
↓ 3 callers
Method
close
(self)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:454
↓ 3 callers
Method
convert_style
按 ``style`` 的值对 ``orig_pinyin`` 进行处理,返回处理后的拼音 转换风格前会调用 ``pre_convert_style`` 方法, 转换后会调用 ``post_convert_style`` 方法。 :param ha
pypinyin/converter.py:88
↓ 3 callers
Method
create_session
创建会话 Returns: 会话 ID
rime-schema-compare/src/rime_schema_compare/call_librime.py:664
↓ 3 callers
Method
cut
分词 :param text: 待分词的文本 :yield: 单个词语
pypinyin/seg/mmseg.py:18
↓ 3 callers
Method
decode_input
One-shot: new session per call (e.g. smoke tests).
rime-schema-compare/src/rime_schema_compare/rime_runner.py:130
next →
1–100 of 889, ranked by callers