CN107678564A - For obtaining the method and device of entry - Google Patents

For obtaining the method and device of entry Download PDF

Info

Publication number
CN107678564A
CN107678564A CN201711018780.2A CN201711018780A CN107678564A CN 107678564 A CN107678564 A CN 107678564A CN 201711018780 A CN201711018780 A CN 201711018780A CN 107678564 A CN107678564 A CN 107678564A
Authority
CN
China
Prior art keywords
pinyin information
entry
corrected
candidate
processed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711018780.2A
Other languages
Chinese (zh)
Inventor
张东栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201711018780.2A priority Critical patent/CN107678564A/en
Publication of CN107678564A publication Critical patent/CN107678564A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/232Orthographic correction, e.g. spell checking or vowelisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Document Processing Apparatus (AREA)

Abstract

本申请实施例公开了用于获取词条的方法及装置。该方法的一具体实施方式包括:对于接收的无法找到词条的待处理拼音信息,对上述待处理拼音信息修正得到对应上述待处理拼音信息的至少一个修正拼音信息;显示上述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条;响应于检测到针对候选词条的选择信号,确定与上述选择信号所指示的候选词条对应的修正拼音信息,获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条;响应于检测到针对修正候选词条的确定信号,输出上述确定信号指示的修正候选词条。该实施方式提高了获取词条的准确性和效率。

The embodiment of the present application discloses a method and a device for obtaining an entry. A specific implementation of the method includes: for the received pinyin information for which no entry can be found, modifying the pinyin information to be processed to obtain at least one corrected pinyin information corresponding to the pinyin information to be processed; displaying the pinyin information to be processed At least one candidate entry corresponding to at least one corrected pinyin information; in response to detecting a selection signal for the candidate entry, determine the corrected pinyin information corresponding to the candidate entry indicated by the selection signal, acquire and display on the pinyin information and The corrected candidate entry with the same corrected pinyin information; in response to detecting a determination signal for the corrected candidate term, outputting the corrected candidate term indicated by the determination signal. This embodiment improves the accuracy and efficiency of acquiring entries.

Description

用于获取词条的方法及装置Method and device for obtaining entries

技术领域technical field

本申请实施例涉及数据技术领域,具体涉及输入法技术领域,尤其涉及用于获取词条的方法及装置。The embodiments of the present application relate to the technical field of data, specifically to the technical field of input methods, and in particular to a method and device for obtaining entries.

背景技术Background technique

随着科技的发展,信息可以通过多种方式在用户之间传递,提高了用户获取信息的效率。With the development of science and technology, information can be transmitted between users in various ways, which improves the efficiency of users in obtaining information.

当用户通过终端设备进行信息交互时,经常需要通过输入法应用获取需要的目标词条,然后再将目标词条发送给信息接收方。输入法应用的词条库包含了海量的词条,能够及时根据用户输入的拼音信息查询到相关的词条。When a user interacts with information through a terminal device, it is often necessary to obtain a desired target entry through an input method application, and then send the target entry to an information receiver. The entry database of the input method application contains a large number of entries, and relevant entries can be queried in a timely manner based on the pinyin information input by the user.

发明内容Contents of the invention

本申请实施例的目的在于提出了用于获取词条的方法及装置,来解决以上背景技术部分提到的技术问题。The purpose of the embodiment of the present application is to propose a method and device for obtaining an entry, so as to solve the technical problems mentioned in the background technology section above.

第一方面,本申请实施例提供了一种用于获取词条的方法,该方法包括:对于接收的无法找到词条的待处理拼音信息,对上述待处理拼音信息修正得到对应上述待处理拼音信息的至少一个修正拼音信息;显示上述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条;响应于检测到针对候选词条的选择信号,确定与上述选择信号所指示的候选词条对应的修正拼音信息,获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条;响应于检测到针对修正候选词条的确定信号,输出上述确定信号指示的修正候选词条。In the first aspect, the embodiment of the present application provides a method for obtaining an entry. The method includes: for the received pinyin information for which no entry can be found, modify the above-mentioned pinyin information to obtain the corresponding pinyin for processing At least one corrected pinyin information of information; at least one candidate entry corresponding to at least one corrected pinyin information of the above-mentioned pinyin information to be processed; in response to detecting a selection signal for the candidate entry, determine the candidate word indicated by the selection signal The corrected pinyin information corresponding to the item is obtained and displayed on the pinyin information and the corrected candidate entry that is the same as the corrected pinyin information; in response to detection of a determination signal for the corrected candidate term, output the corrected candidate term indicated by the determination signal.

在一些实施例中,上述对上述待处理拼音信息修正得到对应上述待处理拼音信息的至少一个修正拼音信息,包括:查找与上述待处理拼音信息具有设定个不相同字符的至少一个参考拼音信息,将参考拼音信息作为上述待处理拼音信息的修正拼音信息,上述参考拼音信息具有对应该参考拼音信息的词条。In some embodiments, the correction of the pinyin information to be processed to obtain at least one corrected pinyin information corresponding to the pinyin information to be processed includes: searching for at least one reference pinyin information that has a set number of different characters from the pinyin information to be processed , the reference pinyin information is used as the corrected pinyin information of the pinyin information to be processed, and the reference pinyin information has an entry corresponding to the reference pinyin information.

在一些实施例中,上述显示上述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条,包括:查找与修正拼音信息对应的候选词条,并通过词条显示窗口显示该候选词条,上述词条显示窗口用于显示拼音信息及对应该拼音信息的词条。In some embodiments, displaying at least one candidate entry corresponding to at least one corrected pinyin information of the pinyin information to be processed includes: searching for a candidate entry corresponding to the corrected pinyin information, and displaying the candidate word through the entry display window The entry display window is used to display the pinyin information and the entries corresponding to the pinyin information.

在一些实施例中,上述获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条,包括:获取与该修正拼音信息对应的修正候选词条,并通过上述词条显示窗口显示该修正候选词条。In some embodiments, the acquisition and display of the corrected candidate entry on the pinyin information that is the same as the corrected pinyin information includes: acquiring the corrected candidate entry corresponding to the corrected pinyin information, and displaying the corrected candidate entry through the entry display window. Correct candidate entries.

在一些实施例中,上述获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条,还包括:响应于检测到针对候选词条的选择信号,将上述词条显示窗口内的待处理拼音信息替换为上述选择信号指示的候选词条对应的修正拼音信息。In some embodiments, the acquisition and display of the corrected candidate entry on the pinyin information that is the same as the corrected pinyin information further includes: in response to detecting a selection signal for the candidate entry, displaying the above-mentioned entry in the waiting window The processed pinyin information is replaced with the corrected pinyin information corresponding to the candidate entry indicated by the selection signal.

第二方面,本申请实施例提供了一种用于获取词条的装置,该装置包括:修正拼音信息获取单元,用于对于接收的无法找到词条的待处理拼音信息,对上述待处理拼音信息修正得到对应上述待处理拼音信息的至少一个修正拼音信息;显示单元,用于显示上述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条;修正候选词条获取单元,用于响应于检测到针对候选词条的选择信号,确定与上述选择信号所指示的候选词条对应的修正拼音信息,获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条;输出单元,用于响应于检测到针对修正候选词条的确定信号,输出上述确定信号指示的修正候选词条。In the second aspect, the embodiment of the present application provides a device for obtaining an entry, the device includes: a corrected pinyin information acquisition unit, configured to process the above-mentioned pinyin information to be processed for which the entry cannot be found. The information correction obtains at least one corrected pinyin information corresponding to the above-mentioned pinyin information to be processed; the display unit is used to display at least one candidate entry corresponding to the at least one corrected pinyin information of the above-mentioned pinyin information to be processed; the corrected candidate entry acquisition unit is used for In response to detecting the selection signal for the candidate entry, determine the corrected pinyin information corresponding to the candidate entry indicated by the selection signal, acquire and display the corrected candidate entry on the pinyin information that is the same as the corrected pinyin information; output unit , configured to, in response to detecting the determination signal for the correction candidate entry, output the correction candidate entry indicated by the determination signal.

在一些实施例中,上述修正拼音信息获取单元包括:查找与上述待处理拼音信息具有设定个不相同字符的至少一个参考拼音信息,将参考拼音信息作为上述待处理拼音信息的修正拼音信息,上述参考拼音信息具有对应该参考拼音信息的词条。In some embodiments, the above-mentioned corrected pinyin information acquisition unit includes: searching for at least one reference pinyin information with a set number of different characters from the above-mentioned pinyin information to be processed, and using the reference pinyin information as the corrected pinyin information of the above-mentioned pinyin information to be processed, The above-mentioned reference pinyin information has entries corresponding to the reference pinyin information.

在一些实施例中,上述显示单元包括:查找与修正拼音信息对应的候选词条,并通过词条显示窗口显示该候选词条,上述词条显示窗口用于显示拼音信息及对应该拼音信息的词条。In some embodiments, the above-mentioned display unit includes: searching for a candidate entry corresponding to the corrected pinyin information, and displaying the candidate entry through the entry display window, and the above-mentioned entry display window is used to display the pinyin information and the corresponding pinyin information entry.

在一些实施例中,上述修正候选词条获取单元包括:获取与该修正拼音信息对应的修正候选词条,并通过上述词条显示窗口显示该修正候选词条。In some embodiments, the correction candidate entry obtaining unit includes: obtaining a correction candidate entry corresponding to the correction pinyin information, and displaying the correction candidate entry through the entry display window.

在一些实施例中,上述修正候选词条获取单元还包括:响应于检测到针对候选词条的选择信号,将上述词条显示窗口内的待处理拼音信息替换为上述选择信号指示的候选词条对应的修正拼音信息。In some embodiments, the correction candidate entry obtaining unit further includes: in response to detecting a selection signal for a candidate entry, replacing the to-be-processed pinyin information in the entry display window with the candidate entry indicated by the selection signal The corresponding corrected pinyin information.

第三方面,本申请实施例提供了一种设备,包括:一个或多个处理器;存储器,用于存储一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器执行上述第一方面的用于获取词条的方法。In the third aspect, the embodiment of the present application provides a device, including: one or more processors; memory, used to store one or more programs, when the above one or more programs are executed by the above one or more processors , causing the above one or more processors to execute the method for acquiring an entry in the above first aspect.

第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现上述第一方面的用于获取词条的方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, wherein, when the program is executed by a processor, the method for acquiring an entry in the above-mentioned first aspect is implemented.

本申请实施例提供的用于获取词条的方法及装置,对无法找到词条的待处理拼音信息进行修正得到修正拼音信息,并显示修正拼音信息的候选词条;当检测到对应候选词条的选择信号时,显示该候选词条的拼音信息相同的候选修正词条,并在检测到对应修正候选词条的确定信号时,输出对应确定信号的修正候选词条,提高了获取词条的准确性和效率。The method and device for obtaining an entry provided by the embodiment of the present application correct the pinyin information to be processed for which the entry cannot be found to obtain the corrected pinyin information, and display the candidate entry for the corrected pinyin information; when the corresponding candidate entry is detected When the selection signal of the candidate entry is displayed, the candidate revised entry with the same pinyin information of the candidate entry is displayed, and when the determination signal of the corresponding correction candidate entry is detected, the correction candidate entry corresponding to the confirmation signal is output, which improves the efficiency of obtaining the entry. accuracy and efficiency.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which the present application can be applied;

图2是根据本申请的用于获取词条的方法的一个实施例的流程图;Fig. 2 is the flow chart of an embodiment of the method for obtaining entry according to the present application;

图3是终端设备101、102、103的词条显示窗口显示修正拼音信息对应的候选词条的示意图;Fig. 3 is a schematic diagram of the entry display window of the terminal device 101, 102, 103 displaying the candidate entry corresponding to the corrected pinyin information;

图4是用户在图3的词条显示窗口上选择候选词条“实战”后,词条显示窗口显示修正候选词条的示意图;Fig. 4 is after the user selects the candidate entry "actual combat" on the entry display window of Fig. 3, the entry display window displays a schematic diagram of the revised candidate entry;

图5是用户在图3的词条显示窗口上选择候选词条“实战”后,将词条显示窗口内的待处理拼音信息“sizan”替换为候选词条“实战”对应的修正拼音信息“shizhan”的示意图;Figure 5 shows that after the user selects the candidate entry "actual combat" on the entry display window in Figure 3, the pinyin information "sizan" to be processed in the entry display window is replaced with the corrected pinyin information "" corresponding to the candidate entry "actual combat" Shizhan" diagram;

图6是用户在图5的基础上选择修正候选词条“施展”后,终端设备101、102、103输出修正候选词条“施展”的示意图;FIG. 6 is a schematic diagram of terminal devices 101, 102, and 103 outputting the correction candidate entry “Shizhang” after the user selects the correction candidate entry “Shizhang” on the basis of FIG. 5;

图7是根据本申请的用于获取词条的方法的一个应用场景的示意图;FIG. 7 is a schematic diagram of an application scenario of a method for obtaining entries according to the present application;

图8是根据本申请的用于获取词条的装置的一个实施例的结构示意图;FIG. 8 is a schematic structural diagram of an embodiment of a device for acquiring entries according to the present application;

图9是适于用来实现本申请实施例的设备的计算机系统的结构示意图。Fig. 9 is a schematic structural diagram of a computer system suitable for implementing the device of the embodiment of the present application.

具体实施方式detailed description

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

图1示出了可以应用本申请的用于获取词条的方法或用于获取词条的装置的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which embodiments of the method for obtaining entries or the apparatus for obtaining entries of the present application can be applied.

如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , a system architecture 100 may include terminal devices 101 , 102 , 103 , a network 104 and a server 105 . The network 104 is used as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the server 105 . Network 104 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种信息处理应用,例如输入法应用、文本编辑应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages and the like. Various information processing applications can be installed on the terminal devices 101, 102, 103, such as input method applications, text editing applications, search applications, instant messaging tools, email clients, social platform software, and the like.

终端设备101、102、103可以是具有显示屏并且支持信息输入的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 may be various electronic devices with display screens and supporting information input, including but not limited to smart phones, tablet computers, laptop computers, desktop computers and the like.

服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103发来的待处理拼音信息进行数据处理的服务器。服务器可以对接收到的待处理拼音信息等数据进行分析等处理,并将处理结果信息发送给终端设备101、102、103,终端设备101、102、103可以在接收到处理结果信息后通过显示屏显示处理结果信息。The server 105 may be a server that provides various services, for example, a server that performs data processing on the pinyin information to be processed sent from the terminal devices 101 , 102 , 103 . The server can analyze and process the received data such as pinyin information to be processed, and send the processing result information to the terminal devices 101, 102, 103. Displays processing result information.

需要说明的是,本申请实施例所提供的用于获取词条的方法一般由终端设备101、102、103执行,相应地,用于获取词条的装置一般设置于终端设备101、102、103中。It should be noted that the method for obtaining entries provided by the embodiment of the present application is generally executed by terminal devices 101, 102, and 103. middle.

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.

继续参考图2,示出了根据本申请的用于获取词条的方法的一个实施例的流程200。该用于获取词条的方法包括以下步骤:Continuing to refer to FIG. 2 , a flow 200 of an embodiment of the method for acquiring entries according to the present application is shown. The method for obtaining entries includes the following steps:

步骤201,对于接收的无法找到词条的待处理拼音信息,对上述待处理拼音信息修正得到对应上述待处理拼音信息的至少一个修正拼音信息。Step 201 , for the received pinyin information to be processed for which no entry can be found, correct the pinyin information to be processed to obtain at least one corrected pinyin information corresponding to the pinyin information to be processed.

在本实施例中,用于获取词条的方法运行于其上的电子设备(例如图1所示的终端设备101、102、103)可以通过有线连接方式或者无线连接方式接收用户输入的待处理拼音信息。其中,本申请的待处理拼音信息可以为无法找到词条的拼音信息。即,待处理拼音信息为用户输入的不符合拼音规则的拼音信息。当由于键盘上按键之间的距离较小、输入法显示的虚拟按键之间的距离较近、以及用户的发音等原因,用户可能输入不符合拼音规则的拼音信息。例如。用户想要获取到的目标词条是“施展”,用户输入的待处理拼音信息可以是“sizan”。而“sizan”无法找到目标词条“施展”,且没有拼音信息为“sizan”的词条,即,待处理拼音信息“sizan”为不符合拼音规则的拼音信息。需要指出的是,上述无线连接方式可以包括但不限于3G/4G连接、WiFi连接、蓝牙连接、WiMAX连接、Zigbee连接、UWB(ultrawideband)连接、以及其他现在已知或将来开发的无线连接方式。In this embodiment, the electronic device on which the method for obtaining entries runs (for example, the terminal devices 101, 102, and 103 shown in FIG. 1 ) can receive the user input to be processed through a wired connection or a wireless connection. Pinyin information. Wherein, the pinyin information to be processed in this application may be the pinyin information for which no entry can be found. That is, the pinyin information to be processed is the pinyin information input by the user that does not comply with the pinyin rules. Due to the small distance between the keys on the keyboard, the short distance between the virtual keys displayed by the input method, and the user's pronunciation, the user may input pinyin information that does not conform to the pinyin rules. E.g. The target entry that the user wants to obtain is "Shizhan", and the pinyin information to be processed input by the user may be "sizan". However, "sizan" cannot find the target entry "Shizhan", and there is no entry whose pinyin information is "sizan", that is, the pinyin information "sizan" to be processed is pinyin information that does not conform to the pinyin rules. It should be noted that the above wireless connection methods may include but not limited to 3G/4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultrawideband) connection, and other wireless connection methods known or developed in the future.

用户输入拼音信息时,可能由于按键之间的距离较小,输入了想要输入的字符对应的按键的旁边按键的字符。例如,当用户想要输入字符“s”时,由于按键之间的距离较近、用户手指放置的位置错误等原因,可能输入的是“s”周围的8个字符:“q”、“w”、“e”、“a”、“d”、“z”、“x”或“c”中的任意一个;用户还可能对需要输入的拼音信息的发音不确定(或错误的发音习惯等原因),导致的拼音信息错误,例如,当应该输入的正确字符为“s”时,由于用户自身的发音有误,导致输入的字符为“sh”、“x”等情况。When the user inputs pinyin information, the user may input the character of the key next to the key corresponding to the character to be input due to the small distance between the keys. For example, when the user wants to input the character "s", due to the short distance between the keys and the wrong position of the user's fingers, etc., the 8 characters around "s" may be input: "q", "w ", "e", "a", "d", "z", "x" or "c"; the user may also be uncertain about the pronunciation of the pinyin information that needs to be input (or wrong pronunciation habits, etc. Reason), resulting in errors in pinyin information, for example, when the correct character that should be input is "s", due to the user's own pronunciation error, the input characters are "sh", "x" and so on.

当用户通过输入了无法找到词条的待处理拼音信息时,终端设备101、102、103可以根据键盘上按键之间的位置关系或发音习惯等方式,对待处理拼音信息进行修正,得到对应待处理拼音信息的至少一个修正拼音信息。When the user enters the pinyin information to be processed for which no entry can be found, the terminal devices 101, 102, and 103 can correct the pinyin information to be processed according to the positional relationship between the keys on the keyboard or pronunciation habits, etc., and obtain the corresponding pinyin information to be processed. At least one modified pinyin information of the pinyin information.

在本实施例的一些可选的实现方式中,上述对上述待处理拼音信息修正得到对应上述待处理拼音信息的至少一个修正拼音信息,可以包括:查找与上述待处理拼音信息具有设定个不相同字符的至少一个参考拼音信息,将参考拼音信息作为上述待处理拼音信息的修正拼音信息,上述参考拼音信息具有对应该参考拼音信息的词条。In some optional implementations of this embodiment, the correction of the above-mentioned pinyin information to be processed to obtain at least one corrected pinyin information corresponding to the above-mentioned pinyin information to be processed may include: searching For at least one reference pinyin information of the same character, the reference pinyin information is used as the corrected pinyin information of the pinyin information to be processed, and the reference pinyin information has an entry corresponding to the reference pinyin information.

由上述描述可知,用户可能因为按键之间的距离较小导入的误输入,或发音习惯等原因输入了无法找到词条的待处理拼音信息。为此,可以查找与待处理拼音信息具有设定个不相同字符的至少一个参考拼音信息。例如,当待处理拼音信息为“sizan”时,对应的参考拼音信息可以是:“shizhan”、“xizang”、“sizhan”等参考拼音信息。From the above description, it can be seen that the user may have entered the pending pinyin information for which the entry cannot be found due to a small distance between the keys, an incorrect input, or a pronunciation habit. For this reason, at least one reference pinyin information having a set number of different characters from the pinyin information to be processed can be searched for. For example, when the pinyin information to be processed is "sizan", the corresponding reference pinyin information may be: "shizhan", "xizang", "sizhan" and other reference pinyin information.

步骤202,显示上述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条。Step 202, displaying at least one candidate entry corresponding to at least one corrected pinyin information of the pinyin information to be processed.

对待处理拼音信息修正后,得到至少一个修正拼音信息。此时,修正拼音信息可能是用户想要输入的正确的拼音信息。为此,可以显示每个修正拼音信息对应的候选词条,以供用户查找与用户想要的目标词条最接近的词条。After the pinyin information to be processed is corrected, at least one corrected pinyin information is obtained. At this time, the corrected pinyin information may be the correct pinyin information that the user wants to input. For this reason, candidate entries corresponding to each corrected pinyin information may be displayed, so that the user can find the entry closest to the target entry desired by the user.

在本实施例的一些可选的实现方式中,显示上述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条,可以包括:查找与修正拼音信息对应的候选词条,并通过词条显示窗口显示该候选词条,上述词条显示窗口用于显示拼音信息及对应该拼音信息的词条。In some optional implementations of this embodiment, displaying at least one candidate entry corresponding to at least one corrected pinyin information of the pinyin information to be processed may include: searching for a candidate entry corresponding to the corrected pinyin information, and The entry display window displays the candidate entry, and the above entry display window is used to display the pinyin information and the entry corresponding to the pinyin information.

还以上述的待处理拼音信息“sizan”为例,修正后的参考拼音信息可以为:“shizhan”、“xizang”、“sizhan”;之后,可以查找到与“shizhan”对应的候选词条“实战”、可以查找到与“xizang”对应的候选词条“西藏”、可以查找到与“sizhan”对应的候选词条“死战”;然后,将“实战”、“西藏”和“死战”通过词条显示窗口显示出来,并显示对应的待处理拼音信息“sizan”,如图3所示。Taking the above-mentioned pinyin information "sizan" to be processed as an example, the revised reference pinyin information can be: "shizhan", "xizang", "sizhan"; after that, the candidate entry corresponding to "shizhan" can be found " "actual combat", the candidate entry "Tibet" corresponding to "xizang" can be found, and the candidate entry "death battle" corresponding to "sizhan" can be found; then, "actual combat", "Tibet" and "death battle" are passed The entry display window is displayed, and the corresponding pinyin information "sizan" to be processed is displayed, as shown in FIG. 3 .

步骤203,响应于检测到针对候选词条的选择信号,确定与上述选择信号所指示的候选词条对应的修正拼音信息,获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条。Step 203, in response to detecting the selection signal for the candidate entry, determine the corrected pinyin information corresponding to the candidate entry indicated by the selection signal, acquire and display the corrected candidate entry that is the same as the corrected pinyin information on the pinyin information .

用户看到图3所示的词条显示窗口后,可以通过在终端设备101、102、103的屏幕上上下滑动或点击等方式,从显示的候选词条中选择与自己想要的目标词条发音最接近的候选词条。当终端设备101、102、103检测到针对候选词条的选择信号时,首先确定与上述选择信号所指示的候选词条对应的修正拼音信息,然后再获取在拼音信息上与该修正拼音信息相同的修正候选词条,并显示这些修正候选词条。After seeing the entry display window shown in Figure 3, the user can select the desired target entry from the displayed candidate entries by sliding up and down or clicking on the screens of the terminal devices 101, 102, and 103. Candidates with the closest pronunciation. When the terminal equipment 101, 102, 103 detects the selection signal for the candidate entry, it first determines the corrected pinyin information corresponding to the candidate entry indicated by the selection signal, and then obtains the same pinyin information as the corrected pinyin information. , and display these correction candidates.

在本实施例的一些可选的实现方式中,上述获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条,可以包括:获取与该修正拼音信息对应的修正候选词条,并通过上述词条显示窗口显示修正候选词条。In some optional implementations of this embodiment, the acquisition and display of the corrected candidate entry on the pinyin information that is the same as the corrected pinyin information may include: acquiring the corrected candidate term corresponding to the corrected pinyin information, and The correction candidate entries are displayed through the entry display window.

例如,检测到的选择信号针对候选词条“实战”,则可以先获取到对应候选词条“实战”的修正候选词条“shizhan”。然后查询对应修正候选词条“shizhan”的修正候选词条可以是:“实战”、“施展”、“市站”、“十站”等词条。之后,将修正候选词条“实战”、“施展”、“市站”、“十站”通过词条显示窗口显示在终端设备101、102、103的屏幕上,如图4所示。For example, if the detected selection signal is aimed at the candidate entry "actual combat", the corrected candidate entry "shizhan" corresponding to the candidate entry "actual combat" may be acquired first. Then query the corresponding correction candidate entry "shizhan" and the correction candidate entry may be: "actual combat", "shizhan", "city station", "ten station" and other entries. Afterwards, the corrected candidate entries "actual combat", "execution", "city station" and "ten stations" are displayed on the screens of the terminal devices 101, 102, 103 through the entry display windows, as shown in FIG. 4 .

在本实施例的一些可选的实现方式中,上述获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条,还可以包括:响应于检测到针对候选词条的选择信号,将上述词条显示窗口内的待处理拼音信息替换为上述选择信号指示的候选词条对应的修正拼音信息。In some optional implementations of this embodiment, the acquiring and displaying the corrected candidate entry on the pinyin information that is the same as the corrected pinyin information may further include: in response to detecting a selection signal for the candidate entry, The pinyin information to be processed in the entry display window is replaced with the corrected pinyin information corresponding to the candidate entry indicated by the selection signal.

为了对用户进行提示,在用户选择了对应的修正候选词条后,还可以将将上述词条显示窗口内的待处理拼音信息替换为上述选择信号指示的候选词条对应的修正拼音信息。如此,可以对用户进行提示,以便用户下次输入正确的拼音信息,如图5所示。In order to prompt the user, after the user selects the corresponding corrected candidate entry, the pending pinyin information in the entry display window may be replaced with the corrected pinyin information corresponding to the candidate entry indicated by the selection signal. In this way, the user can be prompted so that the user can input the correct pinyin information next time, as shown in FIG. 5 .

步骤204,响应于检测到针对修正候选词条的确定信号,输出上述确定信号指示的修正候选词条。Step 204, in response to detecting a determination signal for the correction candidate entry, output the correction candidate entry indicated by the determination signal.

当用户从词条显示窗口中选择某一修正候选词条时,可以认为用户真正需要的目标词条就是该修正候选词条。例如,用户在图5的词条显示窗口中点击(还可以是其它方式)了修正候选词条“施展”,则可以认为,修正候选词条“施展”为用户真正需要的目标词条,如图6所示。When the user selects a candidate correction entry from the entry display window, it can be considered that the target entry that the user really needs is the candidate correction entry. For example, if the user clicks (can also be in other ways) the revised candidate entry "cast" in the entry display window of Figure 5, then it can be considered that the revised candidate entry "cast" is the target entry that the user really needs, such as Figure 6 shows.

继续参见图7,图7是根据本实施例的用于获取词条的方法的应用场景的一个示意图。在图7的应用场景中,终端设备101、102、103接收到无法找到词条的待处理拼音信息“caifua”,对待处理拼音信息修正后得到“caihua”、“caifa”、“haifa”等修正拼音信息,进而显示修正拼音信息“caihua”、“caifa”、“haifa”对应的候选词条“才华”、“财阀”、“海发”;当用户选择候选词条“才华”时,显示候选词条“才华”对应的修正拼音信息“caihua”的修正候选词条“才华”、“菜花”、“采花”、“彩花”;当用户选择修正候选词条“才华”时,输出修正候选词条“才华”。Continuing to refer to FIG. 7 , FIG. 7 is a schematic diagram of an application scenario of the method for acquiring an entry according to this embodiment. In the application scenario in Figure 7, the terminal devices 101, 102, and 103 receive the pending pinyin information "caifua" for which no entry can be found, and obtain corrections such as "caihua", "caifa", and "haifa" after the correction of the pending pinyin information Pinyin information, and then display the candidate entries "caihua", "caifa", and "haifa" corresponding to the corrected pinyin information "caihua", "chaebol", and "haifa"; when the user selects the candidate entry "caihua", the candidate entries are displayed Correction candidate entries "talent", "caihua", "caihua" and "caihua" corresponding to the corrected pinyin information "caihua" corresponding to the entry "talent"; when the user selects the correction candidate entry "talent", output the correction candidate Article "Talent".

本申请的上述实施例提供的方法对无法找到词条的待处理拼音信息进行修正得到修正拼音信息,并显示修正拼音信息的候选词条;当检测到对应候选词条的选择信号时,显示该候选词条的拼音信息相同的候选修正词条,并在检测到对应修正候选词条的确定信号时,输出对应确定信号的修正候选词条,提高了获取词条的准确性和效率。The method provided by the above-mentioned embodiment of the present application corrects the pinyin information to be processed that cannot find the entry to obtain the corrected pinyin information, and displays the candidate entry of the corrected pinyin information; when the selection signal corresponding to the candidate entry is detected, the display is displayed. Candidate correction entries with the same pinyin information of the candidate entries output a correction candidate entry corresponding to the confirmation signal when a confirmation signal corresponding to the correction candidate entry is detected, thereby improving the accuracy and efficiency of obtaining entries.

进一步参考图8,作为对上述各图所示方法的实现,本申请提供了一种用于获取词条的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 8 , as an implementation of the methods shown in the above figures, the present application provides an embodiment of a device for obtaining entries, which corresponds to the method embodiment shown in FIG. 2 , The device can be specifically applied to various electronic devices.

如图8所示,本实施例的用于获取词条的装置800可以包括:修正拼音信息获取单元801、显示单元802、修正候选词条获取单元803和输出单元804。其中,修正拼音信息获取单元801用于对于接收的无法找到词条的待处理拼音信息,对上述待处理拼音信息修正得到对应上述待处理拼音信息的至少一个修正拼音信息;显示单元802用于显示上述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条;修正候选词条获取单元803用于响应于检测到针对候选词条的选择信号,确定与上述选择信号所指示的候选词条对应的修正拼音信息,获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条;输出单元804,用于响应于检测到针对修正候选词条的确定信号,输出上述确定信号指示的修正候选词条。As shown in FIG. 8 , the apparatus 800 for obtaining an entry in this embodiment may include: a correction pinyin information obtaining unit 801 , a display unit 802 , a correction candidate entry obtaining unit 803 and an output unit 804 . Among them, the corrected pinyin information acquisition unit 801 is used to modify the pinyin information to be processed to obtain at least one corrected pinyin information corresponding to the pinyin information to be processed for the received pinyin information to be processed for which no entry can be found; the display unit 802 is used to display At least one candidate entry corresponding to at least one corrected pinyin information of the pinyin information to be processed; the corrected candidate entry acquisition unit 803 is configured to determine the candidate word indicated by the selection signal in response to detecting a selection signal for the candidate entry The corrected pinyin information corresponding to the item, acquires and displays the corrected candidate entry that is the same as the corrected pinyin information on the pinyin information; the output unit 804 is configured to output the above-mentioned determination signal indication in response to detecting a determination signal for the corrected candidate term The revised candidate entries for .

在本实施例的一些可选的实现方式中,上述修正拼音信息获取单元801可以包括:查找与上述待处理拼音信息具有设定个不相同字符的至少一个参考拼音信息,将参考拼音信息作为上述待处理拼音信息的修正拼音信息,上述参考拼音信息具有对应该参考拼音信息的词条。In some optional implementations of this embodiment, the above-mentioned corrected pinyin information obtaining unit 801 may include: searching for at least one reference pinyin information that has a set number of characters different from the above-mentioned pinyin information to be processed, and using the reference pinyin information as the above-mentioned The corrected pinyin information of the pinyin information to be processed, the reference pinyin information has an entry corresponding to the reference pinyin information.

在本实施例的一些可选的实现方式中,上述显示单元802可以包括:查找与修正拼音信息对应的候选词条,并通过词条显示窗口显示该候选词条,上述词条显示窗口用于显示拼音信息及对应该拼音信息的词条。In some optional implementations of this embodiment, the above-mentioned display unit 802 may include: searching for a candidate entry corresponding to the corrected pinyin information, and displaying the candidate entry through the entry display window. The above-mentioned entry display window is used for Display pinyin information and entries corresponding to the pinyin information.

在本实施例的一些可选的实现方式中,上述修正候选词条获取单元803可以包括:获取与该修正拼音信息对应的修正候选词条,并通过上述词条显示窗口显示修正候选词条。In some optional implementations of this embodiment, the correction candidate entry obtaining unit 803 may include: obtaining a correction candidate entry corresponding to the correction pinyin information, and displaying the correction candidate entry through the entry display window.

在本实施例的一些可选的实现方式中,上述修正候选词条获取单元803还可以包括:响应于检测到针对候选词条的选择信号,将上述词条显示窗口内的待处理拼音信息替换为上述选择信号指示的候选词条对应的修正拼音信息。In some optional implementations of this embodiment, the correction candidate entry obtaining unit 803 may further include: in response to detecting a selection signal for the candidate entry, replacing the pending pinyin information in the entry display window with It is the corrected pinyin information corresponding to the candidate entry indicated by the selection signal.

本实施例还提供了一种服务器,包括:一个或多个处理器;存储器,用于存储一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器执行上述的用于获取词条的方法。This embodiment also provides a server, including: one or more processors; memory, used to store one or more programs, when the above one or more programs are executed by the above one or more processors, so that the above One or more processors execute the above-mentioned method for obtaining an entry.

本实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的用于获取词条的方法。This embodiment also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned method for obtaining an entry is realized.

下面参考图9,其示出了适于用来实现本申请实施例的设备的计算机系统900的结构示意图。图9示出的设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring now to FIG. 9 , it shows a schematic structural diagram of a computer system 900 suitable for implementing the device of the embodiment of the present application. The device shown in FIG. 9 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.

如图9所示,计算机系统900包括中央处理单元(CPU)901,其可以根据存储在只读存储器(ROM)902中的程序或者从存储部分908加载到随机访问存储器(RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有系统900操作所需的各种程序和数据。CPU 901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。As shown in FIG. 9 , a computer system 900 includes a central processing unit (CPU) 901 that can be programmed according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage section 908 into a random-access memory (RAM) 903 Instead, various appropriate actions and processes are performed. In the RAM 903, various programs and data necessary for the operation of the system 900 are also stored. The CPU 901 , ROM 902 , and RAM 903 are connected to each other via a bus 904 . An input/output (I/O) interface 905 is also connected to the bus 904 .

以下部件连接至I/O接口905:包括键盘、鼠标等的输入部分906;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分907;包括硬盘等的存储部分908;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分909。通信部分909经由诸如因特网的网络执行通信处理。驱动器910也根据需要连接至I/O接口905。可拆卸介质911,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器910上,以便于从其上读出的计算机程序根据需要被安装入存储部分908。The following components are connected to the I/O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 908 including a hard disk, etc. and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc. is mounted on the drive 910 as necessary so that a computer program read therefrom is installed into the storage section 908 as necessary.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分909从网络上被下载和安装,和/或从可拆卸介质911被安装。在该计算机程序被中央处理单元(CPU)901执行时,执行本申请的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 909 and/or installed from removable media 911 . When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the method of the present application are performed.

需要说明的是,本申请上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program codes are carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. . Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括修正拼音信息获取单元、显示单元、修正候选词条获取单元和输出单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,输出单元还可以被描述为“用于输出词条的单元”。The units involved in the embodiments described in the present application may be implemented by means of software or by means of hardware. The described units can also be set in the processor, for example, it can be described as: a processor includes a corrected pinyin information acquisition unit, a display unit, a corrected candidate entry acquisition unit and an output unit. Wherein, the names of these units do not constitute a limitation on the unit itself under certain circumstances, for example, the output unit may also be described as "a unit for outputting entries".

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:对于接收的无法找到词条的待处理拼音信息,对上述待处理拼音信息修正得到对应上述待处理拼音信息的至少一个修正拼音信息;显示上述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条;响应于检测到针对候选词条的选择信号,确定与上述选择信号所指示的候选词条对应的修正拼音信息,获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条;响应于检测到针对修正候选词条的确定信号,输出上述确定信号指示的修正候选词条。As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the device described in the above embodiments, or it may exist independently without being assembled into the device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the device, the device: for the received pinyin information for which no entry can be found, correct the above-mentioned pinyin information to be processed Obtaining at least one corrected pinyin information corresponding to the above-mentioned pinyin information to be processed; displaying at least one candidate entry corresponding to at least one corrected pinyin information of the above-mentioned pinyin information to be processed; in response to detecting a selection signal for the candidate entry, determining the above selection The corrected pinyin information corresponding to the candidate entry indicated by the signal is acquired and displayed on the pinyin information and the corrected candidate entry that is the same as the corrected pinyin information; in response to detecting a determination signal for the corrected candidate entry, the above-mentioned determination signal indication is output The revised candidate entries for .

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, and should also cover the technical solutions formed by the above-mentioned technical features or without departing from the above-mentioned inventive concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) this application.

Claims (12)

1.一种用于获取词条的方法,其特征在于,所述方法包括:1. A method for obtaining an entry, characterized in that the method comprises: 对于接收的无法找到词条的待处理拼音信息,对所述待处理拼音信息修正得到对应所述待处理拼音信息的至少一个修正拼音信息;For the received pinyin information to be processed for which the entry cannot be found, modify the pinyin information to be processed to obtain at least one corrected pinyin information corresponding to the pinyin information to be processed; 显示所述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条;Displaying at least one candidate entry corresponding to at least one corrected pinyin information of the pinyin information to be processed; 响应于检测到针对候选词条的选择信号,确定与所述选择信号所指示的候选词条对应的修正拼音信息,获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条;In response to detecting a selection signal for a candidate entry, determining corrected pinyin information corresponding to the candidate entry indicated by the selection signal, acquiring and displaying the corrected candidate entry identical to the corrected pinyin information on the pinyin information; 响应于检测到针对修正候选词条的确定信号,输出所述确定信号指示的修正候选词条。In response to detecting a determination signal for a correction candidate entry, outputting the correction candidate entry indicated by the determination signal. 2.根据权利要求1所述的方法,其特征在于,所述对所述待处理拼音信息修正得到对应所述待处理拼音信息的至少一个修正拼音信息,包括:2. The method according to claim 1, wherein said modifying said pinyin information to be processed to obtain at least one corrected pinyin information corresponding to said pinyin information to be processed comprises: 查找与所述待处理拼音信息具有设定个不相同字符的至少一个参考拼音信息,将参考拼音信息作为所述待处理拼音信息的修正拼音信息,所述参考拼音信息具有对应该参考拼音信息的词条。Searching for at least one reference pinyin information that has a set number of different characters from the pinyin information to be processed, using the reference pinyin information as the corrected pinyin information of the pinyin information to be processed, and the reference pinyin information has a corresponding to the reference pinyin information entry. 3.根据权利要求2所述的方法,其特征在于,所述显示所述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条,包括:3. The method according to claim 2, wherein the displaying at least one candidate entry corresponding to at least one corrected pinyin information of the pinyin information to be processed comprises: 查找与修正拼音信息对应的候选词条,并通过词条显示窗口显示该候选词条,所述词条显示窗口用于显示拼音信息及对应该拼音信息的词条。Search for a candidate entry corresponding to the corrected pinyin information, and display the candidate entry through the entry display window, and the entry display window is used to display the pinyin information and the entry corresponding to the pinyin information. 4.根据权利要求3所述的方法,其特征在于,所述获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条,包括:4. The method according to claim 3, wherein said acquiring and displaying the corrected candidate entry identical to the corrected pinyin information on the pinyin information comprises: 获取与该修正拼音信息对应的修正候选词条,并通过所述词条显示窗口显示修正候选词条。The corrected candidate entries corresponding to the corrected pinyin information are obtained, and the corrected candidate entries are displayed through the entry display window. 5.根据权利要求3所述的方法,其特征在于,所述获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条,还包括:5. The method according to claim 3, wherein said acquiring and displaying the corrected candidate entry identical to the corrected pinyin information on the pinyin information further comprises: 响应于检测到针对候选词条的选择信号,将所述词条显示窗口内的待处理拼音信息替换为所述选择信号指示的候选词条对应的修正拼音信息。In response to detecting a selection signal for a candidate entry, the to-be-processed pinyin information in the entry display window is replaced with the corrected pinyin information corresponding to the candidate entry indicated by the selection signal. 6.一种用于获取词条的装置,其特征在于,所述装置包括:6. A device for obtaining an entry, characterized in that the device comprises: 修正拼音信息获取单元,用于对于接收的无法找到词条的待处理拼音信息,对所述待处理拼音信息修正得到对应所述待处理拼音信息的至少一个修正拼音信息;The corrected pinyin information acquisition unit is configured to correct the pinyin information to be processed to obtain at least one corrected pinyin information corresponding to the pinyin information to be processed for the received pinyin information to be processed for which no entry can be found; 显示单元,用于显示所述待处理拼音信息的至少一个修正拼音信息对应的至少一个候选词条;A display unit, configured to display at least one candidate entry corresponding to at least one corrected pinyin information of the pinyin information to be processed; 修正候选词条获取单元,用于响应于检测到针对候选词条的选择信号,确定与所述选择信号所指示的候选词条对应的修正拼音信息,获取并显示在拼音信息上与该修正拼音信息相同的修正候选词条;The modified candidate entry acquisition unit is used to determine the corrected pinyin information corresponding to the candidate entry indicated by the selection signal in response to detecting the selection signal for the candidate entry, and acquire and display the corrected pinyin on the pinyin information. Correction candidate entries with the same information; 输出单元,用于响应于检测到针对修正候选词条的确定信号,输出所述确定信号指示的修正候选词条。An output unit configured to, in response to detecting a determination signal for a correction candidate entry, output a correction candidate entry indicated by the determination signal. 7.根据权利要求6所述的装置,其特征在于,所述修正拼音信息获取单元包括:7. The device according to claim 6, wherein the modified pinyin information acquisition unit comprises: 查找与所述待处理拼音信息具有设定个不相同字符的至少一个参考拼音信息,将参考拼音信息作为所述待处理拼音信息的修正拼音信息,所述参考拼音信息具有对应该参考拼音信息的词条。Searching for at least one reference pinyin information that has a set number of different characters from the pinyin information to be processed, using the reference pinyin information as the corrected pinyin information of the pinyin information to be processed, and the reference pinyin information has a corresponding to the reference pinyin information entry. 8.根据权利要求7所述的装置,其特征在于,所述显示单元包括:8. The device according to claim 7, wherein the display unit comprises: 查找与修正拼音信息对应的候选词条,并通过词条显示窗口显示该候选词条,所述词条显示窗口用于显示拼音信息及对应该拼音信息的词条。Search for a candidate entry corresponding to the corrected pinyin information, and display the candidate entry through the entry display window, and the entry display window is used to display the pinyin information and the entry corresponding to the pinyin information. 9.根据权利要求8所述的装置,其特征在于,所述修正候选词条获取单元包括:9. The device according to claim 8, wherein the correction candidate entry acquisition unit comprises: 获取与该修正拼音信息对应的修正候选词条,并通过所述词条显示窗口显示修正候选词条。The corrected candidate entries corresponding to the corrected pinyin information are obtained, and the corrected candidate entries are displayed through the entry display window. 10.根据权利要求8所述的装置,其特征在于,所述修正候选词条获取单元还包括:10. The device according to claim 8, wherein the correction candidate entry acquisition unit further comprises: 响应于检测到针对候选词条的选择信号,将所述词条显示窗口内的待处理拼音信息替换为所述选择信号指示的候选词条对应的修正拼音信息。In response to detecting a selection signal for a candidate entry, the to-be-processed pinyin information in the entry display window is replaced with the corrected pinyin information corresponding to the candidate entry indicated by the selection signal. 11.一种设备,包括:11. An apparatus comprising: 一个或多个处理器;one or more processors; 存储器,用于存储一个或多个程序,memory for storing one or more programs, 当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行权利要求1至5中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the method in any one of claims 1-5. 12.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1至5中任一所述的方法。12. A computer-readable storage medium, on which a computer program is stored, wherein, when the program is executed by a processor, the method according to any one of claims 1 to 5 is realized.
CN201711018780.2A 2017-10-26 2017-10-26 For obtaining the method and device of entry Pending CN107678564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711018780.2A CN107678564A (en) 2017-10-26 2017-10-26 For obtaining the method and device of entry

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711018780.2A CN107678564A (en) 2017-10-26 2017-10-26 For obtaining the method and device of entry

Publications (1)

Publication Number Publication Date
CN107678564A true CN107678564A (en) 2018-02-09

Family

ID=61142537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711018780.2A Pending CN107678564A (en) 2017-10-26 2017-10-26 For obtaining the method and device of entry

Country Status (1)

Country Link
CN (1) CN107678564A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0257641A2 (en) * 1986-08-28 1988-03-02 Sharp Kabushiki Kaisha Documentation machine with spelling correction feature
CN1556458A (en) * 2004-01-05 2004-12-22 郑 方 Chinese whole sentence input method
CN1936786A (en) * 2005-09-23 2007-03-28 英华达(上海)电子有限公司 Fuzzy sound inputting method for Chinese phonetic alphabet
CN101055501A (en) * 2007-04-12 2007-10-17 刘啸旻 Phonetic input method for Chinese
US20160328147A1 (en) * 2013-02-25 2016-11-10 Shanghai Chule (CooTek) Information Technology Co. Ltd. Method, system and device for inputting text by consecutive slide

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0257641A2 (en) * 1986-08-28 1988-03-02 Sharp Kabushiki Kaisha Documentation machine with spelling correction feature
CN1556458A (en) * 2004-01-05 2004-12-22 郑 方 Chinese whole sentence input method
CN1936786A (en) * 2005-09-23 2007-03-28 英华达(上海)电子有限公司 Fuzzy sound inputting method for Chinese phonetic alphabet
CN101055501A (en) * 2007-04-12 2007-10-17 刘啸旻 Phonetic input method for Chinese
US20160328147A1 (en) * 2013-02-25 2016-11-10 Shanghai Chule (CooTek) Information Technology Co. Ltd. Method, system and device for inputting text by consecutive slide

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TY: "界面清新功能实用——搜狗输入法4.2新功能体验", 《网络与信息》 *
王明亭,等: "《信息技术基础知识》", 30 September 2013, 南开大学出版社 *

Similar Documents

Publication Publication Date Title
US20140040741A1 (en) Smart Auto-Completion
CN107731229B (en) Method and apparatus for recognizing speech
KR102087807B1 (en) Character inputting method and apparatus
CN107919129A (en) Method and apparatus for controlling the page
US10394921B2 (en) Career path navigation
CN109858045B (en) Machine translation method and device
CN112148751B (en) Method and device for querying data
CN111104479A (en) Data labeling method and device
US9009031B2 (en) Analyzing a category of a candidate phrase to update from a server if a phrase category is not in a phrase database
US20160292228A1 (en) Methods, terminal device, cloud server and system for recommending websites
CN112528145A (en) Information recommendation method, device, equipment and readable storage medium
CN118964390A (en) Data query method, device, readable medium, electronic device and program product
CN105094603B (en) Method and device for associated input
CN111026849B (en) Data processing methods and devices
EP3387556B1 (en) Providing automated hashtag suggestions to categorize communication
US9830397B2 (en) Method and computer-based system for processing a search query from a user associated with an electronic device
WO2017080309A1 (en) Usage log determination method and apparatus
WO2016155384A1 (en) Search optimization method, apparatus, and system
US20240403001A1 (en) Code recommendation method and apparatus, electronic device and storage medium
CN113590756A (en) Information sequence generation method and device, terminal equipment and computer readable medium
CN109951380B (en) Method, electronic device, and computer-readable medium for finding conversation messages
CN110297825B (en) Data processing method, device, computer equipment and storage medium
CN113360590A (en) Method and device for updating point of interest information, electronic equipment and storage medium
CN112148847A (en) Voice information processing method and device
CN107678564A (en) For obtaining the method and device of entry

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180209

RJ01 Rejection of invention patent application after publication