Information processing method, device and storage medium

文档序号:1951956 发布日期:2021-12-10 浏览:15次 中文

阅读说明:本技术 一种信息处理方法、设备以及存储介质 (Information processing method, device and storage medium ) 是由 张冠南 白路远 于 2021-09-03 设计创作,主要内容包括:本发明实施例提供了一种信息处理方法、设备以及存储介质,信息处理方法包括:获取输入的包含第一类字符的输入信息;根据输入信息的第一类字符在字符表确定索引结果;其中,字符表中对应不同的第一类字符均对应有不同的索引结果;根据索引结果在字符数组内进行匹配,确认查询得到与第一类字符不同且具有对应关系的包含第二类字符,则输出包含第二类字符的输出信息;其中,第二类字符和第一类字符不同且具有对应关系,字符数组为与第二类字符对应的序列组。实现了无需用户进行字符种类的切换操作,就能够输出与输入时所采用的完全不同的字符,且基于字符表和字符数组来确定的输出信息,具有高准确度、节约运算资源,以及提高运算效率的优点。(The embodiment of the invention provides an information processing method, equipment and a storage medium, wherein the information processing method comprises the following steps: acquiring input information containing first-class characters; determining an index result in a character table according to the first type of characters of the input information; wherein, different index results are corresponding to different first-class characters in the character table; matching in the character array according to the index result, confirming that the second type of characters which are different from the first type of characters and have corresponding relation are obtained by inquiry, and outputting output information containing the second type of characters; the second type of characters are different from the first type of characters and have corresponding relations, and the character array is a sequence group corresponding to the second type of characters. The method and the device have the advantages that completely different characters can be output from the input without switching the character types by a user, the output information is determined based on the character table and the character array, and the method and the device have the advantages of high accuracy, calculation resource saving and calculation efficiency improvement.)

1. An information processing method comprising:

acquiring input information containing first type characters;

determining an index result in a character table according to the first type of characters of the input information; wherein, the first type characters corresponding to different characters in the character table correspond to different index results;

matching in a character array according to the index result, confirming to obtain a second type of character which is different from the first type of character and has a corresponding relation, and outputting output information containing the second type of character; and the character array is a sequence group corresponding to the second type of characters.

2. The information processing method according to claim 1, wherein the determining an index result in a character table according to the first type of characters of the input information specifically includes:

generating query information according to the code set corresponding to the first type of characters and the input information;

and determining an index result in the character table according to the query information.

3. The information processing method according to claim 2, wherein the determining an index result in the character table according to the query information specifically includes:

converting codes in the query information into two-dimensional coordinate values;

and determining an index result 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 of the character table is a low-order byte axis.

4. The information processing method according to claim 1, before said acquiring input information containing characters of a first type, the method further comprising:

generating verification information for verification, wherein the verification information comprises the second type of characters;

the acquiring of the input information including the first type of characters specifically includes:

and acquiring input information which is input based on the second type of characters in the verification information and contains the first type of characters.

5. The information processing method according to claim 4, the method further comprising:

and if the comparison result of the second type of characters in the output information is consistent with the comparison result of the second type of characters in the verification information, determining that the verification condition is met.

6. The information processing method according to claim 4, the method further comprising:

and under the condition that the verification information contains a third type of characters, determining the third type of characters in the verification information as interference items, and deleting the interference items contained in the verification information for comparison with the output information.

7. The information processing method according to claim 1, the method further comprising:

determining an input sequence of a plurality of first-class characters in the input information under the condition that the input information contains a plurality of first-class characters;

generating a plurality of index results respectively corresponding to a plurality of first-class characters in the input sequence;

and sequentially determining the plurality of index results in the character array according to the input sequence.

8. The information processing method according to claim 5, wherein when the comparison result between the second type of character in the output information and the second type of character in the verification information passes, determining that the user identity meets the verification condition specifically includes:

determining a plurality of subsets which can be formed by a plurality of second characters of the check information under the condition that the second characters of the check information are multiple;

and determining that the comparison result passes under the condition that a set formed by a plurality of second-class characters in the output information is the subset.

9. An information processing apparatus comprising:

the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is configured to acquire input information containing first characters;

the processing module is configured to input the input information into a character table and generate an index result; wherein, the first type characters corresponding to different characters in the character table correspond to different index results;

matching in a character array according to the index result, confirming to obtain a second type of character which is different from the first type of character and has a corresponding relation, and outputting output information containing the second type of character; and the character array is a sequence group corresponding to the second type of characters.

10. A storage medium storing a computer program which, when executed by a processor, implements the steps of the information processing method of any one of claims 1 to 8.

Technical Field

The present invention relates to the field of communications technologies, and in particular, to an information processing method, an information processing apparatus, and a storage medium.

Background

In the information input process, the input method can support the input of one language or multiple languages, and the input of each language corresponds to one input method mode. When information in a plurality of languages is input, it is necessary to switch input methods between a plurality of input method modes. However, the operation of switching the input method on the electronic device is troublesome, for example, according to the user's habit, the input method is often defaulted to be a chinese input method, and at this time, if the user needs to input pinyin, english, etc., the user also needs to switch the input method of the keyboard to be able to output the corresponding pinyin, english, etc. Particularly, for internet applications and mid-background software, the verification method of the most widely applied alphabetic verification code is adopted, and a user can pass the verification only by inputting a corresponding letter during the verification, namely, the Chinese input method needs to be switched to the English input method. Thus, obviously, the mode operation of switching the input method is complicated, and inconvenience is brought to the user operation

Disclosure of Invention

In view of the above-mentioned technical problems in the prior art, the present invention provides an information processing method, apparatus, and storage medium capable of outputting a character completely different from that used in input without requiring a user to perform a character type switching operation.

In a first aspect, an embodiment of the present invention provides an information processing method, including:

acquiring input information containing first type characters;

determining an index result in a character table according to the first type of characters of the input information; wherein, the first type characters corresponding to different characters in the character table correspond to different index results;

matching in a character array according to the index result, confirming to obtain a second type of character which is different from the first type of character and has a corresponding relation, and outputting output information containing the second type of character; and the character array is a sequence group corresponding to the second type of characters.

In some embodiments, the determining an index result in a character table according to the first type of characters of the input information specifically includes:

generating query information according to the code set corresponding to the first type of characters and the input information;

and determining an index result in the character table according to the query information.

In some embodiments, the determining an index result in the character table according to the query information specifically includes:

converting codes in the query information into two-dimensional coordinate values;

and determining an index result 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 of the character table is a low-order byte axis.

In some embodiments, before the obtaining the input information including the first type of character, the method further comprises:

generating verification information for verification, wherein the verification information comprises the second type of characters;

the acquiring of the input information including the first type of characters specifically includes:

and acquiring input information which is input based on the second type of characters in the verification information and contains the first type of characters.

In some embodiments, the method further comprises:

and if the comparison result of the second type of characters in the output information is consistent with the comparison result of the second type of characters in the verification information, determining that the verification condition is met.

In some embodiments, the method further comprises:

and under the condition that the verification information contains a third type of characters, determining the third type of characters in the verification information as interference items, and deleting the interference items contained in the verification information for comparison with the output information.

In some embodiments, the method further comprises:

determining an input sequence of a plurality of first-class characters in the input information under the condition that the input information contains a plurality of first-class characters;

generating a plurality of index results respectively corresponding to a plurality of first-class characters in the input sequence;

and sequentially determining the plurality of index results in the character array according to the input sequence.

In some embodiments, when the comparison result between the second type of character in the output information and the second type of character in the verification information passes, determining that the user identity meets the verification condition specifically includes:

determining a plurality of subsets which can be formed by a plurality of second characters of the check information under the condition that the second characters of the check information are multiple;

and determining that the comparison result passes under the condition that a set formed by a plurality of second-class characters in the output information is the subset.

In a second aspect, an embodiment of the present invention further provides an information processing apparatus, including:

the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is configured to acquire input information containing first characters;

the processing module is configured to input the input information into a character table and generate an index result; wherein, the first type characters corresponding to different characters in the character table correspond to different index results;

matching in a character array according to the index result, confirming to obtain a second type of character which is different from the first type of character and has a corresponding relation, and outputting output information containing the second type of character; and the character array is a sequence group corresponding to the second type of characters.

In a third aspect, an embodiment of the present invention further provides a storage medium storing a computer program, where the computer program is executed by a processor to implement the steps of the information processing method.

Compared with the prior art, the embodiment of the invention has the beneficial effects that: according to the method and the device, after the input information containing the first type of characters is obtained, the output information containing the second type of characters is determined and output according to the character table and the character array, the purpose that completely different characters used in input can be output without the need of switching the character types by a user is achieved, the output information determined based on the character table and the character array has the advantages of being high in accuracy, saving operation resources and improving operation efficiency, and the use experience of the user is greatly improved.

Drawings

In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. Like reference numerals having letter suffixes or different letter suffixes may represent different instances of similar components. The drawings illustrate various embodiments generally by way of example and not by way of limitation, and together with the description and claims serve to explain the disclosed embodiments. The same reference numbers will be used throughout the drawings to refer to the same or like parts, where appropriate. Such embodiments are illustrative, and are not intended to be exhaustive or exclusive embodiments of the present apparatus or method.

FIG. 1 is a first flowchart of an information processing method according to an embodiment of the present invention;

FIG. 2 is a diagram of a character table according to an embodiment of the present invention;

FIG. 3 is a second flowchart of an information processing method according to an embodiment of the present invention;

fig. 4 is a block diagram of an information processing apparatus according to an embodiment of the present invention.

The members denoted by reference numerals in the drawings:

100-an information processing apparatus; 101-an acquisition module; 102-a processing module; 103-a generation module.

Detailed Description

Various aspects and features of the present invention are described herein with reference to the drawings.

It will be understood that various modifications may be made to the embodiments of the invention herein. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Other modifications will occur to those skilled in the art which are within the scope and spirit of the invention.

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and, together with a general description of the invention given above, and the detailed description of the embodiments given below, serve to explain the principles of the invention.

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.

It is also to be understood that although the invention has been described with reference to specific examples, those skilled in the art are able to ascertain many other equivalents to the practice of the invention.

The above and other aspects, features and advantages of the present invention will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

Specific embodiments of the present invention are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the invention, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the invention in unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present invention in virtually any appropriately detailed structure.

The specification may use the phrases "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 in accordance with the invention.

Fig. 1 is a flowchart of an information processing method according to an embodiment of the present application, where the information processing method is applicable to an application on any client, such as an application on a mobile terminal, an H5 page, a web application, and the like.

In a first aspect, an embodiment of the present invention provides an information processing method, as shown in fig. 1, the information processing method includes steps S101 to S103.

Step S101: input information including a first type of character is obtained.

Specifically, the characters may include letters, numbers, operation symbols, punctuation marks, functional symbols, and words corresponding to different languages, etc. For the sake of distinction and description, the characters related to the input are referred to as the first type characters in the embodiments of the present application. The first type of characters may be any one of letters, numbers, operation symbols, punctuation marks, functional symbols and characters corresponding to different languages, which is not specifically limited in this application.

Specifically, the input information may be acquired based on a real-time input scenario, that is, the input information is related to the real-time input scenario. The real-time input scene can be a password input scene, a verification code input scene, a specific field search scene, a voice-to-text scene and the like. The real-time input scenario may be different from or the same as the default input scenario of the information processing apparatus.

For example, in the case of a default input scenario, the input method of the information processing apparatus may be an input method related to the first type of characters, i.e., a chinese input method, and when the information processing apparatus generates a real-time input scenario requiring a user to input a password, input a verification code, or input a search term in a specific field, the information processing apparatus is still in a chinese input state, and thus input information containing chinese corresponding to an input target in the real-time input scenario will be acquired. For example, the real-time input scenario is a scenario of verification code verification, and the user can input "XFDG" in a chinese input state according to the verification code whose input target is "XFDG" presented on the information processing apparatus, so that the information processing apparatus acquires chinese input information corresponding to the input target "XFDG", such as "fairway bone" indicated in chinese.

Step S102: determining an index result in a character table according to the first type of characters of the input information; wherein, the first type characters corresponding to different characters in the character table all correspond to different index results.

Specifically, the information processing method may further include creating a character table related to the first type of characters, where each first type of character in the character table has an index result corresponding to one of the first type of characters, for example, the input information is "fairway bone", where a character of "xian" has a first index result corresponding to the character in the character table, a character of "wind" has a second index result corresponding to the character in the character table, and a character of "dao" has a third index result corresponding to the character in the character table, and thus, a large amount of storage space can be saved and calculation complexity can be reduced in a manner that the character table can determine different index results corresponding to different first type of characters, respectively.

Of course, in the case where the first type of character is an english character or a numeric character, the character table created for the first type of character can correspond to the index results corresponding to the first type of character.

Step S103: matching in a character array according to the index result, confirming to obtain a second type of character which is different from the first type of character and has a corresponding relation, and outputting output information containing the second type of character; and the character array is a sequence group corresponding to the second type of characters.

For the sake of distinction and description, the characters related to the output are referred to as the second type characters in the embodiments of the present application. The second type of characters may be any one of letters, numbers, operation symbols, punctuation marks, functional symbols and characters corresponding to different languages, which is not specifically limited in this application, and in order to better understand the technical scheme of the present application, the following description will specifically describe the pinyin with the second type of characters as letters or composed of a plurality of letters.

Specifically, a plurality of second-type characters may be combined to form different character strings, and in the case where the second-type characters are letters, the character strings corresponding to the second-type characters may be understood as pinyin, which has a correspondence with chinese. Thus, the character array can be understood as storing the mapping relationship between each pinyin and the index result, each index result has the corresponding pinyin, and the character array stores each pinyin in the form of a sequence group. By adopting the character number, the storage complexity can be reduced, the time in the matching process can be reduced, and the matching efficiency can be improved.

Specifically, the character array may store a mapping relationship between the index result and the second type of character, for example, when the input information is a character of "xian", a first index result corresponding to the character may be determined in the character table based on "xian", a second type of character corresponding to the first index result may be determined in the character array according to the first index result, the second type of character may be "X" or "xian", and 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.

For example, in the case that the input information is "immortal", whether the second type of characters of the output information is specifically an abbreviated result "X" or a full spelling result "xian" may be determined by the number of characters and character contents of the input information, where the number of characters is understood as the number of times of operations performed by the user to select a character when generating the input information, such as when the user operates to select the character "X", both the number of characters and the number of times of operations are one; when the user operates to select a plurality of characters "Xian", the number of characters and the number of operations are four.

For example, when the input information acquired by the user based on the input target "X" is "immortal" and the number of characters corresponding to the determined input information is one, the second type of characters in the output information is "X"; when the input information acquired by the user based on the input target "Xian" is "Xian" and it is determined that the number of characters corresponding to the input information is four, the second type of characters in the output information is "Xian",

further, when the input information acquired by the user based on the input target "XFDG" is "fairway bone", and the number of characters corresponding to the input information is determined to be four, a second type of characters in the output information is sequentially generated for each first type of characters, that is, the second type of characters in the output information is "XFDG"; when the input information acquired by the user based on the input target "Xian Feng Dao Gu" is "fairway bone", and the number of characters corresponding to the input information is determined to be thirteen, the second type of characters in the output information are sequentially generated for each first type of characters, that is, the second type of characters in the output information is "Xian Feng Dao Gu".

Therefore, the second type of characters contained in the output information have the corresponding relation with the character quantity and the character content of the input information, the output information containing the second type of characters can be further intelligently provided for a user, and the operation steps of the user are simplified.

According to the method and the device, after the input information containing the first type of characters is obtained, the output information containing the second type of characters is determined and output according to the character table and the character array, the purpose that completely different characters used in input can be output without the need of switching the character types by a user is achieved, the output information determined based on the character table and the character array has the advantages of being high in accuracy, saving operation resources and improving operation efficiency, and the use experience of the user is greatly improved.

In some embodiments, when matching is performed in the character array according to the index result and a matching result cannot be obtained, the first type of characters in the input information are directly output.

Specifically, after the matching fails in the character array, the second type of character corresponding to the first type of character of the input information cannot be determined, and at this time, the first type of character in the input information is directly output as the output information without being processed.

In some embodiments, step S102: the determining an index result in a character table according to the first type of characters of the input information specifically includes steps S201 to S202.

Step S201: and generating query information according to the code set corresponding to the first type of characters and the input information.

Step S202: and determining an index result in the character table according to the query information.

In particular, the above-mentioned encoding set can be understood as a chinese character encoding set, such as GBK, which is a chinese character encoding standard. The code set has different codes for each first type of character, and query information capable of determining an index result in a character table is generated according to the input information and the codes of the first type of characters contained in the input information in the code set.

Illustratively, taking the chinese character encoding set GB2312 as an example, the code of the "xian" character in the chinese character encoding set is CFC9, and the index result corresponding to the code is determined in the character table according to the code.

In some embodiments, step S202: the determining an index result in the character table according to the query information specifically includes:

converting codes in the query information into two-dimensional coordinate values;

and determining an index result 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 of the character table is a low-order byte axis.

Illustratively, continuing to take the chinese character encoding set GB2312 as an example, the code of the "xian" character in the chinese character encoding set is "CFC 9", the code "CFC 9" is converted into a two-dimensional coordinate value expressed in decimal, the two-dimensional coordinate value is "207, 201", the two-dimensional coordinate value may be input as query information into a character table, and a unique index result corresponding to the two-dimensional coordinate value may be determined in the character table. As shown in fig. 2, fig. 2 is a schematic diagram of a character table in an embodiment of the present application, in which an index result "467" can be determined according to two-dimensional coordinate values "207, 201". Since the character array is a sequence group corresponding to the second type of characters, the matching result, i.e. the pinyin "xian", corresponding to the character array can be matched in the character array based on the index result "467".

It is to be understood that "207" in the above-mentioned two-dimensional coordinate values "207, 201" may be understood as a higher byte axis, and "201" may be understood as a lower byte axis. The codes are converted into two-dimensional coordinate values, and a unique index result is determined in the character table through the two-dimensional coordinate values.

In some embodiments, as shown in fig. 3, before the obtaining the input information containing the first type of characters (step S101), the method further comprises step S301.

Step S301: and generating verification information for verification, wherein the verification information comprises the second type of characters.

Specifically, the check information may be generated based on a scenario of an authentication code input scenario, a password input scenario, and the like, and taking the scenario of the check information based on the authentication code input scenario as an example, to verify the identity of the user, the information processing apparatus generates the check information including the authentication code, where the authentication code may at least include a plurality of sequentially arranged letters, and for example, the authentication code is "XFDG".

The step of acquiring input information including a first type of characters (step S101) specifically includes step S302. Step S302: and acquiring input information which is input based on the second type of characters in the verification information and contains the first type of characters.

Specifically, after receiving the verification information corresponding to the verification code, the user inputs "XFDG" according to the verification information under the input method corresponding to the first type of characters, that is, inputs "XFDG" under the chinese input method.

The above description is that the input information is acquired based on a scenario such as a verification code input scenario and a password input scenario, and the following embodiments of the present application describe that the input information is acquired based on a specific field search scenario and acquired based on a speech-to-text scenario, respectively.

For example, the information processing apparatus may receive, based on a search request sent in a specific domain, input information including a first type of character, where the input information may be related to the specific domain, and the input information is input under a chinese input method, such as "TB" sequentially confirmed by a user on a keyboard, where the input information may be "pan-bao", or "header", and the like, where content related to the specific domain may be selected as the input information from a plurality of first type of characters, such as "pan-bao" is selected as the input information in the e-commerce platform domain, and "header" is selected as the input information in the medical domain, so that a search scene of the user in the specific domain can be better fitted, and a better experience is provided for the user.

For example, the information processing apparatus may further acquire voice information, convert the voice information into text information, and input the text information as input information, thereby obtaining input information including the second type of characters. In the scene of converting voice into text, whether the voice information of the user contains the second type of characters can be judged; when the voice information input by the user contains the second type of characters and has the first type of characters which are homophonic with the second type of characters, the second type of characters in the voice information can be directly converted into the first type of characters corresponding to the second type of characters to be used as input information for presentation; when the voice information input by the user contains the second type of characters and does not have the first type of characters which are homophonic with the second type of characters, the second type of characters in the voice information can be directly used as input information to be presented.

Specifically, for example, the voice message is "PCSD", and at this time, it is determined that the voice message includes a second type of character, which is a letter, where the character "P" has a first type of character "batch" corresponding thereto, which is chinese; the character "D" has a first type character "ground" in chinese corresponding thereto, and the characters "C" and "S" do not have a first type character corresponding thereto, and therefore, the result of converting the voice information into text may be "batch CS ground" which may be input as input information.

In some embodiments, the method further comprises:

and if the comparison result of the second type of characters in the output information is consistent with the comparison result of the second type of characters in the verification information, determining that the verification condition is met. Consistent is here understood to mean that the second type of character in the output information is identical to the second type of character in the check information.

In some embodiments, in the case that the comparison result of the second type of characters in the output information and the second type of characters in the verification information satisfies a preset condition, it is determined that the verification condition is met. The second type of characters in the output information can not completely correspond to the second type of characters in the verification information, and the verification condition can be determined to be met after partial correspondence is achieved, so that the identity of the user is confirmed.

For example, the preset condition may be that a character contrast ratio is satisfied, for example, the character contrast ratio is 60%, the verification information is "XFDG", the second type of character in the output information is "XDG", so that the character contrast ratio between the second type of character in the output information and the second type of character in the verification information can be determined to be 75%, and the verification condition can be authenticated as being higher than the character contrast ratio by 60%.

Specifically, when the comparison result of the second type of characters in the output information is inconsistent with the comparison result of the second type of characters in the verification information and does not meet the preset condition, it is determined that the user does not meet the verification condition, and the user identity verification fails.

In some embodiments, the method further comprises: and judging whether the check information contains the third type information.

If so, namely under the condition that the verification information contains the third type characters, determining the third type characters in the verification information as interference items, and deleting the interference items contained in the verification information for comparison with the output information.

If not, whether the check information contains the fourth type characters or not can be continuously judged, or whether the characters in the check information are the second type characters can be directly confirmed. The fourth type of characters are different from the third type of characters, and are also interference items in the verification information, wherein the fourth type of characters may be symbols.

Specifically, the third type of characters may be completely different from the first type of characters and the second type of characters, and the third type of characters may be any one of letters, numbers, operation symbols, punctuation marks, functional symbols, and characters corresponding to different languages.

Specifically, in the case where the input method of the information processing apparatus is a chinese input method and the verification information includes a third type of character, the third type of character may interfere with the input information, for example, if the verification information is "xf 3 g", and at this time, "xf" is input under the chinese input method and then "3" is input, a third candidate object in the chinese candidate column corresponding to "xf" is selected, for example, "consume", and "g" is input after "3" is input, and "consume view" may be generated. It can be seen that the number of characters actually input by the user is 4, the number of characters finally generated is 3, it is determined that the object input by the user when generating the input information contains a third type of characters, and the third type of characters in the verification information is determined as an interference item.

Specifically, in the case where it is determined that the input information includes the third type of characters, the third type of characters included in the verification information used for comparison with the output information may be deleted, and if the initial verification information is "xf 3 g", the verification information used for comparison with the output information is "xfg", so that the influence of the interference item on the comparison result of the output information and the verification information can be eliminated.

By way of further example, based on the input information "consumption" to generate the output information "xfg", comparing the output information "xfg" with the verification information "xfg" for comparing with the output information, at this time, the third type of characters in the initial verification information are deleted, and thus it is determined that the comparison result between the second type of characters in the output information and the second type of characters in the verification information passes, and it is determined that the verification condition is met, and the user identity is confirmed. And deleting the interference item contained in the verification information used for comparing with the output information, comparing the second type of characters in the obtained output information with the second type of characters in the verification information for deleting the interference item, and judging whether the verification condition is met.

In some embodiments, the method further comprises:

determining an input sequence of a plurality of first-class characters in the input information under the condition that the input information contains a plurality of first-class characters;

generating a plurality of index results respectively corresponding to a plurality of first-class characters in the input sequence;

and sequentially determining the plurality of index results in the character array according to the input sequence.

Specifically, in the case where there are a plurality of first-type characters, the input sequence may be determined according to the order of user input. For example, in the scenario of checking the user identity, the user inputs "X", "F", "D", and "G" in order under the chinese input method based on the check information "XFDG", at this time, the input order of the plurality of first-type characters is the input sequence, the input information is the first-type character corresponding to the check information, i.e., "fairway bone", the information processing apparatus may sequentially input the first-type characters "immortal", "wind", "way", and "bone" into the character table according to the input information "fairway bone", respectively, to obtain four different index results, sequentially match the four different index results in the character array, obtain four different matching results, and then combine the number of characters corresponding to the input information, i.e., the number of operations of four times when the input information "fairway bone" is generated, output information of the second-type characters corresponding to the four different matching results, respectively, i.e. the output information "XFDG".

Therefore, the output information containing the character type different from the character type of the input information can be directly output without switching the Chinese input method into the English input method, and the operation steps of outputting different types of characters are simplified.

In some embodiments, when the comparison result between the second type of character in the output information and the second type of character in the verification information passes, determining that the user identity meets the verification condition specifically includes:

determining a plurality of subsets which can be formed by a plurality of second characters of the check information under the condition that the second characters of the check information are multiple;

and determining that the comparison result passes under the condition that a set formed by a plurality of second-class characters in the output information is the subset.

Specifically, in the case that the plurality of second-type characters included in the verification information correspond to the pinyin formed by a plurality of letters, the pinyin corresponding to the plurality of second-type characters may have a plurality of subsets, and the subsets may be understood as any one or more characters included in the plurality of second-type characters. If the check information is "xian", the subset of the plurality of second type characters in the check information may be "xa", "xi", and "xia", etc.

Therefore, the identity of the user can be still determined and the comparison result is determined to pass under the condition that the set formed by the second characters in the output information is the subset of the set formed by the second characters in the verification information.

In some embodiments, in the case that the first type of character in the input information is chinese and the chinese is a polyphone, that is, in the case that the first type of character in the input information has a plurality of second type characters associated therewith, it may be determined whether the second type of character in the output information is a character having an association relationship with the first type of character in the input information; if so, determining that the output result of the output information is accurate and the verification is successful; if not, determining that the output result of the output information is not accurate and the verification fails.

Illustratively, the input information is "once", the pinyin which is associated with "once" is "ceng" and "zeng", a plurality of index results are searched in the first type character table based on the input information, each index result corresponds to a different second type character, one of the plurality of index results is determined as a unique index result, the second type character is determined in the character array based on the index result, if the "ceng" is determined as the second type character in the output information, and in the case that the second type character "ceng" is determined to be associated with the input information "once", the output result of the output information is determined to be accurate, and the verification is successful.

In a second aspect, an embodiment of the present invention further provides an information processing apparatus 100, and as shown in fig. 4, the information processing apparatus 100 includes an obtaining module 101 and a processing module 102. The obtaining module 101 is configured to obtain input information containing characters of a first type.

The processing module 102 is configured to input the input information into a character table, and generate an index result; wherein, the first type characters corresponding to different characters in the character table correspond to different index results;

matching in a character array according to the index result, confirming to obtain a second type of character which is different from the first type of character and has a corresponding relation, and outputting output information containing the second type of character; and the character array is a sequence group corresponding to the second type of characters.

In some embodiments, the processing module 102 is further configured to:

generating query information according to the code set corresponding to the first type of characters and the input information;

and determining an index result in the character table according to the query information.

In some embodiments, the processing module 102 is further configured to:

converting codes in the query information into two-dimensional coordinate values;

and determining an index result 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 of the character table is a low-order byte axis.

In some embodiments, the information processing apparatus 100 further includes a generating module 103, where the generating module 103 is configured to generate verification information for verification before the obtaining of the input information containing the first type of characters, where the verification information contains the second type of characters;

the acquisition module 101 is further configured to: and acquiring input information which is input based on the second type of characters in the verification information and contains the first type of characters.

In some embodiments, the processing module 102 is further configured to:

and if the comparison result of the second type of characters in the output information is consistent with the comparison result of the second type of characters in the verification information, determining that the verification condition is met.

In some embodiments, the processing module 102 is further configured to:

and under the condition that the verification information contains a third type of characters, determining the third type of characters in the input information as interference items, and deleting the interference items contained in the verification information for comparison with the output information.

In some embodiments, the processing module 102 is further configured to:

determining an input sequence of a plurality of first-class characters in the input information under the condition that the input information contains a plurality of first-class characters;

generating a plurality of index results respectively corresponding to a plurality of first-class characters in the input sequence;

and sequentially determining the plurality of index results in the character array according to the input sequence.

In some embodiments, the processing module 102 is further configured to:

determining a plurality of subsets which can be formed by a plurality of second characters of the check information under the condition that the second characters of the check information are multiple;

and determining that the comparison result passes under the condition that a set formed by a plurality of second-class characters in the output information is the subset.

In a third aspect, an embodiment of the present invention further provides a storage medium storing a computer program, where the computer program is executed by a processor to implement the steps of the information processing method.

Note that, according to various units in various embodiments of the present application, they may be implemented as computer-executable instructions stored on a memory, which when executed by a processor may implement corresponding steps; or may be implemented as hardware with corresponding logical computing capabilities; or as a combination of software and hardware (firmware). In some embodiments, the processor may be implemented as any of an FPGA, an ASIC, a DSP chip, an SOC (system on a chip), an MPU (e.g., without limitation, Cortex), and the like. The processor may be communicatively coupled to the memory and configured to execute computer-executable instructions stored therein. The memory may include Read Only Memory (ROM), flash memory, Random Access Memory (RAM), Dynamic Random Access Memory (DRAM) such as synchronous DRAM (sdram) or Rambus DRAM, static memory (e.g., flash memory, static random access memory), etc., on which computer-executable instructions are stored in any format. The computer executable instructions may be accessed by a processor, read from a ROM or any other suitable storage location, and loaded into RAM for execution by the processor to implement a wireless communication method according to various embodiments of the present application.

It should be noted that, in the respective components of the system of the present application, the components therein are logically divided according to the functions to be implemented, but the present application is not limited thereto, and the respective components may be re-divided or combined as needed, for example, some components may be combined into a single component, or some components may be further decomposed into more sub-components.

The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a system according to embodiments of the present application. The present application may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form. Further, the application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering.

Moreover, although exemplary embodiments have been described herein, the scope thereof includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., of various embodiments across), adaptations or alterations. The elements of the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the present specification or during the prosecution of the application, which examples are to be construed as non-exclusive. It is intended, therefore, that the specification and examples be considered as exemplary only, with a true scope and spirit being indicated by the following claims and their full scope of equivalents.

The above description is intended to be illustrative and not restrictive. For example, the above-described examples (or one or more versions thereof) may be used in combination with each other. For example, other embodiments may be used by those of ordinary skill in the art upon reading the above description. In addition, in the above detailed description, various features may be grouped together to streamline the application. This should not be interpreted as an intention that a disclosed feature not claimed is essential to any claim. Rather, subject matter of the present application can lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the detailed description as examples or embodiments, with each claim standing on its own as a separate embodiment, and it is contemplated that these embodiments may be combined with each other in various combinations or permutations. The scope of the application should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.

The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:文本输入方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类