Information processing method, device and storage medium
By converting the indexes of the character table and character array, the input first-class characters are automatically converted into second-class characters, which solves the problem of cumbersome input method switching in multilingual input, improves calculation efficiency and accuracy, and simplifies user operation.
Patent Information
- Application Number
- CN202111033081.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-03
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-09-03
AI Technical Summary
Switching input methods during multilingual input is cumbersome, especially in internet applications and back-end software, where users need to frequently switch input methods to input different character categories, leading to inconvenience.
By acquiring the first type of characters from the input information, the index result is determined using a character table and a character array, and the characters are automatically converted into the corresponding second type of characters without requiring the user to manually switch input methods.
It enables the output of different characters without requiring users to manually switch input methods, improving computational efficiency and accuracy, simplifying user operations, and enhancing the user experience.
Smart Images

Figure CN113778239B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular to an information processing method, device and storage medium. Background Art
[0002] During the information input process, the input method can support input in one language or in multiple languages, and the input of each language corresponds to an input method mode. When inputting information in multiple languages, it is necessary to switch the input method between multiple input method modes. However, the operation of switching input methods on electronic devices is more troublesome. For example, according to user usage habits, the input method often defaults to the Chinese input method. At this time, if the user needs to input pinyin, English, etc., it is also necessary to switch the input method of the keyboard to output the corresponding pinyin, English, etc. In particular, for the most widely used letter-based verification code verification method in Internet applications and mid- and back-end software, the user needs to enter the corresponding letters during verification in order to pass the verification, that is, the Chinese input method needs to be switched to the English input method. In this way, it is obvious that the way to switch the input method is more complicated, which brings inconvenience to the user operation. Summary of the invention
[0003] In view of the above technical problems existing in the prior art, the present invention provides an information processing method, device and storage medium, which can output characters completely different from those used during input without the user having to switch the character types.
[0004] In a first aspect, an embodiment of the present invention provides an information processing method, including:
[0005] Get the input information containing the first type of characters;
[0006] Determine an index result in a character table according to the first type of characters of the input information; wherein different first type characters in the character table correspond to different index results;
[0007] A match is performed within the character array according to the index result, and if a second type of characters that is different from and has a corresponding relationship with the first type of characters is confirmed, output information containing the second type of characters is output; wherein the character array is a sequence group corresponding to the second type of characters.
[0008] In some embodiments, determining an index result in a character table according to the first type of characters in the input information specifically includes:
[0009] Generate query information according to the code set corresponding to the first type of characters and the input information;
[0010] An index result is determined in the character table according to the query information.
[0011] In some embodiments, determining the index result in the character table according to the query information specifically includes:
[0012] Convert the code in the query information into a two-dimensional coordinate value;
[0013] An index result is determined in the character table constructed as a two-dimensional table according to the two-dimensional coordinate value, wherein the horizontal axis of the character table is a high-order byte axis and the vertical axis is a low-order byte axis.
[0014] In some embodiments, before obtaining the input information including the first category of characters, the method further includes:
[0015] generating verification information for verification, wherein the verification information includes the second type of characters;
[0016] The step of obtaining input information containing the first type of characters specifically includes:
[0017] Input information including the first category of characters input based on the second category of characters in the verification information is obtained.
[0018] In some embodiments, the method further comprises:
[0019] If the comparison result of the second type of characters in the output information and the second type of characters in the verification information is consistent, it is determined that the verification condition is met.
[0020] In some embodiments, the method further comprises:
[0021] In the case that the verification information includes the third type of characters, the third type of characters in the verification information are determined to be interference items, and the interference items included in the verification information for comparison with the output information are deleted.
[0022] In some embodiments, the method further comprises:
[0023] In a case where the input information contains a plurality of first-category characters, determining an input sequence of the plurality of first-category characters in the input information;
[0024] Generate a plurality of index results respectively corresponding to a plurality of first-category characters in the input sequence;
[0025] The plurality of index results are determined sequentially in the character array according to the input sequence.
[0026] In some embodiments, if the comparison result between the second type of characters in the output information and the second type of characters in the verification information passes, determining that the user identity meets the verification condition specifically includes:
[0027] In the case where the verification information includes multiple characters of the second category, determining multiple subsets that can be composed of the multiple characters of the second category of the verification information;
[0028] In a case where the set of multiple second-category characters in the output information is the subset, it is determined that the comparison result is passed.
[0029] In a second aspect, an embodiment of the present invention further provides an information processing device, including:
[0030] An acquisition module configured to acquire input information containing characters of the first category;
[0031] A processing module configured to input the input information into a character table to generate an index result; wherein different first-category characters in the character table correspond to different index results;
[0032] A match is performed within the character array according to the index result, and if a second type of characters that is different from and has a corresponding relationship with the first type of characters is confirmed, output information containing the second type of characters is output; wherein the character array is a sequence group corresponding to the second type of characters.
[0033] In a third aspect, an embodiment of the present invention further provides a storage medium storing a computer program, wherein the computer program implements the steps of the above-mentioned information processing method when executed by a processor.
[0034] Compared with the prior art, the beneficial effect of the embodiments of the present invention lies in that: after obtaining input information containing the first category of characters, the present invention determines to output output information containing the second category of characters according to the character table and the character array, thereby achieving the output of completely different characters from those used during input without the user having to switch the character types. The output information determined based on the character table and the character array has the advantages of high accuracy, saving computing resources, and improving computing efficiency, and the user experience is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In the drawings, which are not necessarily drawn to scale, the same reference numerals may describe similar parts in different views. The same reference numerals with letter suffixes or different letter suffixes may represent different instances of similar parts. The accompanying drawings generally illustrate various embodiments by way of example and not limitation, and together with the specification and claims, are used to illustrate the disclosed embodiments. When appropriate, the same reference numerals are used throughout the drawings to refer to the same or similar parts. Such embodiments are illustrative and are not intended to be exhaustive or exclusive embodiments of the present apparatus or method.
[0036] Figure 1is a first flow chart of the information processing method according to an embodiment of the present invention;
[0037] Figure 2 is a schematic diagram of a character table according to an embodiment of the present invention;
[0038] Figure 3 is a second flow chart of the information processing method according to an embodiment of the present invention;
[0039] Figure 4 The structure block diagram of the information processing device according to the embodiment of the present invention.
[0040] The components indicated by the reference numerals in the figures are:
[0041] 100 - information processing device; 101 - acquisition module; 102 - processing module; 103 - generation module. DETAILED DESCRIPTION
[0042] Various aspects and features of the present invention are described herein with reference to the accompanying drawings.
[0043] It should be understood that various modifications may be made to the embodiments of the invention herein. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the invention will occur to those skilled in the art.
[0044] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the general description of the invention given above and the detailed description of the embodiments given below, serve to explain the principles of the invention.
[0045] These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment given as a non-limiting example, with reference to the accompanying drawings.
[0046] It should also be understood that although the invention has been described with reference to certain specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the invention.
[0047] The above and other aspects, features and advantages of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
[0048] Specific embodiments of the present invention are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments invented are merely examples of the present invention, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present invention. Therefore, the specific structural and functional details invented herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present invention in a variety of ways with substantially any suitable detailed structure.
[0049] This specification may use phrases such as "in one embodiment", "in another embodiment", "in yet another embodiment", or "in other embodiments", which may each refer to one or more of the same or different embodiments according to the present invention.
[0050] Figure 1 It is a flowchart of the information processing method according to an embodiment of the present application. This information processing method can be applied to an application on any client, such as an application on a mobile terminal, an H5 page, a web application, and so on.
[0051] In a first aspect, an embodiment of the present invention provides an information processing method. As Figure 1 shown, the information processing method includes steps S101 to S103.
[0052] Step S101: Obtain input information containing a first type of character.
[0053] Specifically, the characters may include letters, numbers, arithmetic symbols, punctuation marks, functional symbols, and characters corresponding to different languages, etc. For the convenience of distinction and description, in the embodiments of the present application, the characters related to the input are referred to as the first type of characters. The first type of characters may be any type of characters among letters, numbers, arithmetic symbols, punctuation marks, functional symbols, and characters corresponding to different languages. The present application does not make specific limitations in this regard. For a better understanding of the technical solution of the present application, in the following, the first type of characters will be specifically described as Chinese characters.
[0054] Specifically, the above input information may be obtained based on a real-time input scenario, that is, the input information is related to the real-time input scenario. The real-time input scenario may be a password input scenario, a verification code input scenario, a specific field search scenario, a speech-to-text scenario, etc. The real-time input scenario may be different from or the same as the default input scenario of the information processing device.
[0055] Exemplarily, in the case of being in the default input scenario, the input method of the information processing device may be an input method related to the first type of characters, that is, a Chinese input method. When the information processing device generates a real-time input scenario that requires the user to input a password, input a verification code, or input a specific field search term, the information processing device is still in the Chinese input state. In this way, input information containing Chinese characters corresponding to the input target in the real-time input scenario will be obtained. For example, when the real-time input scenario is a verification code verification scenario, the user can input "XFDG" in the Chinese input state according to the input target "XFDG" presented on the information processing device, so that the information processing device obtains the Chinese input information corresponding to the input target "XFDG", such as the input information being "xian feng dao gu" in Chinese.
[0056] Step S102: Determine an index result in a character table according to the first type of characters in the input information; wherein, different index results correspond to different first type of characters in the character table.
[0057] Specifically, the information processing method may further include creating a character table related to the first type of characters, and each first type of character in the character table has a corresponding index result one by one. For example, if the input information is "xian feng dao gu", among which, the character "xian" has a corresponding first index result in the character table, the character "feng" has a corresponding second index result in the character table, and the character "dao" has a corresponding third index result in the character table. In this way, by using the character table to determine different index results corresponding to different first type of characters respectively, a large amount of storage space can be saved and the calculation complexity can be reduced.
[0058] Of course, in the case where the first type of characters are other types of characters such as English or numbers, the character table can have corresponding index results one by one, and the character table is created for the first type of characters.
[0059] Step S103: Perform matching within the character array according to the index result, and confirm to obtain a second type of characters that are different from the first type of characters and have a corresponding relationship, then output the output information including the second type of characters; wherein, the character array is a sequence group corresponding to the second type of characters.
[0060] For the convenience of distinction and description, in the embodiments of the present application, the characters related to the output are referred to as the second type of characters. The second type of characters can be any type of characters such as letters, numbers, operation symbols, punctuation marks, functional symbols, and characters corresponding to different languages. The present application does not make specific limitations in this regard. For a better understanding of the technical solution of the present application, the following will specifically describe the second type of characters as letters or pinyin composed of multiple letters.
[0061] Specifically, multiple second type of characters can be combined to form different strings. In the case where the second type of characters are letters, the string corresponding to the second type of characters can be understood as pinyin, and the pinyin has a corresponding relationship with Chinese. In this way, the above character array can be understood as storing the mapping relationship between each pinyin and the index result, and each index result has a corresponding pinyin, and the character array stores each pinyin in the form of a sequence group. Using this character array can reduce the storage complexity and reduce the time in the matching process, and improve the matching efficiency.
[0062] Specifically, the character array can store the mapping relationship between the indexed result and the second type of character. For example, when the input information is the character "仙", based on "仙", its corresponding first indexed result is determined in the character table. According to this first indexed result, the second type of character corresponding to the first indexed result can be determined in the character array. The second type of character can be "X" or "xian". In short, the second type of character included in the output information has a corresponding relationship with the first type of character included in the input information.
[0063] Exemplarily, when the input information is "仙", whether the second type of character in the output information is the abbreviated result "X" or the full - spelling result "xian" can be determined by the number of characters and the content of the above - mentioned input information. The number of characters can be understood as the number of operations when the user operates to select characters when generating the input information. For example, when the user operates to select the character "X", both the number of characters and the number of operations are one; when the user operates to select multiple characters "Xian", both the number of characters and the number of operations are four.
[0064] For example, when the user obtains the input information "仙" based on the input target "X", and the number of characters corresponding to the determined input information is one, then the second type of character in the output information is "X"; when the user obtains the input information "仙" based on the input target "Xian", and the number of characters corresponding to the determined input information is four, then the second type of character in the output information is "Xian".
[0065] Furthermore, when the user obtains the input information "仙风道骨" based on the input target "XFDG", and the number of characters corresponding to the determined input information is four, then the second type of character in the output information is generated for each first type of character in turn, that is, the second type of character in the output information is "XFDG"; when the user obtains the input information "仙风道骨" based on the input target "Xian FengDao Gu", and the number of characters corresponding to the determined input information is thirteen, then the second type of character in the output information is generated for each first type of character in turn, that is, the second type of character in the output information is "Xian Feng Dao Gu".
[0066] Thus, it can be seen that the second type of character included in the output information in the embodiments of the present application has a corresponding relationship with the number of characters and the content of the above - mentioned input information, and can further intelligently provide the user with output information containing the second type of character, simplifying the user's operation steps.
[0067] After obtaining the input information containing the first type of characters, the present invention determines the output information containing the second type of characters according to the character table and the character array, realizing that without the user's operation of switching the character types, it is possible to output completely different characters from those used during input, and the output information determined based on the character table and the character array has the advantages of high accuracy, saving computing resources, and improving computing efficiency, greatly enhancing the user experience.
[0068] In some embodiments, when matching within the character array according to the index result and no matching result can be obtained, the first type of characters in the input information are directly output.
[0069] Specifically, after the matching fails within the character array, the second type of characters corresponding to the first type of characters in the input information cannot be determined. At this time, the first type of characters in the input information are not processed and directly output as the output information.
[0070] In some embodiments, step S102: The determining the index result according to the first type of characters of the input information in the character table specifically includes steps S201 to S202.
[0071] Step S201: Generate query information according to the encoding set corresponding to the first type of characters and the input information.
[0072] Step S202: Determine the index result in the character table according to the query information.
[0073] Specifically, the above encoding set can be understood as a Chinese character encoding set, such as GBK, and GBK is a Chinese character encoding standard. This encoding set has different encodings for each first type of character. According to the input information and the encodings of the first type of characters contained in the input information in the encoding set, query information that can determine the index result in the character table is generated.
[0074] Exemplarily, taking the Chinese character encoding set GB2312 as an example, in this Chinese character encoding set, the encoding of the character "仙" is CFC9, and the index result corresponding to the encoding is determined in the character table according to this encoding.
[0075] In some embodiments, step S202: The determining the index result in the character table according to the query information specifically includes:
[0076] Convert the encoding in the query information into two-dimensional coordinate values;
[0077] Determine the index result in the character table constructed as a two-dimensional table according to the two-dimensional coordinate values, where the horizontal axis of the character table is the high-order byte axis and the vertical axis is the low-order byte axis.
[0078] Exemplarily, continuing with the Chinese character encoding set GB2312 as an example, in this Chinese character encoding set, the encoding of the character "仙" is "CFC9". Converting the encoding "CFC9" into a two-dimensional coordinate value expressed in decimal, the two-dimensional coordinate value is "207, 201". This two-dimensional coordinate value can be used as query information and input into the character table, and a unique index result corresponding to this two-dimensional coordinate value can be determined in the character table. As Figure 2 shown, Figure 2 Figure Figure 2 shows a schematic diagram of the character table according to an embodiment of the present application. In this character table, based on the two-dimensional coordinate value "207, 201", the index result "467" can be determined. Since the character array is a sequence group corresponding to the second type of characters, based on the index result "467", a matching result corresponding thereto can be matched within the character array, that is, the pinyin "xian".
[0079] It can be understood that "207" in the above two-dimensional coordinate value "207, 201" can be understood as the high-order byte axis, and "201" can be understood as the low-order byte axis. The above encoding is converted into a two-dimensional coordinate value, and a unique index result is determined in the character table through the two-dimensional coordinate value.
[0080] In some embodiments, as Figure 3 shown, before the step of obtaining the input information including the first type of characters (step S101), the method further includes step S301.
[0081] Step S301: Generate verification check information, where the check information includes the second type of characters.
[0082] Specifically, the check information can be generated based on scenarios such as a verification code input scenario, a password input scenario, etc. Taking the check information based on the verification code input scenario as an example, to verify the user's identity, the information processing device generates check information including a verification code, and this verification code can at least include a plurality of letters arranged in sequence, such as the verification code being "XFDG".
[0083] The step of obtaining the input information including the first type of characters (step S101) specifically includes step S302. Step S302: Obtain the input information including the first type of characters input based on the second type of characters in the check information.
[0084] Specifically, after the user receives the check information corresponding to the verification code, the user inputs "XFDG" according to this check information in the input method corresponding to the first type of characters, that is, inputs "XFDG" in the Chinese input method.
[0085] The above is based on the input information being obtained based on scenarios such as a verification code input scenario, a password input scenario, etc. The following embodiments of the present application will be described separately for the case where the input information is obtained based on a specific domain search scenario and based on a speech-to-text scenario.
[0086] Exemplarily, the information processing device may, in response to a search request sent in a specific field, receive input information containing a first type of character based on the search request. The input information may be related to the above-mentioned specific field and is input under a Chinese input method. For example, when the user sequentially confirms "TB" on the keyboard, the input information may be "Taobao" or "head", etc. At this time, the content related to the specific field can be selected from multiple first type of characters as the input information. For example, in the field of e-commerce platforms, "Taobao" will be selected as the input information, and in the medical field, "head" will be selected as the input information. In this way, it can better fit the search scenario of the user in a specific field and provide a better experience for the user.
[0087] Exemplarily, the information processing device may also acquire voice information, convert the voice information into text information, and use the text information as input information for input, so as to obtain input information containing a second type of character. In the scenario of voice-to-text conversion, it can be determined whether the second type of character is included in the user's voice information; when the second type of character is included in the user's input voice information and there is a first type of character that is homophonic with the second type of character, the second type of character in the voice information can be directly converted into its corresponding first type of character as the input information for presentation; when the second type of character is included in the user's input voice information and there is no first type of character that is homophonic with the second type of character, the second type of character in the voice information can be directly used as the input information for presentation.
[0088] Specifically, for example, the above voice information is "PCSD". At this time, it is determined that the second type of character included in the voice information is a letter. Among them, the character "P" has a corresponding first type of character "pi" in Chinese; the character "D" has a corresponding first type of character "di" in Chinese, while the characters "C" and "S" do not have corresponding first type of characters. Therefore, the result of converting the voice information into text may be "pi C S di", and this "pi C S di" can be used as input information for input.
[0089] In some embodiments, the method further includes:
[0090] If the comparison result between the second type of character in the output information and the second type of character in the verification information is consistent, it is determined that the verification condition is met. Here, "consistent" can be understood as that the second type of character in the output information is exactly the same as the second type of character in the verification information.
[0091] In some embodiments, when the comparison result between the second type of characters in the output information and the second type of characters in the verification information meets the preset condition, it is determined that the verification condition is met. The second type of characters in the output information may not completely correspond to the second type of characters in the verification information, and partial correspondence can determine that the verification condition is met, thereby confirming the user's identity.
[0092] Exemplarily, the above-mentioned preset condition may be satisfying the character contrast ratio, such as the character contrast ratio is 60%, the above-mentioned verification information is "XFDG", and the second type of characters in the output information is "XDG". In this way, it can be determined that the character contrast ratio between the second type of characters in the output information and the second type of characters in the verification information is 75%. Since it is higher than the character contrast ratio of 60%, it can be certified that the verification conditions are met.
[0093] Specifically, when the comparison result of the second type of characters in the output information and the second type of characters in the verification information is inconsistent, the preset condition is not met, and it is determined that the user does not meet the verification condition, the user identity verification fails.
[0094] In some embodiments, the method further includes: determining whether the verification information contains third type of information.
[0095] If so, that is, when the verification information includes the third type of characters, it is determined that the third type of characters in the verification information are interference items, and the interference items included in the verification information used for comparison with the output information are deleted.
[0096] If not, it is possible to continue to determine whether the verification information contains characters of the fourth category, or directly confirm that the characters in the verification information are all characters of the second category. The fourth category characters are characters different from the third category characters, which are also interference items in the verification information, and the fourth category characters may be symbols.
[0097] Specifically, the third category of characters may be completely different from the first category of characters and the second category of characters. The third category of characters may be letters, numbers, operation symbols, punctuation marks, functional symbols, and any character in texts corresponding to different languages. The present application does not make specific limitations on this. In order to better understand the technical solution of the present application, the third category of characters will be specifically described as numbers below.
[0098] Specifically, when the input method of the information processing device is a Chinese input method, and the verification information contains the third type of characters, the third type of characters will interfere with the input information. For example, if the verification information is "xf3g", then if "xf" is entered in the Chinese input method and then "3" is entered, the third candidate object in the Chinese candidate column corresponding to "xf" will be selected, such as "consumption", and if "g" is entered after "3", "consumption view" may be generated. It can be seen that the number of characters actually entered by the user is 4, and the number of characters finally generated is 3. It is determined that the object entered by the user when generating the input information contains the third type of characters, and the third type of characters in the verification information are determined as interference items.
[0099] Specifically, when it is determined that the input information contains characters of the third category, the third category characters contained in the verification information used for comparison with the output information can be deleted. For example, if the initial verification information is "xf3g", then the verification information used for comparison with the output information is "xfg". This can eliminate the influence of interference items on the comparison results of the output information and the verification information.
[0100] To further illustrate, based on the input information of "consumption view", the output information "xfg" will be generated, and the output information "xfg" will be compared with the verification information "xfg" used for comparison with the output information. At this time, the third type of characters in the initial verification information have been deleted, and the second type of characters in the output information and the second type of characters in the verification information are determined to be matched. The result can be determined to meet the verification conditions, thereby confirming the user's identity. In this way, the interference items contained in the verification information used for comparison with the output information are deleted, and the second type of characters in the output information obtained are compared with the second type of characters in the verification information with the interference items deleted, and it is determined whether the verification conditions are met.
[0101] In some embodiments, the method further comprises:
[0102] In a case where the input information contains a plurality of first-category characters, determining an input sequence of the plurality of first-category characters in the input information;
[0103] Generate a plurality of index results respectively corresponding to a plurality of first-category characters in the input sequence;
[0104] The plurality of index results are determined sequentially in the character array according to the input sequence.
[0105] Specifically, when there are multiple first - type characters as described above, the input sequence can be determined according to the order of user input. For example, in the scenario of verifying user identity, based on the verification information "XFDG", the user sequentially inputs "X", "F", "D", and "G" in the Chinese input method. At this time, the input order of the multiple first - type characters is the input sequence, and the input information is the first - type characters corresponding to the verification information, that is, "xian feng dao gu". The information processing device can, according to the input information "xian feng dao gu", sequentially input the first - type characters "xian", "feng", "dao", and "gu" into the character table respectively, obtain four different index results, and sequentially match the four different index results in the character array to obtain four different matching results. Then, combined with the number of characters corresponding to the input information, that is, the number of operations when generating the input information "xian feng dao gu" is four times, the output information of the second - type characters corresponding to the four different matching results is output, that is, the output information "XFDG".
[0106] In this way, it is possible to directly output the output information containing character types different from those of the input information without switching the Chinese input method to the English input method, which simplifies the operation steps for outputting different types of characters.
[0107] In some embodiments, when the comparison result of the second - type characters in the output information and the second - type characters in the verification information passes, it is determined that the user identity meets the verification conditions. Specifically, it includes:
[0108] When there are multiple second - type characters included in the verification information, determine the multiple subsets that can be formed by the multiple second - type characters of the verification information;
[0109] When the set formed by the multiple second - type characters in the output information is the subset, determine that the comparison result passes.
[0110] Specifically, when the multiple second - type characters included in the verification information correspond to a pinyin composed of multiple letters, the pinyin corresponding to the multiple second - type characters can have multiple subsets. A subset can be understood as including any one or more characters among the multiple second - type characters. For example, if the verification information is "xian", the subsets of the multiple second - type characters in the verification information can be "xa", "xi", and "xia", etc.
[0111] Thus, when the set formed by the multiple second - type characters in the output information is a subset of the set formed by the multiple second - type characters in the verification information, it is still possible to determine the user's identity and determine that the comparison result passes.
[0112] In some embodiments, when the first type of character in the above input information is Chinese and the Chinese character is a polyphonic character, that is, when the first type of character in the input information has multiple second type of characters associated therewith, it may be determined whether the second type of character in the output information is a character associated with the first type of character in the input information; if so, it is determined that the output result of the output information is accurate and the verification is successful; if not, it is determined that the output result of the output information is inaccurate and the verification fails.
[0113] Exemplarily, the input information is "曾", and the pinyin associated with "曾" is "ceng" and "zeng". Based on this input information, multiple index results will be found in the first type of character table, and each index result corresponds to a different second type of character. One of the multiple is determined as the unique index result, and the second type of character is determined in the character array based on this index result. For example, if it is confirmed that "ceng" is the second type of character in the output information, and it is determined that this second type of character "ceng" is associated with the input information "曾", then it is determined that the output result of the output information is accurate and the verification is successful.
[0114] In a second aspect, an information processing device 100 is further provided in an embodiment of the present invention, as Figure 4 shown. The information processing device 100 includes an acquisition module 101 and a processing module 102. The acquisition module 101 is configured to acquire input information including a first type of character.
[0115] The processing module 102 is configured to input the input information into a character table to generate an index result; wherein, different index results correspond to different first type of characters in the character table;
[0116] Match according to the index result in a character array to confirm a second type of character that is different from the first type of character and has a corresponding relationship, and then output output information including the second type of character; wherein, the character array is a sequence group corresponding to the second type of character.
[0117] In some embodiments, the processing module 102 is further configured to:
[0118] Generate query information according to the coding set corresponding to the first type of character and the input information;
[0119] Determine an index result in the character table according to the query information.
[0120] In some embodiments, the processing module 102 is further configured to:
[0121] Convert the coding in the query information into two-dimensional coordinate values;
[0122] An index result is determined in the character table constructed as a two-dimensional table according to the two-dimensional coordinate value, wherein the horizontal axis of the character table is a high-order byte axis and the vertical axis is a low-order byte axis.
[0123] In some embodiments, the information processing device 100 further includes a generating module 103, the generating module 103 being configured to generate verification information for verification before obtaining the input information including the first type of characters, wherein the verification information includes the second type of characters;
[0124] The acquisition module 101 is further configured to: acquire input information containing first-category characters input based on the second-category characters in the verification information.
[0125] In some embodiments, the processing module 102 is further configured to:
[0126] If the comparison result of the second type of characters in the output information and the second type of characters in the verification information is consistent, it is determined that the verification condition is met.
[0127] In some embodiments, the processing module 102 is further configured to:
[0128] In the case where the verification information includes the third type of characters, the third type of characters in the input information are determined to be interference items, and the interference items included in the verification information used for comparison with the output information are deleted.
[0129] In some embodiments, the processing module 102 is further configured to:
[0130] In a case where the input information contains a plurality of first-category characters, determining an input sequence of the plurality of first-category characters in the input information;
[0131] Generate a plurality of index results respectively corresponding to a plurality of first-category characters in the input sequence;
[0132] The plurality of index results are determined sequentially in the character array according to the input sequence.
[0133] In some embodiments, the processing module 102 is further configured to:
[0134] In the case where the verification information includes multiple characters of the second category, determining multiple subsets that can be composed of the multiple characters of the second category of the verification information;
[0135] In a case where the set of multiple second-category characters in the output information is the subset, it is determined that the comparison result is passed.
[0136] In a third aspect, an embodiment of the present invention further provides a storage medium storing a computer program, wherein the computer program implements the steps of the above-mentioned information processing method when executed by a processor.
[0137] Note that, according to each unit in each embodiment of the present application, it can be implemented as a computer executable instruction stored on a memory, and the corresponding steps can be implemented when executed by a processor; it can also be implemented as hardware with corresponding logical computing capabilities; it can also be implemented as a combination of software and hardware (firmware). In some embodiments, the processor can be implemented as any one of FPGA, ASIC, DSP chip, SOC (system on chip), MPU (for example, but not limited to Cortex), etc. The processor can be communicatively coupled to the memory and configured to execute the computer executable instructions stored therein. The memory can include a read-only memory (ROM), a flash memory, a random access memory (RAM), a dynamic random access memory (DRAM) such as a synchronous DRAM (SDRAM) or a Rambus DRAM, a static memory (for example, a flash memory, a static random access memory), etc., on which computer executable instructions are stored in any format. The computer executable instructions can be accessed by the processor, read from the ROM or any other suitable storage location, and loaded into the RAM for execution by the processor to implement the wireless communication method according to each embodiment of the present application.
[0138] It should be noted that, among the various components of the system of the present application, the components are logically divided according to the functions to be implemented, but the present application is not limited to this, and the various components can be re-divided or combined as needed. For example, some components can be combined into a single component, or some components can be further decomposed into more sub-components.
[0139] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the system according to the embodiment of the present application. The present application can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form. In addition, the present application can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices can be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order.
[0140] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. The elements in the claims will be interpreted broadly based on the language adopted in the claims, and are not limited to the examples described in this specification or during the implementation of the application, and the examples will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.
[0141] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. For example, those of ordinary skill in the art can use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the application. This should not be interpreted as an intention that a disclosed feature that does not require protection is necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a specific disclosed embodiment. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently used as a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present application should be determined with reference to the attached claims and the full scope of equivalent forms granted by these claims.
[0142] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. An information processing method, comprising: Get the input information containing the first type of characters; Determine an index result in a character table according to the first type of characters of the input information; wherein different first type characters in the character table correspond to different index results; According to the index result, matching is performed in the character array, and it is confirmed that a second type of characters different from the first type of characters and having a corresponding relationship are obtained, and then output information containing the second type of characters is output; wherein the character array is a sequence group corresponding to the second type of characters, the character array stores a mapping relationship between the index result and the second type of characters, and the second type of characters has a corresponding relationship with the number of characters and the character content of the input information; The step of determining an index result in a character table according to the first type of characters in the input information specifically includes: Generate query information according to a code set corresponding to the first type of characters and the input information; wherein the code set has a different code for each first type of character; An index result is determined in the character table according to the query information.
2. The information processing method according to claim 1, wherein determining the index result in the character table according to the query information comprises: Convert the code in the query information into a two-dimensional coordinate value; An index result is determined in the character table constructed as a two-dimensional table according to the two-dimensional coordinate value, wherein the horizontal axis of the character table is a high-order byte axis and the vertical axis is a low-order byte axis.
3. The information processing method according to claim 1, before obtaining the input information containing the first type of characters, the method further comprises: generating verification information for verification, wherein the verification information includes the second type of characters; The step of obtaining input information containing the first type of characters specifically includes: Input information including the first category of characters input based on the second category of characters in the verification information is obtained.
4. The information processing method according to claim 3, further comprising: If the comparison result of the second type of characters in the output information and the second type of characters in the verification information is consistent, it is determined that the verification condition is met.
5. The information processing method according to claim 3, further comprising: In the case that the verification information includes the third type of characters, the third type of characters in the verification information are determined to be interference items, and the interference items included in the verification information for comparison with the output information are deleted.
6. The information processing method according to claim 1, further comprising: In a case where the input information contains a plurality of first-category characters, determining an input sequence of the plurality of first-category characters in the input information; Generate a plurality of index results respectively corresponding to a plurality of first-category characters in the input sequence; The plurality of index results are determined sequentially in the character array according to the input sequence.
7. The information processing method according to claim 4, wherein when the comparison result of the second type of characters in the output information and the second type of characters in the verification information is consistent, determining that the user identity meets the verification condition specifically comprises: In the case where the verification information includes a plurality of characters of the second category, determining a plurality of subsets that can be formed by the plurality of characters of the second category of the verification information; When the set consisting of a plurality of second-category characters in the output information is the subset, it is determined that the comparison results are consistent.
8. An information processing device, comprising: An acquisition module configured to acquire input information containing characters of the first category; A processing module configured to input the input information into a character table to generate an index result; wherein different first-category characters in the character table correspond to different index results; According to the index result, a match is performed in the character array, and it is confirmed that a second type of character that is different from the first type of character and has a corresponding relationship is obtained, and then output information containing the second type of character is output; wherein the character array is a sequence group corresponding to the second type of character, and the character array stores a mapping relationship between the index result and the second type of character, and the second type of character has a corresponding relationship with the number of characters and the character content of the input information; wherein, The processing module is further configured to: generate query information according to a code set corresponding to the first type of characters and the input information; wherein the code set has a different code for each first type of character; An index result is determined in the character table according to the query information.
9. A storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the information processing method according to any one of claims 1 to 7 are implemented.
