MCPcopy Create free account

hub / github.com/amzxyz/RIME-LMDG / functions

Functions889 in github.com/amzxyz/RIME-LMDG

↓ 1 callersFunctioncopySaf
wanxiang-updater/app/src/main/java/com/wanxiangupdater/MainActivity.kt:1193
↓ 1 callersMethodcreate_mp_lock
(cls)
tqdm/std.py:117
↓ 1 callersFunctiondefault_corpus_files
All ``*.txt`` under ``data/corpus/``, sorted by path.
rime-schema-compare/src/rime_schema_compare/benchmark_common.py:18
↓ 1 callersFunctiondefault_corpus_files
All ``*.txt`` under ``data/corpus/``, sorted by path.
rime-schema-compare/scripts/benchmark_sentences.py:140
↓ 1 callersFunctiondefault_rime_dll_candidates
Prefer repo-local shared libraries, then common Weasel install locations.
rime-schema-compare/src/rime_schema_compare/config.py:61
↓ 1 callersFunctiondefault_target_dirs
(root: Path)
rime-schema-compare/scripts/scale_rime_dict_weights.py:31
↓ 1 callersMethoddelete
Deletes internal `message_id`.
tqdm/contrib/telegram.py:77
↓ 1 callersFunctiondeploy_rime
()
scripts/deploy_rime.py:9
↓ 1 callersMethoddisplay
(self, *_, **__)
tqdm/rich.py:126
↓ 1 callersMethoddisplay
(self, *_, **__)
tqdm/gui.py:110
↓ 1 callersMethoddisplay
(self, msg=None, pos=None, # additional signals close=False, bar_style=None, c
tqdm/notebook.py:139
↓ 1 callersMethoddo_action
(self, scope_id, is_update)
wanxiang-tools.py:3322
↓ 1 callersMethoddo_import_switches
一键从 wanxiang.schema.yaml 提取有用开关
wanxiang-tools.py:4402
↓ 1 callersFunctionensure_lock
get (create if necessary) and then restore `tqdm_class`'s lock
tqdm/contrib/concurrent.py:16
↓ 1 callersFunctionexec
(proj_dir, work_dir, repository_url)
scripts/fetch_any_dict.py:544
↓ 1 callersFunctionexec
(code_type = '')
scripts/sync_user_dict.py:194
↓ 1 callersFunctionextract_error_pairs_with_rmm
(gold: str, pred: str, vocab: set, target_min: int = 4)
rime-schema-compare/scripts/词条获取.py:126
↓ 1 callersFunctionextract_missed_segments
全量结巴词界吸附提取算法(解决生硬截断与错误集中问题)
rime-schema-compare/src/rime_schema_compare/text_pipeline_evo.py:22
↓ 1 callersFunctionextract_ngram_counts
从 ARPA 文件中提取 n-gram 计数。
语法模型构建.py:160
↓ 1 callersFunctionextract_ngrams
从 ARPA 文件中提取 n-grams。
语法模型构建.py:181
↓ 1 callersFunctionfilter_8105
过滤并合并五笔码表,保持按词长排序
scripts/fetch_any_dict.py:315
↓ 1 callersMethodformat_num
Intelligent scientific notation (.3g). Parameters ---------- n : int or float or Numeric A Number.
tqdm/std.py:420
↓ 1 callersFunctionformat_progress_bar
(downloaded, total_size, bar_length=50)
scripts/progress.py:9
↓ 1 callersFunctiongenerate_arpa
调用 KenLM 生成 ARPA 文件,并使用指定的用户临时缓存目录。
语法模型构建.py:117
↓ 1 callersFunctiongenerate_gram_file
(merged_file, language)
语法模型构建.py:294
↓ 1 callersMethodget_active_profile_payload
(self)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:256
↓ 1 callersFunctionget_alignment
递归匹配:将汉字和非汉字块对齐到拼音分段。 返回每个拼音分段对应的辅助码(无辅码则为空字符串),若无法对齐返回 None。
rime固定或用户词典刷新为带辅助码编码.py:75
↓ 1 callersMethodget_default_input_tip
(self)
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:239
↓ 1 callersFunctionget_en_aliases_header
(file_name)
scripts/header.py:95
↓ 1 callersFunctionget_finals
获取单个拼音中的韵母. :param pinyin: 单个拼音,无声调拼音 :type pinyin: unicode :param strict: 是否严格遵照《汉语拼音方案》来处理声母和韵母 :return: 韵母 :rtype: unicode
pypinyin/style/_utils.py:33
↓ 1 callersFunctionget_header_common
(file_name)
scripts/header.py:5
↓ 1 callersFunctionget_header_ext
(file_name)
scripts/header.py:66
↓ 1 callersFunctionget_header_sync
(file_name)
scripts/header.py:26
↓ 1 callersFunctionget_parser
()
pypinyin/runner.py:51
↓ 1 callersFunctionget_parser
()
pypinyin/tools/toneconvert.py:67
↓ 1 callersFunctionget_pinyin_code
将汉字转换为拼音 + 辅助码编码(可选)
scripts/fetch_any_dict.py:200
↓ 1 callersFunctionget_remote_mtime
获取远程资源更新日期
scripts/fetch_any_dict.py:450
↓ 1 callersMethodget_seg
获取分词函数。 :return: 分词函数
pypinyin/core.py:170
↓ 1 callersFunctionget_tiger_code
将汉字转换为虎码编码
scripts/fetch_any_dict.py:177
↓ 1 callersFunctionget_toneless_pinyin
获取词组的无声调拼音,作为唯一性判断标准。
未重复声调分类.py:13
↓ 1 callersFunctionget_wubi_code
将汉字转换为五笔编码
scripts/sort_dict.py:42
↓ 1 callersFunctionget_wubi_code
将汉字转换为五笔编码
scripts/fetch_any_dict.py:154
↓ 1 callersFunctioninit_eval_synonyms
(root: Path, explicit: Optional[Path])
rime-schema-compare/src/rime_schema_compare/benchmark_common.py:168
↓ 1 callersFunctioninteractive_mode
交互式模式:直接调用 rime_api_console.exe
rime-schema-compare/src/rime_schema_compare/call_librime.py:1314
↓ 1 callersFunctionis_dir_like
(p: str)
rime固定或用户词典刷新为带辅助码编码.py:29
↓ 1 callersFunctionis_dir_like
(path: str)
wanxiang-tools.py:1967
↓ 1 callersFunctionis_userdb_head
(line: str)
rime固定或用户词典刷新为带声调编码.py:108
↓ 1 callersFunctionis_userdb_head
(line: str)
rime固定或用户词典刷新为带辅助码编码.py:170
↓ 1 callersMethodlazy_pinyin
将汉字转换为拼音,返回不包含多音字结果的拼音列表. 与 :py:func:`~pypinyin.pinyin` 的区别是每个汉字的拼音是个字符串, 并且每个字只包含一个读音. :param hans: 汉字字符串( ``'你好吗'`` )或列表(
pypinyin/core.py:109
↓ 1 callersMethodlist_installed_profiles
(self, language_tag: str = "zh-Hans-CN")
rime-schema-compare/src/rime_schema_compare/ms_pinyin_harness.py:227
↓ 1 callersFunctionloadCustomTasks
wanxiang-updater/app/src/main/java/com/wanxiangupdater/MainActivity.kt:87
↓ 1 callersFunctionload_aux_metadata
(path: str)
rime固定或用户词典刷新为带辅助码编码.py:35
↓ 1 callersFunctionload_aux_metadata
(path: str, log)
wanxiang-tools.py:2138
↓ 1 callersFunctionload_base_dict
加载基础词库,构建双引擎: 1. base_set: 极速存取集合 2. word_rank_map: 词条身份牌(记录该词在它的同音家族里,最高混到了老几)
滑动窗口验证给短语打分并清洗无用词条.py:45
↓ 1 callersFunctionload_custom_dict
()
多线程分词.py:20
↓ 1 callersFunctionload_custom_pinyin
(custom_dir: Optional[str], log)
wanxiang-tools.py:2020
↓ 1 callersFunctionload_custom_pinyin_from_directory
(directory: str)
rime固定或用户词典刷新为带声调编码.py:77
↓ 1 callersFunctionload_dictionary
(dict_path: Path)
rime-schema-compare/scripts/词条获取.py:96
↓ 1 callersFunctionload_single_char_shape_code_prefixes
(dict_path_str: str, prefix_len: int = 2)
rime-schema-compare/src/rime_schema_compare/text_pipeline.py:193
↓ 1 callersFunctionload_state
()
rime-schema-compare/scripts/第一列验证.py:81
↓ 1 callersFunctionload_stopwords_from_directory
加载停用词文件夹中的所有停用词。
语法模型构建.py:31
↓ 1 callersFunctionlogging_redirect_tqdm
Context manager redirecting console logging to `tqdm.write()`, leaving other logging handlers (e.g. log files) unaffected. Parameters
tqdm/contrib/logging.py:47
↓ 1 callersFunctionmain
主程序:处理语料和 n-gram 数据。
语法模型构建.py:308
↓ 1 callersFunctionmain
()
滑动窗口验证给短语打分并清洗无用词条.py:167
↓ 1 callersFunctionmain
()
wanxiang-tools.py:7812
↓ 1 callersFunctionmain
()
rime-schema-compare/scripts/词条获取.py:179
↓ 1 callersFunctionmain
()
rime-schema-compare/scripts/benchmark_sentences.py:1108
↓ 1 callersFunctionmain
(argv: Optional[Sequence[str]] = None)
rime-schema-compare/scripts/benchmark_windows_pinyin.py:826
↓ 1 callersFunctionmain
()
rime-schema-compare/scripts/learning_mode.py:83
↓ 1 callersFunctionmain
()
rime-schema-compare/scripts/第一列验证.py:105
↓ 1 callersFunctionmain
()
rime-schema-compare/scripts/smoke_rime.py:25
↓ 1 callersFunctionmain
()
rime-schema-compare/scripts/scale_rime_dict_weights.py:78
↓ 1 callersFunctionmain
()
rime-schema-compare/scripts/benchmark_one_sentence.py:39
↓ 1 callersFunctionmain
Parameters (internal use only) --------- fp : file-like object for tqdm argv : list (default: sys.argv[1:])
tqdm/cli.py:156
↓ 1 callersFunctionmain
(argv)
pypinyin/tools/toneconvert.py:87
↓ 1 callersFunctionmerge_disable_user_dict_patch
Create or update {schema_id}.custom.yaml so translator user dict is off.
rime-schema-compare/src/rime_schema_compare/benchmark_env.py:45
↓ 1 callersFunctionmerge_ngram_files
合并多个 n-gram 文件,并将结果写入一个输出文件,支持流式处理降低内存占用。
语法模型构建.py:227
↓ 1 callersFunctionnormal_line
普通词表行拼音修正;保留后缀 (;xx / [xx])
rime固定或用户词典刷新为带声调编码.py:122
↓ 1 callersMethodon_tab_change
(self, idx)
wanxiang-tools.py:4252
↓ 1 callersMethodpick_file
(self, target: QLineEdit)
wanxiang-tools.py:7546
↓ 1 callersFunctionpick_vendor
(key: str)
rime-schema-compare/scripts/benchmark_one_sentence.py:31
↓ 1 callersFunctionpinyin_normal_line
(cols: List[str], ignore_non_chinese: bool, py_sep: str)
wanxiang-tools.py:2053
↓ 1 callersFunctionpinyin_process_single_file
( src: str, dst: str, skip_set: Set[str], ignore_non_chinese: bool, py_sep: str, should_stop: Optiona
wanxiang-tools.py:2098
↓ 1 callersFunctionpinyin_userdb_line
(cols: List[str], ignore_non_chinese: bool, py_sep: str)
wanxiang-tools.py:2079
↓ 1 callersMethodpost_handle_nopinyin
处理完没有拼音的字符串后会调用 ``post_handle_nopinyin`` 方法。 如果返回值不为 ``None`` 会使用返回的结果作为处理没有拼音的字符串的结果。 :param chars: 待处理的没有拼音的字符串 :param err
pypinyin/converter.py:207
↓ 1 callersMethodpost_seg
对字符串进行分词后将调用 ``post_seg`` 方法对分词后的结果做处理。 默认原样返回传入的 ``seg_data``。 如果这个方法的返回值类型是 ``list``,表示对分词结果做了二次处理,此时, ``seg`` 方法将以这个返回的数据
pypinyin/core.py:177
↓ 1 callersMethodpre_convert_style
在把原始带声调的拼音按拼音风格转换前会调用 ``pre_convert_style`` 方法。 如果返回值不为 ``None`` 会使用返回的结果代替 ``orig_pinyin`` 来进行后面的风格转换。 :param han: 要处理的汉字
pypinyin/converter.py:70
↓ 1 callersMethodpre_handle_nopinyin
处理没有拼音的字符串前会调用 ``pre_handle_nopinyin`` 方法。 如果返回值不为 ``None`` 会使用返回的结果作为处理没有拼音字符串的结果, 不再使用内置方法进行处理。 :param chars: 待处理的没有拼音的字符串
pypinyin/converter.py:141
↓ 1 callersMethodpre_seg
对字符串进行分词前将调用 ``pre_seg`` 方法对未分词的字符串做预处理。 默认原样返回传入的 ``hans``。 如果这个方法的返回值类型是 ``list``,表示返回的是一个分词后的结果,此时, ``seg`` 方法中将不再调用 ``se
pypinyin/core.py:137
↓ 1 callersFunctionprepare
(input)
pypinyin/tools/toneconvert.py:52
↓ 1 callersFunctionpreprocess_corpus
处理多个输入目录中的文件,并按块写入磁盘,优化内存使用。
语法模型构建.py:64
↓ 1 callersFunctionprocess_alignment
()
模型排序.py:43
↓ 1 callersFunctionprocess_corpus_to_lines
清洗语料,切割成纯汉字短句
rime-schema-compare/src/rime_schema_compare/text_pipeline_evo.py:8
↓ 1 callersFunctionprocess_file
Returns (lines_changed, bytes_written_or_would_write).
rime-schema-compare/scripts/scale_rime_dict_weights.py:58
↓ 1 callersFunctionprocess_files
(path_in: str, path_out: str)
rime固定或用户词典刷新为带声调编码.py:254
↓ 1 callersFunctionprocess_files
(path_in: str, path_out: str, aux_map: Dict[str, str])
rime固定或用户词典刷新为带辅助码编码.py:199
↓ 1 callersFunctionprocess_folder_parallel
(input_folder, output_folder)
多线程分词.py:52
↓ 1 callersFunctionprocess_txt_files
边读边写:单文件处理后立刻覆盖原文件,并直接追加输出未重复项
未重复声调分类.py:26
↓ 1 callersFunctionre_sub
(action, match_obj)
pypinyin/tools/toneconvert.py:46
↓ 1 callersFunctionrefresh_aux
(cols: List[str], word: str, aux_map: Dict[str, str], userdb: bool)
rime固定或用户词典刷新为带辅助码编码.py:144
← previousnext →401–500 of 889, ranked by callers