关于librime的样例输出 #1260
Unanswered
liu17310753613
asked this question in
Q&A
关于librime的样例输出
#1260
Replies: 1 comment
-
我想我知道为什么了。yaml文件很重要。。很抱歉问这样愚蠢的问题。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
initializing...
I20230410 15:55:51.557157 8244 module.cc:31] loading module: 0x7f8d0075bfc0
I20230410 15:55:51.557382 8244 module.cc:31] loading module: 0x7f8d0075bf00
I20230410 15:55:51.557399 8244 core_module.cc:20] registering core components.
I20230410 15:55:51.557495 8244 registry.cc:14] registering component: config_builder
I20230410 15:55:51.557552 8244 registry.cc:14] registering component: config
I20230410 15:55:51.557570 8244 registry.cc:14] registering component: schema
I20230410 15:55:51.557587 8244 registry.cc:14] registering component: user_config
I20230410 15:55:51.557596 8244 module.cc:31] loading module: 0x7f8d0075c860
I20230410 15:55:51.557608 8244 dict_module.cc:25] registering components from module 'dict'.
I20230410 15:55:51.557621 8244 registry.cc:14] registering component: tabledb
I20230410 15:55:51.557631 8244 registry.cc:14] registering component: stabledb
I20230410 15:55:51.557643 8244 registry.cc:14] registering component: plain_userdb
I20230410 15:55:51.557651 8244 registry.cc:14] registering component: userdb
I20230410 15:55:51.557660 8244 registry.cc:14] registering component: corrector
I20230410 15:55:51.557679 8244 registry.cc:14] registering component: dictionary
I20230410 15:55:51.557701 8244 registry.cc:14] registering component: reverse_lookup_dictionary
I20230410 15:55:51.557716 8244 registry.cc:14] registering component: user_dictionary
I20230410 15:55:51.557735 8244 registry.cc:14] registering component: userdb_recovery_task
I20230410 15:55:51.557746 8244 module.cc:31] loading module: 0x7f8d0075cd00
I20230410 15:55:51.557752 8244 gears_module.cc:42] registering components from module 'gears'.
I20230410 15:55:51.557760 8244 registry.cc:14] registering component: ascii_composer
I20230410 15:55:51.557768 8244 registry.cc:14] registering component: chord_composer
I20230410 15:55:51.557778 8244 registry.cc:14] registering component: express_editor
I20230410 15:55:51.557787 8244 registry.cc:14] registering component: fluid_editor
I20230410 15:55:51.557796 8244 registry.cc:14] registering component: fluency_editor
I20230410 15:55:51.557806 8244 registry.cc:14] registering component: key_binder
I20230410 15:55:51.557816 8244 registry.cc:14] registering component: navigator
I20230410 15:55:51.557824 8244 registry.cc:14] registering component: punctuator
I20230410 15:55:51.557834 8244 registry.cc:14] registering component: recognizer
I20230410 15:55:51.557843 8244 registry.cc:14] registering component: selector
I20230410 15:55:51.557852 8244 registry.cc:14] registering component: speller
I20230410 15:55:51.557861 8244 registry.cc:14] registering component: shape_processor
I20230410 15:55:51.557871 8244 registry.cc:14] registering component: abc_segmentor
I20230410 15:55:51.557880 8244 registry.cc:14] registering component: affix_segmentor
I20230410 15:55:51.557890 8244 registry.cc:14] registering component: ascii_segmentor
I20230410 15:55:51.557899 8244 registry.cc:14] registering component: matcher
I20230410 15:55:51.557909 8244 registry.cc:14] registering component: punct_segmentor
I20230410 15:55:51.557919 8244 registry.cc:14] registering component: fallback_segmentor
I20230410 15:55:51.557929 8244 registry.cc:14] registering component: echo_translator
I20230410 15:55:51.557937 8244 registry.cc:14] registering component: punct_translator
I20230410 15:55:51.557947 8244 registry.cc:14] registering component: table_translator
I20230410 15:55:51.557956 8244 registry.cc:14] registering component: script_translator
I20230410 15:55:51.557965 8244 registry.cc:14] registering component: r10n_translator
I20230410 15:55:51.557976 8244 registry.cc:14] registering component: reverse_lookup_translator
I20230410 15:55:51.557984 8244 registry.cc:14] registering component: schema_list_translator
I20230410 15:55:51.557993 8244 registry.cc:14] registering component: switch_translator
I20230410 15:55:51.558003 8244 registry.cc:14] registering component: history_translator
I20230410 15:55:51.558017 8244 registry.cc:14] registering component: simplifier
I20230410 15:55:51.558041 8244 registry.cc:14] registering component: uniquifier
I20230410 15:55:51.558066 8244 registry.cc:14] registering component: charset_filter
I20230410 15:55:51.558090 8244 registry.cc:14] registering component: cjk_minifier
I20230410 15:55:51.558104 8244 registry.cc:14] registering component: reverse_lookup_filter
I20230410 15:55:51.558121 8244 registry.cc:14] registering component: single_char_filter
I20230410 15:55:51.558131 8244 registry.cc:14] registering component: shape_formatter
I20230410 15:55:51.558149 8244 module.cc:31] loading module: 0x7f8d0075c000
I20230410 15:55:51.558161 8244 module.cc:31] loading module: 0x7f8d0075cf20
I20230410 15:55:51.558167 8244 levers_module.cc:23] registering components from module 'levers'.
I20230410 15:55:51.558174 8244 registry.cc:14] registering component: detect_modifications
I20230410 15:55:51.558182 8244 registry.cc:14] registering component: installation_update
I20230410 15:55:51.558193 8244 registry.cc:14] registering component: workspace_update
I20230410 15:55:51.558202 8244 registry.cc:14] registering component: schema_update
I20230410 15:55:51.558212 8244 registry.cc:14] registering component: config_file_update
I20230410 15:55:51.558223 8244 registry.cc:14] registering component: prebuild_all_schemas
I20230410 15:55:51.558233 8244 registry.cc:14] registering component: user_dict_upgrade
I20230410 15:55:51.558243 8244 registry.cc:14] registering component: cleanup_trash
I20230410 15:55:51.558251 8244 registry.cc:14] registering component: user_dict_sync
I20230410 15:55:51.558261 8244 registry.cc:14] registering component: backup_config_files
I20230410 15:55:51.558272 8244 registry.cc:14] registering component: clean_old_log_files
I20230410 15:55:51.558306 8244 deployment_tasks.cc:640] today: .20230410
I20230410 15:55:51.558326 8244 deployment_tasks.cc:653] scanning 1 temp directory for log files.
I20230410 15:55:51.558336 8244 deployment_tasks.cc:658] temp directory: /tmp/
I20230410 15:55:51.558576 8244 deployment_tasks.cc:83] updating rime installation info.
I20230410 15:55:51.558637 8244 config_data.cc:71] loading config file './installation.yaml'.
I20230410 15:55:51.558869 8244 config_component.cc:81] read: installation_id
I20230410 15:55:51.558887 8244 config_data.cc:229] traverse: installation_id
I20230410 15:55:51.559021 8244 deployment_tasks.cc:101] installation info exists. installation id: 4bed98f8-4368-4bad-8ed0-3f10c255d47b
I20230410 15:55:51.559037 8244 config_component.cc:81] read: sync_dir
I20230410 15:55:51.559046 8244 config_data.cc:229] traverse: sync_dir
I20230410 15:55:51.559073 8244 deployment_tasks.cc:112] sync dir: ./sync
I20230410 15:55:51.559095 8244 config_component.cc:81] read: distribution_code_name
I20230410 15:55:51.559108 8244 config_data.cc:229] traverse: distribution_code_name
I20230410 15:55:51.559131 8244 config_component.cc:81] read: distribution_version
I20230410 15:55:51.559140 8244 config_data.cc:229] traverse: distribution_version
I20230410 15:55:51.559157 8244 config_component.cc:81] read: rime_version
I20230410 15:55:51.559166 8244 config_data.cc:229] traverse: rime_version
I20230410 15:55:51.559182 8244 deployment_tasks.cc:120] previous Rime version: 1.8.5
I20230410 15:55:51.559288 8244 deployer.cc:110] starting work thread for 3 tasks.
I20230410 15:55:51.559391 8245 deployer.cc:79] running deployment tasks:
message: [0] [deploy] start
I20230410 15:55:51.559546 8245 deployment_tasks.cc:166] updating workspace.
I20230410 15:55:51.559639 8245 config_data.cc:71] loading config file '/home/john/librime/build/sample/bin/./build/default.yaml'.
I20230410 15:55:51.561497 8245 config_data.cc:71] loading config file '/home/john/librime/build/sample/bin/./build/default.yaml'.
I20230410 15:55:51.563067 8245 config_component.cc:103] read: schema_list
I20230410 15:55:51.563097 8245 config_data.cc:229] traverse: schema_list
I20230410 15:55:51.563145 8245 deployment_tasks.cc:189] updating schemas.
I20230410 15:55:51.563220 8245 deployment_tasks.cc:199] schema: sample
I20230410 15:55:51.563305 8245 config_data.cc:71] loading config file '/home/john/librime/build/sample/bin/./sample.schema.yaml'.
I20230410 15:55:51.563612 8245 config_component.cc:81] read: schema/schema_id
I20230410 15:55:51.563665 8245 config_data.cc:229] traverse: schema/schema_id
I20230410 15:55:51.563730 8245 config_data.cc:71] loading config file '/home/john/librime/build/sample/bin/./build/sample.schema.yaml'.
I20230410 15:55:51.565203 8245 config_data.cc:71] loading config file '/home/john/librime/build/sample/bin/./build/sample.schema.yaml'.
I20230410 15:55:51.566565 8245 config_component.cc:81] read: translator/dictionary
I20230410 15:55:51.566592 8245 config_data.cc:229] traverse: translator/dictionary
I20230410 15:55:51.566736 8245 config_data.cc:71] loading config file '/home/john/librime/build/sample/bin/./build/sample.schema.yaml'.
I20230410 15:55:51.568096 8245 config_component.cc:103] read: schema/dependencies
I20230410 15:55:51.568123 8245 config_data.cc:229] traverse: schema/dependencies
I20230410 15:55:51.568274 8245 deployment_tasks.cc:247] finished updating schemas: 1 success, 0 failure.
I20230410 15:55:51.568307 8245 config_data.cc:71] loading config file '/home/john/librime/build/sample/bin/./user.yaml'.
I20230410 15:55:51.568413 8245 config_data.cc:205] write: var/last_build_time
I20230410 15:55:51.568454 8245 config_data.cc:186] TraverseCopyOnWrite(var/last_build_time)
I20230410 15:55:51.568527 8245 config_cow_ref.h:52] copy on write: last_build_time
I20230410 15:55:51.568574 8245 config_cow_ref.h:52] copy on write: var
I20230410 15:55:51.568609 8245 config_data.cc:91] saving config file '/home/john/librime/build/sample/bin/./user.yaml'.
I20230410 15:55:51.568962 8245 deployment_tasks.cc:597] clean up trash.
I20230410 15:55:51.569037 8245 deployer.cc:91] 3 tasks ran: 3 success, 0 failure.
message: [0] [deploy] success
ready.
I20230410 15:55:51.569265 8244 config_data.cc:71] loading config file '/home/john/librime/build/sample/bin/./build/default.yaml'.
I20230410 15:55:51.570936 8244 config_component.cc:81] read: schema/name
I20230410 15:55:51.570973 8244 config_data.cc:229] traverse: schema/name
I20230410 15:55:51.571020 8244 config_component.cc:69] read: menu/page_size
I20230410 15:55:51.571033 8244 config_data.cc:229] traverse: menu/page_size
I20230410 15:55:51.571058 8244 config_component.cc:81] read: menu/alternative_select_keys
I20230410 15:55:51.571067 8244 config_data.cc:229] traverse: menu/alternative_select_keys
I20230410 15:55:51.571091 8244 config_component.cc:63] read: menu/page_down_cycle
I20230410 15:55:51.571101 8244 config_data.cc:229] traverse: menu/page_down_cycle
I20230410 15:55:51.571522 8244 engine.cc:72] starting engine.
I20230410 15:55:51.571800 8244 config_component.cc:81] read: schema/name
I20230410 15:55:51.571830 8244 config_data.cc:229] traverse: schema/name
I20230410 15:55:51.571863 8244 config_component.cc:69] read: menu/page_size
I20230410 15:55:51.571875 8244 config_data.cc:229] traverse: menu/page_size
I20230410 15:55:51.571898 8244 config_component.cc:81] read: menu/alternative_select_keys
I20230410 15:55:51.571908 8244 config_data.cc:229] traverse: menu/alternative_select_keys
I20230410 15:55:51.571929 8244 config_component.cc:63] read: menu/page_down_cycle
I20230410 15:55:51.571939 8244 config_data.cc:229] traverse: menu/page_down_cycle
I20230410 15:55:51.572073 8244 config_data.cc:71] loading config file '/home/john/librime/build/sample/bin/./user.yaml'.
I20230410 15:55:51.572202 8244 config_component.cc:103] read: key_binder/bindings
I20230410 15:55:51.572217 8244 config_data.cc:229] traverse: key_binder/bindings
I20230410 15:55:51.572636 8244 config_component.cc:108] read: selector/bindings
I20230410 15:55:51.572662 8244 config_data.cc:229] traverse: selector/bindings
I20230410 15:55:51.572698 8244 config_component.cc:108] read: selector/linear/bindings
I20230410 15:55:51.572710 8244 config_data.cc:229] traverse: selector/linear/bindings
I20230410 15:55:51.572733 8244 config_component.cc:108] read: selector/vertical/bindings
I20230410 15:55:51.572742 8244 config_data.cc:229] traverse: selector/vertical/bindings
I20230410 15:55:51.572764 8244 config_component.cc:108] read: selector/vertical/linear/bindings
I20230410 15:55:51.572793 8244 config_data.cc:229] traverse: selector/vertical/linear/bindings
I20230410 15:55:51.572830 8244 switcher.cc:302] num processors: 2
I20230410 15:55:51.572887 8244 switcher.cc:317] num translators: 2
I20230410 15:55:51.572899 8244 config_component.cc:81] read: switcher/caption
I20230410 15:55:51.572906 8244 config_data.cc:229] traverse: switcher/caption
I20230410 15:55:51.572932 8244 config_component.cc:103] read: switcher/hotkeys
I20230410 15:55:51.572938 8244 config_data.cc:229] traverse: switcher/hotkeys
I20230410 15:55:51.572983 8244 config_component.cc:103] read: switcher/save_options
I20230410 15:55:51.572993 8244 config_data.cc:229] traverse: switcher/save_options
I20230410 15:55:51.573014 8244 config_component.cc:63] read: switcher/fold_options
I20230410 15:55:51.573024 8244 config_data.cc:229] traverse: switcher/fold_options
I20230410 15:55:51.573043 8244 config_component.cc:63] read: switcher/fix_schema_list_order
I20230410 15:55:51.573051 8244 config_data.cc:229] traverse: switcher/fix_schema_list_order
I20230410 15:55:51.573089 8244 config_component.cc:81] read: var/previously_selected_schema
I20230410 15:55:51.573096 8244 config_data.cc:229] traverse: var/previously_selected_schema
I20230410 15:55:51.573122 8244 config_component.cc:103] read: schema_list
I20230410 15:55:51.573129 8244 config_data.cc:229] traverse: schema_list
I20230410 15:55:51.573182 8244 config_data.cc:71] loading config file '/home/john/librime/build/sample/bin/./build/sample.schema.yaml'.
I20230410 15:55:51.574538 8244 config_component.cc:81] read: schema/name
I20230410 15:55:51.574568 8244 config_data.cc:229] traverse: schema/name
I20230410 15:55:51.574604 8244 config_component.cc:69] read: menu/page_size
I20230410 15:55:51.574615 8244 config_data.cc:229] traverse: menu/page_size
I20230410 15:55:51.574638 8244 config_component.cc:81] read: menu/alternative_select_keys
I20230410 15:55:51.574645 8244 config_data.cc:229] traverse: menu/alternative_select_keys
I20230410 15:55:51.574663 8244 config_component.cc:63] read: menu/page_down_cycle
I20230410 15:55:51.574673 8244 config_data.cc:229] traverse: menu/page_down_cycle
I20230410 15:55:51.574707 8244 config_component.cc:103] read: engine/processors
I20230410 15:55:51.574717 8244 config_data.cc:229] traverse: engine/processors
I20230410 15:55:51.574753 8244 config_component.cc:81] read: speller/alphabet
I20230410 15:55:51.574764 8244 config_data.cc:229] traverse: speller/alphabet
I20230410 15:55:51.574785 8244 config_component.cc:81] read: speller/delimiter
I20230410 15:55:51.574790 8244 config_data.cc:229] traverse: speller/delimiter
I20230410 15:55:51.574813 8244 config_component.cc:81] read: speller/initials
I20230410 15:55:51.574822 8244 config_data.cc:229] traverse: speller/initials
I20230410 15:55:51.574841 8244 config_component.cc:81] read: speller/finals
I20230410 15:55:51.574851 8244 config_data.cc:229] traverse: speller/finals
I20230410 15:55:51.574870 8244 config_component.cc:69] read: speller/max_code_length
I20230410 15:55:51.574891 8244 config_data.cc:229] traverse: speller/max_code_length
I20230410 15:55:51.574923 8244 config_component.cc:63] read: speller/auto_select
I20230410 15:55:51.574932 8244 config_data.cc:229] traverse: speller/auto_select
I20230410 15:55:51.574951 8244 config_component.cc:63] read: speller/use_space
I20230410 15:55:51.574960 8244 config_data.cc:229] traverse: speller/use_space
I20230410 15:55:51.574980 8244 config_component.cc:81] read: speller/auto_select_pattern
I20230410 15:55:51.574987 8244 config_data.cc:229] traverse: speller/auto_select_pattern
I20230410 15:55:51.575007 8244 config_component.cc:81] read: speller/auto_clear
I20230410 15:55:51.575016 8244 config_data.cc:229] traverse: speller/auto_clear
I20230410 15:55:51.575054 8244 config_component.cc:63] read: punctuator/use_space
I20230410 15:55:51.575065 8244 config_data.cc:229] traverse: punctuator/use_space
I20230410 15:55:51.575105 8244 config_component.cc:108] read: punctuator/half_shape
I20230410 15:55:51.575134 8244 config_data.cc:229] traverse: punctuator/half_shape
I20230410 15:55:51.575225 8244 config_component.cc:108] read: selector/bindings
I20230410 15:55:51.575273 8244 config_data.cc:229] traverse: selector/bindings
I20230410 15:55:51.575299 8244 config_component.cc:108] read: selector/linear/bindings
I20230410 15:55:51.575309 8244 config_data.cc:229] traverse: selector/linear/bindings
I20230410 15:55:51.575331 8244 config_component.cc:108] read: selector/vertical/bindings
I20230410 15:55:51.575340 8244 config_data.cc:229] traverse: selector/vertical/bindings
I20230410 15:55:51.575361 8244 config_component.cc:108] read: selector/vertical/linear/bindings
I20230410 15:55:51.575369 8244 config_data.cc:229] traverse: selector/vertical/linear/bindings
I20230410 15:55:51.575470 8244 config_component.cc:108] read: navigator/bindings
I20230410 15:55:51.575495 8244 config_data.cc:229] traverse: navigator/bindings
I20230410 15:55:51.575521 8244 config_component.cc:108] read: navigator/vertical/bindings
I20230410 15:55:51.575531 8244 config_data.cc:229] traverse: navigator/vertical/bindings
I20230410 15:55:51.575608 8244 engine.cc:124] updated option: _auto_commit
I20230410 15:55:51.575687 8244 config_component.cc:108] read: editor/bindings
I20230410 15:55:51.575698 8244 config_data.cc:229] traverse: editor/bindings
I20230410 15:55:51.575722 8244 config_component.cc:98] read: editor/char_handler
I20230410 15:55:51.575731 8244 config_data.cc:229] traverse: editor/char_handler
I20230410 15:55:51.575752 8244 config_component.cc:103] read: engine/segmentors
I20230410 15:55:51.575757 8244 config_data.cc:229] traverse: engine/segmentors
I20230410 15:55:51.575781 8244 config_component.cc:81] read: speller/alphabet
I20230410 15:55:51.575788 8244 config_data.cc:229] traverse: speller/alphabet
I20230410 15:55:51.575806 8244 config_component.cc:81] read: speller/delimiter
I20230410 15:55:51.575816 8244 config_data.cc:229] traverse: speller/delimiter
I20230410 15:55:51.575835 8244 config_component.cc:81] read: speller/initials
I20230410 15:55:51.575841 8244 config_data.cc:229] traverse: speller/initials
I20230410 15:55:51.575857 8244 config_component.cc:81] read: speller/finals
I20230410 15:55:51.575867 8244 config_data.cc:229] traverse: speller/finals
I20230410 15:55:51.575886 8244 config_component.cc:103] read: abc_segmentor/extra_tags
I20230410 15:55:51.575907 8244 config_data.cc:229] traverse: abc_segmentor/extra_tags
I20230410 15:55:51.575973 8244 config_component.cc:108] read: punctuator/half_shape
I20230410 15:55:51.575985 8244 config_data.cc:229] traverse: punctuator/half_shape
I20230410 15:55:51.576023 8244 config_component.cc:103] read: engine/translators
I20230410 15:55:51.576033 8244 config_data.cc:229] traverse: engine/translators
I20230410 15:55:51.576059 8244 config_component.cc:108] read: punctuator/half_shape
I20230410 15:55:51.576069 8244 config_data.cc:229] traverse: punctuator/half_shape
I20230410 15:55:51.576092 8244 config_component.cc:108] read: punctuator/symbols
I20230410 15:55:51.576097 8244 config_data.cc:229] traverse: punctuator/symbols
E20230410 15:55:51.576126 8244 engine.cc:347] error creating translator: 'trivial_translator'
I20230410 15:55:51.576315 8244 config_component.cc:103] read: engine/filters
I20230410 15:55:51.576324 8244 config_data.cc:229] traverse: engine/filters
I20230410 15:55:51.576632 8244 rime_api.cc:731] simulate key sequence: yiersan
I20230410 15:55:51.576692 8244 engine.cc:97] process key: y
I20230410 15:55:51.576735 8244 speller.cc:121] add to input: 'y', y
I20230410 15:55:51.576797 8244 engine.cc:148] active input: y
I20230410 15:55:51.576807 8244 segmentation.cc:60] reset to 0 segments.
I20230410 15:55:51.576812 8244 segmentation.cc:67] diff pos: 0
I20230410 15:55:51.576820 8244 engine.cc:164] start pos: 0
I20230410 15:55:51.576825 8244 engine.cc:165] end pos: 0
I20230410 15:55:51.576834 8244 abc_segmentor.cc:41] abc_segmentor: y
I20230410 15:55:51.576840 8244 abc_segmentor.cc:59] [0, 1)
I20230410 15:55:51.576946 8244 fallback_segmentor.cc:19] current segment length: 1
I20230410 15:55:51.576990 8244 engine.cc:171] segmentation: [y|0,1{abc}]
I20230410 15:55:51.577019 8244 engine.cc:197] translating segment: y
I20230410 15:55:51.577090 8244 echo_translator.cc:36] input = 'y', [0, 1)
I20230410 15:55:51.577201 8244 menu.cc:22] 1 translations added.
I20230410 15:55:51.577242 8244 menu.cc:30] preparing 1 candidates.
I20230410 15:55:51.577281 8244 translation.cc:126] translation #0 has been exhausted.
I20230410 15:55:51.577219 8244 engine.cc:157] composition: {abc}y=>y
I20230410 15:55:51.577335 8244 engine.cc:97] process key: i
I20230410 15:55:51.577351 8244 speller.cc:121] add to input: 'i', i
I20230410 15:55:51.577369 8244 engine.cc:148] active input: yi
I20230410 15:55:51.577375 8244 segmentation.cc:60] reset to 1 segments.
I20230410 15:55:51.577385 8244 segmentation.cc:67] diff pos: 1
I20230410 15:55:51.577394 8244 engine.cc:164] start pos: 0
I20230410 15:55:51.577399 8244 engine.cc:165] end pos: 1
I20230410 15:55:51.577404 8244 abc_segmentor.cc:41] abc_segmentor: yi
I20230410 15:55:51.577412 8244 abc_segmentor.cc:59] [0, 2)
I20230410 15:55:51.577474 8244 fallback_segmentor.cc:19] current segment length: 2
I20230410 15:55:51.577497 8244 engine.cc:171] segmentation: [yi|0,2{abc}]
I20230410 15:55:51.577508 8244 engine.cc:197] translating segment: yi
I20230410 15:55:51.577522 8244 echo_translator.cc:36] input = 'yi', [0, 2)
I20230410 15:55:51.577538 8244 menu.cc:22] 1 translations added.
I20230410 15:55:51.577554 8244 menu.cc:30] preparing 1 candidates.
I20230410 15:55:51.577564 8244 translation.cc:126] translation #0 has been exhausted.
I20230410 15:55:51.577548 8244 engine.cc:157] composition: {abc}yi=>yi
I20230410 15:55:51.577584 8244 engine.cc:97] process key: e
I20230410 15:55:51.577598 8244 speller.cc:121] add to input: 'e', e
I20230410 15:55:51.577613 8244 engine.cc:148] active input: yie
I20230410 15:55:51.577622 8244 segmentation.cc:60] reset to 1 segments.
I20230410 15:55:51.577630 8244 segmentation.cc:67] diff pos: 2
I20230410 15:55:51.577637 8244 engine.cc:164] start pos: 0
I20230410 15:55:51.577644 8244 engine.cc:165] end pos: 2
I20230410 15:55:51.577652 8244 abc_segmentor.cc:41] abc_segmentor: yie
I20230410 15:55:51.577659 8244 abc_segmentor.cc:59] [0, 3)
I20230410 15:55:51.577680 8244 fallback_segmentor.cc:19] current segment length: 3
I20230410 15:55:51.577690 8244 engine.cc:171] segmentation: [yie|0,3{abc}]
I20230410 15:55:51.577701 8244 engine.cc:197] translating segment: yie
I20230410 15:55:51.577713 8244 echo_translator.cc:36] input = 'yie', [0, 3)
I20230410 15:55:51.577726 8244 menu.cc:22] 1 translations added.
I20230410 15:55:51.577740 8244 menu.cc:30] preparing 1 candidates.
I20230410 15:55:51.577746 8244 translation.cc:126] translation #0 has been exhausted.
I20230410 15:55:51.577735 8244 engine.cc:157] composition: {abc}yie=>yie
I20230410 15:55:51.577760 8244 engine.cc:97] process key: r
I20230410 15:55:51.577775 8244 speller.cc:121] add to input: 'r', r
I20230410 15:55:51.577790 8244 engine.cc:148] active input: yier
I20230410 15:55:51.577800 8244 segmentation.cc:60] reset to 1 segments.
I20230410 15:55:51.577805 8244 segmentation.cc:67] diff pos: 3
I20230410 15:55:51.577812 8244 engine.cc:164] start pos: 0
I20230410 15:55:51.577821 8244 engine.cc:165] end pos: 3
I20230410 15:55:51.577826 8244 abc_segmentor.cc:41] abc_segmentor: yier
I20230410 15:55:51.577831 8244 abc_segmentor.cc:59] [0, 4)
I20230410 15:55:51.577850 8244 fallback_segmentor.cc:19] current segment length: 4
I20230410 15:55:51.577860 8244 engine.cc:171] segmentation: [yier|0,4{abc}]
I20230410 15:55:51.577868 8244 engine.cc:197] translating segment: yier
I20230410 15:55:51.577878 8244 echo_translator.cc:36] input = 'yier', [0, 4)
I20230410 15:55:51.577891 8244 menu.cc:22] 1 translations added.
I20230410 15:55:51.577901 8244 menu.cc:30] preparing 1 candidates.
I20230410 15:55:51.577909 8244 translation.cc:126] translation #0 has been exhausted.
I20230410 15:55:51.577896 8244 engine.cc:157] composition: {abc}yier=>yier
I20230410 15:55:51.577935 8244 engine.cc:97] process key: s
I20230410 15:55:51.577965 8244 speller.cc:121] add to input: 's', s
I20230410 15:55:51.577987 8244 engine.cc:148] active input: yiers
I20230410 15:55:51.577996 8244 segmentation.cc:60] reset to 1 segments.
I20230410 15:55:51.578004 8244 segmentation.cc:67] diff pos: 4
I20230410 15:55:51.578013 8244 engine.cc:164] start pos: 0
I20230410 15:55:51.578018 8244 engine.cc:165] end pos: 4
I20230410 15:55:51.578024 8244 abc_segmentor.cc:41] abc_segmentor: yiers
I20230410 15:55:51.578032 8244 abc_segmentor.cc:59] [0, 5)
I20230410 15:55:51.578052 8244 fallback_segmentor.cc:19] current segment length: 5
I20230410 15:55:51.578063 8244 engine.cc:171] segmentation: [yiers|0,5{abc}]
I20230410 15:55:51.578069 8244 engine.cc:197] translating segment: yiers
I20230410 15:55:51.578078 8244 echo_translator.cc:36] input = 'yiers', [0, 5)
I20230410 15:55:51.578090 8244 menu.cc:22] 1 translations added.
I20230410 15:55:51.578104 8244 menu.cc:30] preparing 1 candidates.
I20230410 15:55:51.578111 8244 translation.cc:126] translation #0 has been exhausted.
I20230410 15:55:51.578099 8244 engine.cc:157] composition: {abc}yiers=>yiers
I20230410 15:55:51.578128 8244 engine.cc:97] process key: a
I20230410 15:55:51.578140 8244 speller.cc:121] add to input: 'a', a
I20230410 15:55:51.578153 8244 engine.cc:148] active input: yiersa
I20230410 15:55:51.578158 8244 segmentation.cc:60] reset to 1 segments.
I20230410 15:55:51.578167 8244 segmentation.cc:67] diff pos: 5
I20230410 15:55:51.578176 8244 engine.cc:164] start pos: 0
I20230410 15:55:51.578181 8244 engine.cc:165] end pos: 5
I20230410 15:55:51.578186 8244 abc_segmentor.cc:41] abc_segmentor: yiersa
I20230410 15:55:51.578194 8244 abc_segmentor.cc:59] [0, 6)
I20230410 15:55:51.578212 8244 fallback_segmentor.cc:19] current segment length: 6
I20230410 15:55:51.578218 8244 engine.cc:171] segmentation: [yiersa|0,6{abc}]
I20230410 15:55:51.578228 8244 engine.cc:197] translating segment: yiersa
I20230410 15:55:51.578238 8244 echo_translator.cc:36] input = 'yiersa', [0, 6)
I20230410 15:55:51.578251 8244 menu.cc:22] 1 translations added.
I20230410 15:55:51.578264 8244 menu.cc:30] preparing 1 candidates.
I20230410 15:55:51.578274 8244 translation.cc:126] translation #0 has been exhausted.
I20230410 15:55:51.578260 8244 engine.cc:157] composition: {abc}yiersa=>yiersa
I20230410 15:55:51.578289 8244 engine.cc:97] process key: n
I20230410 15:55:51.578303 8244 speller.cc:121] add to input: 'n', n
I20230410 15:55:51.578316 8244 engine.cc:148] active input: yiersan
I20230410 15:55:51.578325 8244 segmentation.cc:60] reset to 1 segments.
I20230410 15:55:51.578330 8244 segmentation.cc:67] diff pos: 6
I20230410 15:55:51.578337 8244 engine.cc:164] start pos: 0
I20230410 15:55:51.578346 8244 engine.cc:165] end pos: 6
I20230410 15:55:51.578352 8244 abc_segmentor.cc:41] abc_segmentor: yiersan
I20230410 15:55:51.578359 8244 abc_segmentor.cc:59] [0, 7)
I20230410 15:55:51.578378 8244 fallback_segmentor.cc:19] current segment length: 7
I20230410 15:55:51.578388 8244 engine.cc:171] segmentation: [yiersan|0,7{abc}]
I20230410 15:55:51.578397 8244 engine.cc:197] translating segment: yiersan
I20230410 15:55:51.578406 8244 echo_translator.cc:36] input = 'yiersan', [0, 7)
I20230410 15:55:51.578421 8244 menu.cc:22] 1 translations added.
I20230410 15:55:51.578435 8244 menu.cc:30] preparing 1 candidates.
I20230410 15:55:51.578445 8244 translation.cc:126] translation #0 has been exhausted.
I20230410 15:55:51.578430 8244 engine.cc:157] composition: {abc}yiersan=>yiersan
schema: sample / 樣例
status: composing
I20230410 15:55:51.578557 8244 config_component.cc:103] read: menu/alternative_select_labels
I20230410 15:55:51.578572 8244 config_data.cc:229] traverse: menu/alternative_select_labels
[yiersan]
page: 1$ (of size 5)
I20230410 15:55:51.578651 8244 engine.cc:93] engine disposed.
README.md里的
trivial_translator converts pinyin to Chinese numbers. A sample Rime schema is set up in build/bin/sample.schema.yaml to utilize the translator.
cmake --build build --target sample_console
cd build/sample/bin
echo "yibaiershisanwansiqianlingwushiliu" | ./sample_console
那么是不是我理解错什么了。这个输出并不是我预期的“Chinese number”。还是LOG中有我没意识到的错误?
Beta Was this translation helpful? Give feedback.
All reactions