A Cantonese Pinyin Lookup Method and Related Equipment Based on Fanqie Phonetic Symbols

By using the fanqie phonetic notation method, Cantonese pinyin is generated based on the number and position of the phonetic characters, solving the problem of difficulty in recognizing the pronunciation of rare Cantonese characters and achieving efficient and accurate Cantonese pinyin lookup.

CN123067731APending Publication Date: 2026-11-10JINAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610981937.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-02
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

Existing input methods cannot effectively recognize the pronunciation of rare Cantonese characters, requiring users to memorize the character shapes or pinyin sequences, resulting in low recognition accuracy.

Method used

Using the fanqie phonetic method, the system takes several phonetic characters as input by the user, determines the phonetic pattern based on the number and position of the phonetic characters, extracts the target Cantonese syllable information, and generates Cantonese pinyin.

Benefits of technology

It lowers the barrier for users to memorize the shapes and spellings of characters, and improves the accuracy and convenience of searching for Cantonese pinyin.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123067731A_ABST
    Figure CN123067731A_ABST
Patent Text Reader

Abstract

This application discloses a method and related equipment for searching Cantonese pinyin based on fanqie (a phonetic notation system). The method includes: acquiring several phonetic characters input by a user; determining a phonetic mode based on the number and input position of each phonetic character; extracting target Cantonese syllable information based on the number, input position, and phonetic mode of each phonetic character; and generating target Cantonese pinyin based on the target Cantonese syllable information. The number of phonetic characters ranges from one to three, the phonetic mode is one of a regular phonetic mode, a zero-initial phonetic mode, and a special nasal phonetic mode, the target Cantonese syllable information includes at least two of a target initial consonant, a target final vowel, and a target tone, and the input position of the phonetic characters includes at least one of an initial consonant input box, a final vowel input box, and a tone input box. This application reduces the requirements for users' character shape memorization and spelling ability when searching for Cantonese pinyin. This application can be widely applied in the field of pinyin generation technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of pinyin generation technology, and in particular to a method and related equipment for searching Cantonese pinyin based on fanqie phonetic notation. Background Technology

[0002] The Cantonese language system contains a large number of rare Chinese characters, or dialect expressions that only have spoken pronunciations without standardized corresponding characters. In real-world usage scenarios, users often only know the auditory pronunciation of Cantonese words, unable to write the corresponding characters or know their standard Cantonese phonetic encoding. Existing mainstream input methods generally have limitations: they either rely on users memorizing the shapes of Chinese characters for handwriting or Wubi input; or they require users to master the complete sequence of pinyin letters for pinyin input; even when using voice input, problems such as recognition failure and incorrect candidate word matching often occur due to the aforementioned rare Cantonese characters and the lack of corresponding characters for the sounds, making it difficult to guarantee recognition accuracy.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the Invention

[0004] The main objective of this application is to propose a method and related equipment for searching Cantonese pinyin based on fanqie phonetic notation, thereby lowering the barrier to entry for users in terms of character shape memory and spelling ability when searching for Cantonese pinyin.

[0005] To achieve the above objectives, one aspect of this application proposes a Cantonese pinyin lookup method based on fanqie phonetic notation, the method comprising: Get several phonetic characters input by the user; The phonetic mode is determined based on the number of each phonetic character and its input position. The target Cantonese syllable information of each phonetic character is extracted based on the number of each phonetic character, the input position of each phonetic character, and the phonetic mode. Generate the target Cantonese pinyin based on the target Cantonese syllable information of each of the aforementioned phonetic characters; The number of phonetic characters ranges from one to three. The phonetic mode is one of the following: regular phonetic mode, zero-initial phonetic mode, and special nasal phonetic mode. The target Cantonese syllable information includes at least two of the target initial consonant, target final vowel, and target tone. The input position of the phonetic character includes at least one of the following: initial consonant input box, final vowel input box, and tone input box.

[0006] In some embodiments, the Cantonese pinyin lookup method based on fanqie phonetic notation further includes: Determine whether each of the stated phonetic characters is a polyphonic character; When the phonetic character is a polyphonic character, a list of candidate pronunciations for the phonetic character is displayed through the user interface. The user selects the target pronunciation from the list of candidate pronunciations and determines the target pronunciation as the pronunciation of the phonetic character.

[0007] In some embodiments, determining the phonetic mode based on the number of phonetic characters and the input position includes: Obtain the input position of each of the aforementioned phonetic characters; When the input position of each of the phonetic characters includes only the initial consonant input box, or only the initial consonant input box and the final vowel input box, or includes the initial consonant input box, the final vowel input box and the tone input box, the phonetic mode is determined to be the conventional phonetic mode. When the input position of each of the phonetic characters includes only the vowel input box, or only the vowel input box and the tone input box, the phonetic mode is determined to be the zero-initial phonetic mode; When the input position of each of the phonetic characters only includes the initial consonant input box and the tone input box, the phonetic mode is determined to be the special nasal phonetic mode.

[0008] In some embodiments, when the phonetic mode is the conventional phonetic mode, the step of extracting the target Cantonese syllable information of each phonetic character based on the number of each phonetic character, the input position of each phonetic character, and the phonetic mode includes: Obtain the number of each of the aforementioned phonetic characters; When the number of each of the aforementioned phonetic characters is one, the target initial, the target final, and the target tone are determined based on the initial, final, and tone of the phonetic character located in the initial input box; When there are two phonetic characters, the target initial is determined based on the initial of the phonetic character located in the initial input box, and the target final and the target tone are determined based on the final and tone of the phonetic character located in the final input box. When there are three phonetic characters, the target initial is determined based on the initial of the phonetic character located in the initial input box, the target final is determined based on the final of the phonetic character located in the final input box, and the target tone is determined based on the tone of the phonetic character located in the tone input box.

[0009] In some embodiments, when the phonetic mode is the zero-initial phonetic mode, the step of extracting the target Cantonese syllable information of each phonetic character based on the number of each phonetic character, the input position of each phonetic character, and the phonetic mode includes: Obtain the number of each of the aforementioned phonetic characters; When the number of each of the aforementioned phonetic characters is one, the target final and the target tone are determined based on the final and tone of the phonetic character located in the final input box; When there are two phonetic characters, the target final is determined based on the final of the phonetic character located in the final input box, and the target tone is determined based on the tone of the phonetic character located in the tone input box.

[0010] In some embodiments, when the phonetic transcription mode is the special nasal phonetic transcription mode, the step of extracting the target Cantonese syllable information of each phonetic character based on the number of each phonetic character, the input position of each phonetic character, and the phonetic transcription mode includes: The target initial consonant is determined based on the initial consonant of the phonetic character located in the initial consonant input box, and the target tone is determined based on the tone of the phonetic character located in the tone input box.

[0011] In some embodiments, the Cantonese pinyin lookup method further includes: The audio playback button for the target Cantonese pinyin is displayed through the user interface; In response to the user's click on the audio playback button, the audio corresponding to the target Cantonese pinyin is played.

[0012] To achieve the above objectives, another aspect of this application proposes a Cantonese pinyin lookup device based on fanqie phonetic notation, the device comprising: The phonetic character input module is used to obtain several phonetic characters input by the user; The phonetic mode determination module is used to determine the phonetic mode based on the number of each phonetic character and its input position. The syllable information extraction module is used to extract the target Cantonese syllable information of each of the phonetic characters based on the number of each phonetic character, the input position of each phonetic character, and the phonetic mode. The target Cantonese pinyin generation module is used to generate target Cantonese pinyin based on the target Cantonese syllable information of each of the aforementioned phonetic characters; The number of phonetic characters ranges from one to three. The phonetic mode is one of the following: regular phonetic mode, zero-initial phonetic mode, and special nasal phonetic mode. The target Cantonese syllable information includes at least two of the target initial consonant, target final vowel, and target tone. The input position of the phonetic character includes at least one of the following: initial consonant input box, final vowel input box, and tone input box.

[0013] To achieve the above objectives, another aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the methods described above.

[0014] To achieve the above objectives, another aspect of the embodiments of this application proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods described above.

[0015] To achieve the above objectives, another aspect of the embodiments of this application proposes a computer program product, including a computer program that, when executed by a processor, implements the methods described above.

[0016] The embodiments of this application include at least the following beneficial effects: This application provides a Cantonese pinyin search method and related equipment based on fanqie phonetic notation. This solution obtains the phonetic characters input by the user and determines the phonetic mode according to the number and input position of each phonetic character. This allows the user to express the compositional relationship of the target pronunciation through one to three phonetic characters with known pronunciations, without having to directly input the complete Cantonese pinyin code, thus reducing the memory threshold for users to use Cantonese pinyin. By extracting the target Cantonese syllable information according to the number, input position, and phonetic mode of each phonetic character, the system can determine the corresponding information of the target initial, target final, and target tone from the phonetic characters according to the conventional phonetic mode, the zero-initial phonetic mode, or the special nasal phonetic mode. This adapts to the pinyin search needs under different Cantonese syllable structures, ensuring improved accuracy of Cantonese pinyin search. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating the steps of a Cantonese pinyin search method based on fanqie phonetic notation provided in an embodiment of this application; Figure 2 This is a schematic diagram of the user interface of a Cantonese pinyin search method based on fanqie phonetic notation provided in an embodiment of this application; Figure 3 This is a schematic diagram of the user interface for displaying a list of candidate pronunciations provided in an embodiment of this application; Figure 4 This is a schematic diagram of the user interface when the number of phonetic characters is one under the conventional phonetic mode provided in this application embodiment; Figure 5 This is a schematic diagram of the user interface when the number of phonetic characters is two under the conventional phonetic mode provided in this application embodiment; Figure 6 This is a schematic diagram of the user interface when the number of phonetic characters is three under the conventional phonetic mode provided in this application embodiment; Figure 7 This is a schematic diagram of the user interface when the number of phonetic characters is one in the zero-initial phonetic mode provided in this application embodiment; Figure 8This is a schematic diagram of the user interface when the number of phonetic characters is two in the zero-initial phonetic mode provided in this application embodiment; Figure 9 This is a schematic diagram of the user interface when the number of phonetic characters is one under the special nasal phonetic notation mode provided in this application embodiment; Figure 10 This is a schematic diagram of the user interface when the number of phonetic characters is two under the special nasal phonetic annotation mode provided in this application embodiment; Figure 11 This is a schematic diagram of the structure of a Cantonese pinyin search device based on fanqie phonetic notation provided in an embodiment of this application; Figure 12 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit it. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.

[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0020] The concept of the present invention will now be explained in conjunction with the background art.

[0021] Existing input methods cannot provide users with an effective way to input information. The industry urgently needs a new solution that can deduce Cantonese pronunciation by relying on common homophones of Chinese characters and complete pinyin recording and text input.

[0022] To address this, this application provides a Cantonese pinyin lookup method and related equipment based on fanqie (a method of phonetic transcription) for users. This allows users to input common Cantonese characters to annotate the unknown pronunciation of a target Cantonese word, even when they only know the pronunciation but cannot write the corresponding Chinese character or understand its pinyin sequence. The system automatically generates standard Cantonese pinyin, helping users record and reuse the unknown pronunciation. This method differs from conventional pinyin input methods—traditional pinyin input methods require users to master both the pronunciation and the accurate pinyin sequence; while this method only requires users to recognize the pronunciation of common Cantonese characters, significantly lowering the barrier to entry for character memorization and spelling ability.

[0023] This application provides a Cantonese pinyin search method based on fanqie phonetic notation, relating to the field of information technology. This method can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, or in-vehicle terminal, but is not limited to these. The server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network. The software can be an application implementing a Cantonese pinyin search method based on fanqie phonetic notation, but is not limited to the above forms.

[0024] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0025] Figure 1is an optional flowchart of a Cantonese Pinyin lookup method based on fanqie phonetic notation provided in the embodiments of the present application, Figure 1 the method in may include but is not limited to steps S101 to S104.

[0026] S101. Acquire several phonetic notation characters input by a user; In some embodiments, the Cantonese Pinyin lookup method based on fanqie phonetic notation further comprises: S201. Determine whether each phonetic notation character is a polyphonic character; S202. When the phonetic notation character is a polyphonic character, display a candidate pronunciation list of the phonetic notation character through a user interaction interface, acquire a target pronunciation selected by the user from the candidate pronunciation list, and determine the target pronunciation as the pronunciation of the phonetic notation character.

[0027] Specifically, the design concept of the Cantonese Pinyin lookup and input method provided in this embodiment draws on the fanqie phonetic notation principle in traditional linguistics. The fanqie phonetic notation method usually uses two Chinese characters for phonetic notation, taking the initial consonant of the upper character and the final and tone of the lower character, and combining them to obtain the pronunciation of the character to be annotated. On the basis of traditional fanqie, this embodiment makes innovative extensions, and supports the use of one, two or three commonly used Cantonese Chinese characters to perform phonetic notation parsing on an unknown target pronunciation.

[0028] For example, with reference to Figure 2 , the user interaction interface provided in this embodiment includes three independent text boxes, which are respectively an initial consonant input box, a final input box and a tone input box. The user selects phonetic notation characters adapted to the target pronunciation, and fills each text box according to the corresponding input mode based on the composition form of the target Cantonese Pinyin. Considering that there are polyphonic characters in Cantonese, this embodiment adds a polyphonic character adaptation process. After the user completes Chinese character entry in the tool input box and clicks "Generate Cantonese Pinyin", with reference to Figure 3 , if the input Chinese character is a Cantonese polyphonic character, the system will automatically pop up a "Select Pronunciation" dialog box, which lists all Cantonese pronunciation schemes (that is, candidate target pronunciations) corresponding to the Chinese character. The user selects a pronunciation option matching the target semantics and pronunciation in the dialog box as the pronunciation of the phonetic notation character, and after confirmation, the subsequent Cantonese Pinyin generation and verification process can be entered.

[0029] S102. Determine a phonetic notation mode according to the number and input positions of each phonetic notation character; In some embodiments, determining the phonetic notation mode according to the number and input positions of the phonetic notation characters comprises: S1021. Acquire the input position of each phonetic notation character; When the input positions of each phonetic notation character only include the initial consonant input box, or only include the initial consonant input box and the final input box, or include the initial consonant input box, the final input box and the tone input box, determine that the phonetic notation mode is a normal phonetic notation mode; S1023. When the input positions of each phonetic character only include the final input box, or only include the final input box and the tone input box, the phonetic mode is determined to be a zero-initial phonetic mode; S1024. When the input positions of each phonetic character only include the initial input box and the tone input box, the phonetic mode is determined to be a special nasal phonetic mode.

[0030] Specifically, standard Cantonese pinyin is divided into three structural types: initial + final + tone (e.g., nei5, the character "你"); zero-initial + final + tone (e.g., aa1, the character "丫"); special nasal initial + tone (e.g., ng5, the character "五"; m4, the character "唔"). In this embodiment, the corresponding phonetic mode is determined based on different structural types of Cantonese pinyin, according to the number and positions of the input phonetic characters. Different phonetic modes correspond to different extraction rules for syllable information of phonetic characters, and the phonetic mode will directly determine the Cantonese pinyin combination rules and output results in subsequent steps.

[0031] Specifically, when the user only inputs a phonetic character in the initial input box, the phonetic mode is determined as a normal phonetic mode, and the initial, final and tone of the phonetic character will be extracted as the target syllable information subsequently. It should be noted that when a phonetic character is only input in the initial input box and the phonetic character has a special nasal structure, the phonetic mode at this time is still the normal phonetic mode, and the syllable information extraction rule is still to extract the initial, final and tone of the phonetic character as the target syllable information. However, since the phonetic character only contains the initial and the tone, the final output target Cantonese pinyin will not include a final.

[0032] S103. Extract target Cantonese syllable information of each phonetic character according to the number of each phonetic character, the input position of each phonetic character and the phonetic mode; In some embodiments, when the phonetic mode is the normal phonetic mode, extracting the target Cantonese syllable information of each phonetic character according to the number of each phonetic character, the input position of each phonetic character and the phonetic mode includes: S301. Obtain the number of each phonetic character; S302. When the number of each phonetic character is one, determine the target initial, target final and target tone according to the initial, final and tone of the phonetic character located in the initial input box; S303. When the number of each phonetic character is two, determine the target initial according to the initial of the phonetic character located in the initial input box, and determine the target final and target tone according to the final and tone of the phonetic character located in the final input box; S304. When the number of each phonetic character is three, determine the target initial according to the initial of the phonetic character located in the initial input box, determine the target final according to the final of the phonetic character located in the final input box, and determine the target tone according to the tone of the phonetic character located in the tone input box.

[0033] Specifically, in this embodiment, if the phonetic notation mode determined in the aforementioned steps is the conventional phonetic notation mode, that is, the target pronunciation corresponds to the complete structure of initial consonant + final vowel + tone (or only a single phonetic character is input, and the phonetic character is a special nasal initial consonant + tone structure), then single-character, two-character, or three-character phonetic character combinations can be selected to complete the phonetic notation according to the number of phonetic characters. The corresponding input mode rules are as follows: 1) Single-pronunciation character mode: refer to Figure 4 At this point, the input state of the phonetic character is such that only the initial consonant input box contains the phonetic character, while the final and tone input boxes are left empty; the system directly uses the complete Cantonese pinyin of the phonetic character as the output result.

[0034] 2) Dual-phonetic character mode: Refer to Figure 5 At this point, the input state of the phonetic characters is such that both the initial and final input boxes contain phonetic characters, while the tone input box is left empty. The system extracts the initial from the former, the final from the latter, and the tone, and combines them to generate the target Cantonese phonetic character.

[0035] 3) Three-syllable phonetic character model: refer to Figure 6 At this point, the input state of the phonetic characters is such that all three input boxes contain the phonetic characters. The system extracts the corresponding parts and combines them to generate the Cantonese pinyin that matches the target pronunciation.

[0036] In some embodiments, when the phonetic mode is a zero-initial phonetic mode, the target Cantonese syllable information of each phonetic character is extracted based on the number of each phonetic character, the input position of each phonetic character, and the phonetic mode, including: S401. Obtain the quantity of each phonetic character; S402. When there is only one phonetic character, determine the target final and target tone based on the final and tone of the phonetic character located in the final input box. S403. When there are two Zhuyin characters, determine the target final based on the final of the Zhuyin character in the final input box, and determine the target tone based on the tone of the Zhuyin character in the tone input box.

[0037] Specifically, in this embodiment, if the Cantonese pronunciation of the target pronunciation is a zero-initial structure (i.e., with a final but no initial), then single-character or two-character phonetic characters can be selected to complete the phonetic annotation based on the number of phonetic characters. The corresponding input mode rules are as follows: 1) Single-pronunciation character mode: refer to Figure 7 At this point, the input state of the phonetic character is such that only the phonetic character exists in the final input box, while the initial and tone input boxes are left empty; the system directly takes the final and tone of the phonetic character and generates a Cantonese pinyin with zero initial.

[0038] 2) Dual-phonetic character mode: Refer to Figure 8At this point, the input state of the phonetic characters is such that both the vowel input box and the tone input box contain the phonetic characters, while the initial input box is left empty. The system combines the corresponding vowel and tone to generate a Cantonese phonetic character with zero initial consonant.

[0039] In some embodiments, when the phonetic mode is a special nasal phonetic mode, the target Cantonese syllable information of each phonetic character is extracted based on the number of each phonetic character, the input position of each phonetic character, and the phonetic mode, including: S501. Determine the target initial consonant based on the initial consonant of the phonetic character located in the initial consonant input box, and determine the target tone based on the tone of the phonetic character located in the tone input box.

[0040] S104. Generate the target Cantonese pinyin based on the target Cantonese syllable information of each phonetic character; The number of phonetic characters ranges from one to three. The phonetic mode is one of the following: regular phonetic mode, zero-initial phonetic mode, and special nasal phonetic mode. The target Cantonese syllable information includes at least two of the target initial, target final, and target tone. The input position of the phonetic character includes at least one of the initial input box, final input box, and tone input box.

[0041] Specifically, in this embodiment, if the Cantonese pronunciation of the target pronunciation is composed of a special nasal initial consonant + tone, single-character or two-character phonetic characters can be selected to complete the phonetic annotation based on the number of phonetic characters. When using a single phonetic character, the phonetic annotation mode is the aforementioned conventional phonetic annotation mode, referring to... Figure 9 The rules for extracting syllable information are consistent with the aforementioned rules for extracting the target pronunciation of complete structures, and will not be repeated here.

[0042] When there are two phonetic characters, the corresponding input mode rules are as follows: (Refer to...) Figure 10 At this point, the input state for Zhuyin characters is such that both the initial consonant input box and the tone input box contain Zhuyin characters, while the final vowel input box is left empty. The system combines the corresponding final vowel and tone to generate a Cantonese pinyin character with zero initial consonant.

[0043] In some embodiments, the Cantonese pinyin lookup method further includes: S601. Display the audio playback button for the target Cantonese pinyin through the user interface; S602, In response to the user's click operation on the audio playback button, play the audio corresponding to the target Cantonese pinyin.

[0044] Specifically, in this embodiment, the user can verify the pronunciation of the generated Cantonese pinyin. An audio playback control is configured in the processing result area; clicking it plays the standard pronunciation of the pinyin for comparison and verification of its consistency with the target pronunciation. For example, after the pronunciation verification is correct, the generated pinyin will be automatically copied to the clipboard, allowing the user to directly paste and reuse it in any editing scenario. If it is necessary to query and enter the next unknown pronunciation, clicking the "Clear Content" button will clear all input and result information. The above steps can be repeated to complete a new round of phonetic transcription and pinyin generation.

[0045] Please see Figure 11 This application also provides a Cantonese pinyin lookup device based on fanqie phonetic notation, which can implement the above method. The device includes: The phonetic character input module is used to obtain several phonetic characters input by the user; The phonetic mode determination module is used to determine the phonetic mode based on the number of each phonetic character and its input position. The syllable information extraction module is used to extract the target Cantonese syllable information of each phonetic character based on the number of each phonetic character, the input position of each phonetic character, and the phonetic mode. The target Cantonese pinyin generation module is used to generate the target Cantonese pinyin based on the target Cantonese syllable information of each phonetic character; The number of phonetic characters ranges from one to three. The phonetic mode is one of the following: regular phonetic mode, zero-initial phonetic mode, and special nasal phonetic mode. The target Cantonese syllable information includes at least two of the target initial, target final, and target tone. The input position of the phonetic character includes at least one of the initial input box, final input box, and tone input box.

[0046] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0047] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0048] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0049] Please see Figure 12 , Figure 12The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes: The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 902 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 902 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and is called and executed by the processor 901 using the methods described in the embodiments of this application. The input / output interface 903 is used to implement information input and output; The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904); The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.

[0050] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0051] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0052] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0053] It is understood that the content of the above method embodiments is applicable to the embodiments of this program product. The specific functions implemented by the embodiments of this program product are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0054] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0055] This application provides a Cantonese pinyin search method and related equipment based on fanqie phonetic notation. The method obtains the phonetic characters input by the user and determines the phonetic pattern based on the number and input position of each character. This allows the user to express the compositional relationship of the target pronunciation using one to three phonetic characters with known pronunciations, without having to directly input the complete Cantonese pinyin code, thus lowering the memory threshold for users learning Cantonese pinyin. By extracting target Cantonese syllable information based on the number, input position, and phonetic pattern of each character, the system can determine the corresponding information of the target initial, target final, and target tone from the phonetic characters according to conventional phonetic patterns, zero-initial phonetic patterns, or special nasal phonetic patterns. This adapts to the pinyin search needs under different Cantonese syllable structures, ensuring improved accuracy in Cantonese pinyin search.

[0056] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0057] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0058] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0059] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0060] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0061] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0062] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0063] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0064] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0065] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0066] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A method for searching Cantonese pinyin based on fanqie phonetic notation, characterized in that, Get several phonetic characters input by the user; The phonetic mode is determined based on the number of each phonetic character and its input position. The target Cantonese syllable information of each phonetic character is extracted based on the number of each phonetic character, the input position of each phonetic character, and the phonetic mode. Generate the target Cantonese pinyin based on the target Cantonese syllable information of each of the aforementioned phonetic characters; The number of phonetic characters ranges from one to three. The phonetic mode is one of the following: regular phonetic mode, zero-initial phonetic mode, and special nasal phonetic mode. The target Cantonese syllable information includes at least two of the target initial consonant, target final vowel, and target tone. The input position of the phonetic character includes at least one of the following: initial consonant input box, final vowel input box, and tone input box.

2. The Cantonese pinyin lookup method based on fanqie phonetic notation according to claim 1, characterized in that, The Cantonese pinyin lookup method based on fanqie phonetic notation also includes: Determine whether each of the stated phonetic characters is a polyphonic character; When the phonetic character is a polyphonic character, a list of candidate pronunciations for the phonetic character is displayed through the user interface. The user selects the target pronunciation from the list of candidate pronunciations and determines the target pronunciation as the pronunciation of the phonetic character.

3. The Cantonese pinyin lookup method based on fanqie phonetic notation according to claim 1, characterized in that, The step of determining the phonetic mode based on the number of phonetic characters and their input positions includes: Obtain the input position of each of the aforementioned phonetic characters; When the input position of each of the phonetic characters includes only the initial consonant input box, or only the initial consonant input box and the final vowel input box, or includes the initial consonant input box, the final vowel input box and the tone input box, the phonetic mode is determined to be the conventional phonetic mode. When the input position of each of the phonetic characters includes only the vowel input box, or only the vowel input box and the tone input box, the phonetic mode is determined to be the zero-initial phonetic mode; When the input position of each of the phonetic characters only includes the initial consonant input box and the tone input box, the phonetic mode is determined to be the special nasal phonetic mode.

4. The Cantonese pinyin lookup method based on fanqie phonetic notation according to claim 3, characterized in that, When the phonetic transcription mode is the conventional phonetic transcription mode, the step of extracting the target Cantonese syllable information of each phonetic character based on the number of each phonetic character, the input position of each phonetic character, and the phonetic transcription mode includes: Obtain the number of each of the aforementioned phonetic characters; When the number of each of the aforementioned phonetic characters is one, the target initial, the target final, and the target tone are determined based on the initial, final, and tone of the phonetic character located in the initial input box; When there are two phonetic characters, the target initial is determined based on the initial of the phonetic character located in the initial input box, and the target final and the target tone are determined based on the final and tone of the phonetic character located in the final input box. When there are three phonetic characters, the target initial is determined based on the initial of the phonetic character located in the initial input box, the target final is determined based on the final of the phonetic character located in the final input box, and the target tone is determined based on the tone of the phonetic character located in the tone input box.

5. The Cantonese pinyin lookup method based on fanqie phonetic notation according to claim 3, characterized in that, When the phonetic mode is the zero-initial phonetic mode, the step of extracting the target Cantonese syllable information of each phonetic character based on the number of each phonetic character, the input position of each phonetic character, and the phonetic mode includes: Obtain the number of each of the aforementioned phonetic characters; When the number of each of the aforementioned phonetic characters is one, the target final and the target tone are determined based on the final and tone of the phonetic character located in the final input box; When there are two phonetic characters, the target final is determined based on the final of the phonetic character located in the final input box, and the target tone is determined based on the tone of the phonetic character located in the tone input box.

6. The Cantonese pinyin lookup method based on fanqie phonetic notation according to claim 3, characterized in that, When the phonetic notation mode is the special nasal phonetic notation mode, the step of extracting the target Cantonese syllable information of each phonetic character based on the number of each phonetic character, the input position of each phonetic character, and the phonetic notation mode includes: The target initial consonant is determined based on the initial consonant of the phonetic character located in the initial consonant input box, and the target tone is determined based on the tone of the phonetic character located in the tone input box.

7. The Cantonese pinyin lookup method based on fanqie phonetic notation according to claim 1, characterized in that, The Cantonese pinyin lookup method also includes: The audio playback button for the target Cantonese pinyin is displayed through the user interface; In response to the user's click on the audio playback button, the audio corresponding to the target Cantonese pinyin is played.

8. A Cantonese phonetic search device based on fanqie phonetic notation, characterized in that, The device includes: The phonetic character input module is used to obtain several phonetic characters input by the user; The phonetic mode determination module is used to determine the phonetic mode based on the number of each phonetic character and its input position. The syllable information extraction module is used to extract the target Cantonese syllable information of each of the phonetic characters based on the number of each phonetic character, the input position of each phonetic character, and the phonetic mode. The target Cantonese pinyin generation module is used to generate target Cantonese pinyin based on the target Cantonese syllable information of each of the aforementioned phonetic characters; The number of phonetic characters ranges from one to three. The phonetic mode is one of the following: regular phonetic mode, zero-initial phonetic mode, and special nasal phonetic mode. The target Cantonese syllable information includes at least two of the target initial consonant, target final vowel, and target tone. The input position of the phonetic character includes at least one of the following: initial consonant input box, final vowel input box, and tone input box.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.