CN111782060A - Object display method and device and electronic equipment - Google Patents

Object display method and device and electronic equipment Download PDF

Info

Publication number
CN111782060A
CN111782060A CN202010559109.4A CN202010559109A CN111782060A CN 111782060 A CN111782060 A CN 111782060A CN 202010559109 A CN202010559109 A CN 202010559109A CN 111782060 A CN111782060 A CN 111782060A
Authority
CN
China
Prior art keywords
character information
character
candidate
target object
memory word
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010559109.4A
Other languages
Chinese (zh)
Inventor
李司棋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010559109.4A priority Critical patent/CN111782060A/en
Publication of CN111782060A publication Critical patent/CN111782060A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Probability & Statistics with Applications (AREA)
  • Human Computer Interaction (AREA)
  • Machine Translation (AREA)

Abstract

The application discloses an object display method, an object display device and electronic equipment, wherein the method comprises the following steps: acquiring a candidate object corresponding to the first character information; the first character information is character information input based on a keyboard control; searching a target object from a memory word bank; the target object is an object corresponding to second character information, and the second character information is character information with the minimum editing distance with the first character information in the memory word bank; and if the first number of times of the target object appearing in the memory word bank is larger than the second number of times of the candidate object appearing in the memory word bank, displaying the target object in a candidate display area. The method can simplify the operation of the user.

Description

Object display method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an object display method and device and electronic equipment.
Background
With the rapid development of electronic devices, various functions of input methods configured on electronic devices are increasingly improved, for example, a function of memorizing a word stock is developed for input methods. The word bank is a memory word bank which is used for storing candidate objects, such as candidate words, which are clicked by the user when the user inputs repeated character strings, such as pinyin strings, again.
In the input scene of the memory word stock, because the distance between every two keyboard letters is small, the adjacent positions are easy to be pressed wrongly, therefore, when a user inputs wrong character strings and finishes one-time clicking, the clicked object can be added into the memory word stock; when the user again enters the same character string, this object appears at a forward position in the candidate display area. In such a scenario, a user may be required to perform a undo operation to re-input a correct character string, and thus, the existing object display method has a problem of cumbersome operation.
Disclosure of Invention
The embodiment of the application aims to provide an object display method, an object display device and electronic equipment, and the problem that in the prior art, an object display mode is complex to operate can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an object display method, including:
acquiring a candidate object corresponding to the first character information; the first character information is character information input based on a keyboard control;
searching a target object from a memory word bank; the target object is an object corresponding to second character information, and the second character information is character information with the minimum editing distance with the first character information in the memory word bank;
and if the first number of times of the target object appearing in the memory word bank is larger than the second number of times of the candidate object appearing in the memory word bank, displaying the target object in a candidate display area.
In a second aspect, an embodiment of the present application provides an object display apparatus, including:
the acquisition module is used for acquiring a candidate object corresponding to the first character information; the first character information is character information input based on a keyboard control;
the searching module is used for searching a target object from the memory word bank; the target object is an object corresponding to second character information, and the second character information is character information with the minimum editing distance with the first character information in the memory word bank;
the first display module is used for displaying the target object in a candidate display area if the first number of times that the target object appears in the memory word bank is larger than the second number of times that the candidate object appears in the memory word bank.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the target object corresponding to the second character information which is most similar to the first character information is searched in the memory word stock, and the target object is displayed under the condition that the target object is more frequently appeared than the candidate object in the memory word stock. In this way, when the first character information is not in line with the expectation of the user due to error input, the second character information expected to be input by the user is predicted, and the target object corresponding to the second character information is displayed in the candidate display area, so that the user does not need to cancel operation and input characters again, and the operation of the user can be simplified.
Drawings
Fig. 1 is a flowchart of an object display method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of displaying objects in a candidate display area;
FIG. 3 is a schematic diagram of a display of an object in a candidate display area according to an embodiment of the present application;
FIG. 4 is a second illustration of the display of objects in a candidate display area according to an embodiment of the present application;
fig. 5 is a structural diagram of an object display apparatus provided in an embodiment of the present application;
fig. 6 is a block diagram of an electronic device provided in an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The object display provided by the embodiments of the present application is described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of an object display method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step 101, obtaining a candidate object corresponding to first character information; the first character information is character information input based on a keyboard control.
In this step, the keyboard control may be a virtual keyboard control or an entity keyboard control, which is not limited specifically herein.
The first character information may be character information input through a keyboard control using a self-contained or installed input method application. The first character information may include at least one character, and the at least one character may include letters, numbers, or other symbols.
The number of the candidate objects may be at least one, which may be expressions, words, sentences or the like, for example, a string of pinyin "kaixin" is input, the number of the candidate objects corresponding to the pinyin may be two, which are respectively a word "happy" and a happy expression, for example, a string of pinyin "senlinzhenmei" is input, and the candidate object corresponding to the pinyin may be a sentence "forest beauty".
The type of the candidate object can be Chinese, English or other languages. The type of the candidate object may be determined according to the type of the input method, for example, if the type of the input method is a pinyin input method, the type of the candidate object is chinese if the first character information input through the keyboard control is pinyin combined by letters, or, for example, if the type of the input method is an english input method, the type of the candidate object is english if the first character information input through the keyboard control is an english word combined by letters. In the following description, the types of the candidate objects will be described in detail by taking chinese as an example.
The candidate object corresponding to the first character information can be obtained according to actual conditions. In one scenario, a user inputs first character information for the first time or inputs the first character information again, but the user does not perform an input confirmation operation on the first character information before, at this time, the first character information is not stored in the memory lexicon configured by the input method application, and the candidate object may be obtained according to semantic understanding. For example, the user inputs the first character information "zhenengshurufa" for the first time, and the first character information can be semantically understood as "this can input method".
In another scenario, the candidate object corresponding to the first character information may be an object corresponding to the first character information in a memory lexicon, and in this scenario, the first character information is usually character information input again by the user. For example, the user inputs "zhenengshurufa" again, and at this time, the candidate object corresponding to the first character information may be searched from the memory lexicon, which is "this input method".
However, there is also a scenario where the user inputs the first character information, but the first character information cannot be semantically understood, and the flow ends. For example, the user inputs the first character information "ji @ dkj", which cannot be semantically understood, and the process ends.
Step 102, searching a target object from a memory word bank; the target object is an object corresponding to second character information, and the second character information is character information with the minimum editing distance with the first character information in the memory word bank.
The memory word library usually stores related parameters of some objects which are input and confirmed by the user before, such as a character string and a separation mode of the character string which are input by the user before, a full spelling corresponding to the character string and a word or a sentence corresponding to the full spelling, and may also store a word frequency of the word or the sentence, wherein the word frequency represents the number of times the user input and confirm the word or the sentence.
In this step, in the process of searching for the target object, the second character information may be first searched for from the memory lexicon.
Specifically, the character information in the memory lexicon may be traversed, and the edit distance between the first character information and the other character information in the memory lexicon except the first character information may be calculated, where the edit distance may represent the difference between the first character information and the character information, that is, the edit distance may represent how many times the character information needs to be processed after the first character information is changed into the character information.
For example, the first character information input by the user is the character string "zhenengshurufa", one character information in the memory word library is the character string "zhenengshurufa", the edit distance between the first character information and the character information is 1, that is, the character "e" is replaced by the character "i", and then the character string "zhenengshurufa" can be converted into the character string "zhenengshurufa".
The edit distance may be a levenstein distance, which is calculated as shown in the following formula (1).
Figure BDA0002545438010000051
In the above formula (1), a represents first character information, b represents character information currently traversed by the memory lexicon, i represents a subscript of the first character information a, and j represents a subscript of the character information b currently traversed by the memory lexicon. The editing distance between the first character information and the other character information except the first character information in the memory word stock can be calculated through the formula (1).
And acquiring second character information with the minimum editing distance with the first character information from the memory word stock, wherein the second character information is the character information which is most similar to the first character information input by the user.
And after the second character information is obtained, obtaining an object corresponding to the second character information from the memory word stock, namely the target object. The target object may be an object that the user expects to appear.
Step 103, if the first number of times that the target object appears in the memory word stock is greater than the second number of times that the candidate object appears in the memory word stock, displaying the target object in a candidate display area.
Wherein the target object is different from the candidate object.
The memory word stock may store the word frequency of the object. In this step, the step implicitly includes a step of determining whether the word frequency of the target object is greater than the word frequency of the candidate object, that is, implicitly includes a step of determining whether the first number of times that the target object appears in the memory lexicon is greater than the second number of times that the candidate object appears in the memory lexicon.
And when the first number of times that the target object appears in the memory word bank is judged to be larger than the second number of times that the candidate object appears in the memory word bank, marking the target object as an error correction memory object and displaying the error correction memory object in a candidate display area. The error correction memory object may be understood as an object for performing error correction on a candidate object corresponding to the first character information in a memory lexicon, where the error correction memory object is different from the candidate object corresponding to the first character information.
The error-correcting memory object may be an expression, a word or a sentence, for example, a character string "zhenengshurfa" input by a user, since the character string "zhenengshurfa" frequently input by the user before is recorded in the memory word library, and the word frequency of the "smart input method" is much greater than the word frequency of the "this input method", the target object "smart input method" may be an error-correcting memory object of the candidate object "this input method", that is, the candidate object "this input method" may be an object that appears due to the erroneous input of the first character information by the user, and the target object "smart input method" may be an object that the user more expects to appear.
In order to make the target object displayed in the candidate display area more conform to the expectation of the user and ensure the quality of the target object displayed in the candidate display area, the target object can be displayed only when the word frequency of the target object is judged to be far greater than that of the candidate object. Here, the term frequency much larger means that the term frequency of the target object is more than twice the term frequency of the candidate object.
And if the first number of times that the target object appears in the memory word bank is judged to be less than or equal to the second number of times that the candidate object appears in the memory word bank, the target object is not displayed.
Further, in order to ensure that the object displayed in the candidate display area matches the first character information input by the user on the one hand and to avoid the problem that the object displayed in the candidate display area does not match the object expected to appear by the user due to the user's erroneous input of the first character information on the other hand, the candidate object and the target object may be simultaneously displayed in the candidate display area. The method further comprises, while the target object is displayed in the candidate display area:
displaying the candidate object in the candidate display area;
wherein the displaying the target object in the candidate display area comprises:
displaying the target object in the candidate display area in a preset display mode; and the preset display mode is different from the display mode of the candidate object.
Specifically, in the candidate display area, the candidate object may be displayed before the target object or may be displayed after the target object, which is not specifically limited herein.
The target object is displayed in a preset display manner, which is different from the display manner of the candidate object, in order to highlight the target object in the candidate display area, that is, the target object highlighting refers to displaying in a manner different from that of the candidate object, for example, the target object highlighting may be a bold display, an italic display, a font enlarging display, a display in a color different from that of the candidate object, and the like.
By additionally displaying the target object in the candidate display area, on one hand, the object displayed in the candidate display area can be ensured to be matched with the first character information input by the user on the one hand, and on the other hand, the problem that the object displayed in the candidate display area is not matched with the object expected to appear by the user due to the mistaken input of the first character information by the user can be avoided. And the target object is highlighted in the candidate display area, so that the user can distinguish the target object from a plurality of objects more quickly, and the confirmation speed of the user on the target object can be improved.
Referring to fig. 2, fig. 2 is a schematic display diagram of an object in a conventional candidate display area, and as shown in fig. 2, a candidate object "this can be input method" corresponding to the first character information is displayed at a front position in the candidate display area. Referring to fig. 3, fig. 3 is a schematic display diagram of an object in a candidate display area in an embodiment of the present application, and as shown in fig. 3, a target object "smart input method" is also highlighted after the candidate object.
In this embodiment, a target object corresponding to second character information most similar to the first character information is searched in the memory lexicon, and the target object is displayed when it is determined that the target object appears more frequently than the candidate object in the memory lexicon. In this way, when the first character information is not in line with the expectation of the user due to error input, the second character information expected to be input by the user is predicted, and the target object corresponding to the second character information is displayed in the candidate display area, so that the user does not need to cancel operation and input characters again, and the operation of the user can be simplified.
Optionally, based on the first embodiment, the step 101 specifically includes:
performing character separation on the first character information to obtain a character combination result;
under the condition that the character combination result meets a preset matching rule, judging whether the character combination result exists in the memory word stock or not;
and under the condition that the character combination result exists in the memory word stock, acquiring the candidate object corresponding to the character combination result from the memory word stock.
In this embodiment, an existing or new semantic understanding algorithm may be first adopted to perform character separation on the first character information, and obtain all possible character combination results. The character combination results may include some character combination results that do not conform to the input habit of the user, and the character combination results may carry separation marks.
And then, judging whether the character combination result meets a preset matching rule or not, wherein the preset matching rule is different according to different types of input methods. For example, if the type of the input method is a pinyin input method, the first character information input by the user is a pinyin string, the character combination result is a pinyin combination result, and the preset matching rule is that the pinyin combination result is obtained by performing character separation on the first character information according to a full-pinyin mode and/or a simple-pinyin mode.
Taking a pinyin input method as an example, according to the scheme of Chinese pinyin, the total number of Chinese pinyin is 63, wherein 23 initial consonants, 24 final consonants and 16 syllables are recognized and read integrally, and 428 pinyin can be formed by permutation and combination in a legal full-pinyin mode. In addition, the user usually uses simple spelling to input the spelling string during the input process, and the common simple spelling input by the user includes the last simple spelling, the full simple spelling and other simple spellings such as the middle simple spelling, the first simple spelling, etc.
And if the pinyin combination result is obtained by performing character separation on the first character information according to a full-pinyin mode and/or a simple-pinyin mode, determining that the pinyin combination result meets a preset matching rule. For example, if the user inputs the pinyin string "xians", and the pinyin combination result is "x/ian/s", the pinyin combination result does not satisfy the preset matching rule because "ian" does not satisfy the full-pinyin manner or the simple-pinyin manner.
In addition, the input behavior of the user usually conforms to a certain rule, and the pinyin string input by the user usually uses a full pinyin mode firstly, a last simple pinyin and other simple pinyin secondly. Therefore, the pinyin string can be subjected to character separation by using the full-spelling mode according to the sequence from the front to the back of the pinyin string, if the type of the pinyin string does not accord with the full-spelling mode in the separation process, the pinyin string can be subjected to character separation by using the simple spelling mode, such as the pinyin string 'xians', and the type of the pinyin's' does not accord with the full-spelling mode, so that the pinyin string can be separated by using the simple spelling mode, and a pinyin combination result is finally obtained. Thus, under the condition that the pinyin string input by the user can be understood semantically, the obtained pinyin combination result is generally the pinyin combination result conforming to the input habit of the user.
For example, if a user inputs a pinyin string "xians", the pinyin combination result "xi/an/s" carrying the separation mark may be obtained according to the preset matching rule, and the corresponding candidate object may be "xi an is", "xi an city", or the like. And obtaining a pinyin combination result "xian/s", wherein the corresponding candidate objects may be "first yes", "display", and the like.
And then, under the condition that the character combination result meets a preset matching rule, judging whether the character combination result exists in the memory word bank or not. Specifically, first character information may be first matched from a memory lexicon, and when the first character information is matched, it may be determined whether a separation manner corresponding to the first character information in the memory lexicon is consistent with a separation manner indicated by a separation mark in a character combination result, and when the separation manner is consistent with the separation manner indicated by the separation mark in the character combination result, it may be determined that the character combination result exists in the memory lexicon.
And finally, under the condition that the character combination result exists in the memory word stock, acquiring the candidate object corresponding to the character combination result from the memory word stock.
In the embodiment, a character combination result is obtained by performing character separation on first character information, and whether the character combination result exists in the memory lexicon is judged under the condition that the character combination result meets a preset matching rule; and under the condition that the character combination result exists in the memory word stock, acquiring the candidate object corresponding to the character combination result from the memory word stock. Therefore, the character combination result obtained by character separation of the first character information can well accord with the input habit of the user, and the candidate object can be accurately obtained and displayed.
Optionally, according to the first embodiment, after the step 103, the method further includes:
under the condition that a first input to the target object is received, if the mapping relation between the first character information and the candidate object is included in the memory word stock, deleting the mapping relation; wherein the first input is used for input confirmation of the target object;
and associating the first character information with the target object.
In this embodiment, after the candidate display area displays the target object, that is, displays an object that the user may expect more, it may be determined whether the object that the user expects is consistent with what is expected according to the input behavior of the user for the target object. When the user confirms the input of the target object, the first character information is determined to be the character information input by mistake by the user, and the user actually expects to input the second character information and expect the target object. In this case, the memory word stock can be corrected.
Specifically, when a first input to the target object is received, it is determined that an object expected by the user is identical to an expected object, and at this time, if a mapping relationship between the first character information and the candidate object is included in the memory lexicon, the mapping relationship is deleted. For example, the mapping relationship between the first character information "zhenengshurufa" and the candidate object "this can be input method" in the memory word library is deleted.
The first input may be a voice input, a somatosensory input, or a touch input. Wherein the touch input may include: single click operation, double click operation, multiple click operation, drag operation, and the like.
And then, associating the first character information with the target object to modify another input possibility of the target object in the memory word stock. For example, the mapping relation of the target object "intelligent input method" is modified such that the character information "zhinengshurufa" and "zhenengshurufa" are mapped to the "intelligent input method" at the same time. Thus, referring to fig. 4, fig. 4 is a second schematic display diagram of an object in the candidate display area in the embodiment of the present application, and as shown in fig. 4, if the user mistakenly inputs the character string "zhenengshurufa" again, the candidate display area may directly display the "smart input method".
In this embodiment, when the first input to the target object is received, the mapping relationship is deleted, and the first character information is associated with the target object, so that on one hand, the memory burden of a memory lexicon can be reduced, and on the other hand, the input behavior of the user can be well fitted.
It should be noted that, in the object display method provided in the embodiment of the present application, the execution main body may be an object display apparatus, or a control module in the object display apparatus for executing the object display method. The object display device provided in the embodiment of the present application is described by taking an example in which the object display device executes an object display method.
Referring to fig. 5, fig. 5 is a structural diagram of an object display apparatus according to an embodiment of the present application, and as shown in fig. 5, an object display apparatus 500 includes:
an obtaining module 501, configured to obtain a candidate object corresponding to the first character information; the first character information is character information input based on a keyboard control;
a searching module 502, configured to search a target object from a memory lexicon; the target object is an object corresponding to second character information, and the second character information is character information with the minimum editing distance with the first character information in the memory word bank;
a first displaying module 503, configured to display the target object in a candidate display area if a first number of times that the target object appears in the memory lexicon is greater than a second number of times that the candidate object appears in the memory lexicon.
Optionally, the obtaining module 501 includes:
the character separating unit is used for carrying out character separation on the first character information to obtain a character combination result;
the judging unit is used for judging whether the character combination result exists in the memory word stock or not under the condition that the character combination result meets a preset matching rule;
and the acquisition unit is used for acquiring the candidate object corresponding to the character combination result in the memory word stock under the condition that the character combination result exists in the memory word stock.
Optionally, the character combination result is a pinyin combination result, and the preset matching rule is that the pinyin combination result is obtained by performing character separation on the first character information according to a full-pinyin mode and/or a simple-pinyin mode.
Optionally, the apparatus further comprises:
the deleting module is used for deleting the mapping relation if the mapping relation between the first character information and the candidate object is included in the memory word stock under the condition that first input to the target object is received; wherein the first input is used for input confirmation of the target object;
and the association module is used for associating the first character information with the target object.
Optionally, the apparatus further comprises:
a second display module, configured to display the candidate object in the candidate display area;
the first display module 503 is specifically configured to display the target object in the candidate display area in a preset display manner; and the preset display mode is different from the display mode of the candidate object.
In this embodiment, the search module 502 searches for a target object corresponding to the second character information most similar to the first character information in the memory lexicon, and the first display module 503 displays the target object when it is determined that the target object appears more frequently in the memory lexicon than the candidate object. In this way, when the first character information is not in line with the expectation of the user due to error input, the second character information expected to be input by the user is predicted, and the target object corresponding to the second character information is displayed in the candidate display area, so that the user does not need to cancel operation and input characters again, and the operation of the user can be simplified.
The object display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.
The object display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The object display device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, referring to fig. 6, fig. 6 is a structural diagram of an electronic device according to an embodiment of the present disclosure, as shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure is further provided, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the above-mentioned embodiment of the object display method, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 710 is configured to obtain a candidate object corresponding to the first character information; the first character information is character information input based on a keyboard control; searching a target object from a memory word bank; the target object is an object corresponding to second character information, and the second character information is character information with the minimum editing distance with the first character information in the memory word bank;
a display unit 706, configured to display the target object in a candidate display area if the first number of times that the target object appears in the memory thesaurus is greater than the second number of times that the candidate object appears in the memory thesaurus.
In the embodiment of the present application, the processor 710 searches the memory lexicon for a target object corresponding to the second character information that is most similar to the first character information, and the display unit 706 displays the target object when it is determined that the target object appears more frequently in the memory lexicon than the candidate object. In this way, when the first character information is not in line with the expectation of the user due to error input, the second character information expected to be input by the user is predicted, and the target object corresponding to the second character information is displayed in the candidate display area, so that the user does not need to cancel operation and input characters again, and the operation of the user can be simplified.
Optionally, the processor 710 is further configured to perform character separation on the first character information to obtain a character combination result; under the condition that the character combination result meets a preset matching rule, judging whether the character combination result exists in the memory word stock or not; and under the condition that the character combination result exists in the memory word stock, acquiring the candidate object corresponding to the character combination result from the memory word stock.
Optionally, the processor 710 is further configured to, in a case that a first input to the target object is received, delete the mapping relationship if the memory lexicon includes the mapping relationship between the first character information and the candidate object; wherein the first input is used for input confirmation of the target object; and associating the first character information with the target object.
Optionally, the display unit 706 is further configured to display the candidate object in the candidate display area; displaying the target object in the candidate display area in a preset display mode; and the preset display mode is different from the display mode of the candidate object.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the graphics processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above object display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above object display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An object display method, comprising:
acquiring a candidate object corresponding to the first character information; the first character information is character information input based on a keyboard control;
searching a target object from a memory word bank; the target object is an object corresponding to second character information, and the second character information is character information with the minimum editing distance with the first character information in the memory word bank;
and if the first number of times of the target object appearing in the memory word bank is larger than the second number of times of the candidate object appearing in the memory word bank, displaying the target object in a candidate display area.
2. The method according to claim 1, wherein the obtaining of the candidate object corresponding to the first character information includes:
performing character separation on the first character information to obtain a character combination result;
under the condition that the character combination result meets a preset matching rule, judging whether the character combination result exists in the memory word stock or not;
and under the condition that the character combination result exists in the memory word stock, acquiring the candidate object corresponding to the character combination result from the memory word stock.
3. The method according to claim 2, wherein the character combination result is a pinyin combination result, and the predetermined matching rule is that the pinyin combination result is obtained by character-separating the first character information according to a full-pinyin mode and/or a simple-pinyin mode.
4. The method of claim 1, wherein after the target object is displayed in the candidate display area, the method further comprises:
under the condition that a first input to the target object is received, if the mapping relation between the first character information and the candidate object is included in the memory word stock, deleting the mapping relation; wherein the first input is used for input confirmation of the target object;
and associating the first character information with the target object.
5. The method of claim 1, wherein while the target object is displayed in the candidate display area, the method further comprises:
displaying the candidate object in the candidate display area;
wherein the displaying the target object in the candidate display area comprises:
displaying the target object in the candidate display area in a preset display mode; and the preset display mode is different from the display mode of the candidate object.
6. An object display apparatus, comprising:
the acquisition module is used for acquiring a candidate object corresponding to the first character information; the first character information is character information input based on a keyboard control;
the searching module is used for searching a target object from the memory word bank; the target object is an object corresponding to second character information, and the second character information is character information with the minimum editing distance with the first character information in the memory word bank;
the first display module is used for displaying the target object in a candidate display area if the first number of times that the target object appears in the memory word bank is larger than the second number of times that the candidate object appears in the memory word bank.
7. The apparatus of claim 6, wherein the obtaining module comprises:
the character separating unit is used for carrying out character separation on the first character information to obtain a character combination result;
the judging unit is used for judging whether the character combination result exists in the memory word stock or not under the condition that the character combination result meets a preset matching rule;
and the acquisition unit is used for acquiring the candidate object corresponding to the character combination result in the memory word stock under the condition that the character combination result exists in the memory word stock.
8. The apparatus according to claim 7, wherein the character combination result is a pinyin combination result, and the predetermined matching rule is that the pinyin combination result is obtained by character-separating the first character information according to a full-spelling mode and/or a simple-spelling mode.
9. The apparatus of claim 6, further comprising:
the deleting module is used for deleting the mapping relation if the mapping relation between the first character information and the candidate object is included in the memory word stock under the condition that first input to the target object is received; wherein the first input is used for input confirmation of the target object;
and the association module is used for associating the first character information with the target object.
10. The apparatus of claim 6, further comprising:
a second display module, configured to display the candidate object in the candidate display area;
the first display module is specifically configured to display the target object in the candidate display area in a preset display manner; and the preset display mode is different from the display mode of the candidate object.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the object display method as claimed in claims 1-5.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the object display method according to claims 1-5.
CN202010559109.4A 2020-06-18 2020-06-18 Object display method and device and electronic equipment Pending CN111782060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010559109.4A CN111782060A (en) 2020-06-18 2020-06-18 Object display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010559109.4A CN111782060A (en) 2020-06-18 2020-06-18 Object display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111782060A true CN111782060A (en) 2020-10-16

Family

ID=72756678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010559109.4A Pending CN111782060A (en) 2020-06-18 2020-06-18 Object display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111782060A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184028A (en) * 2011-04-11 2011-09-14 百度在线网络技术(北京)有限公司 Method and equipment for acquiring candidate character strings corresponding to input key sequence
CN103677299A (en) * 2012-09-12 2014-03-26 深圳市世纪光速信息技术有限公司 Method and device for achievement of intelligent association in input method and terminal device
CN105204663A (en) * 2015-10-30 2015-12-30 维沃移动通信有限公司 Method of virtual keyboard input and terminal
CN106896937A (en) * 2017-02-28 2017-06-27 百度在线网络技术(北京)有限公司 Method and apparatus for being input into information
CN107102746A (en) * 2016-02-19 2017-08-29 北京搜狗科技发展有限公司 Candidate word generation method, device and the device generated for candidate word
CN107229348A (en) * 2016-03-23 2017-10-03 北京搜狗科技发展有限公司 A kind of input error correction method, device and the device for inputting error correction
CN107340880A (en) * 2016-05-03 2017-11-10 北京搜狗科技发展有限公司 A kind of association-feeding method, device and the electronic equipment for realizing association's input
KR20190001895A (en) * 2017-06-28 2019-01-07 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Character inputting method and apparatus
CN110488990A (en) * 2019-08-12 2019-11-22 腾讯科技(深圳)有限公司 Input error correction method and device
CN110780751A (en) * 2019-10-25 2020-02-11 维沃移动通信有限公司 Information processing method and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184028A (en) * 2011-04-11 2011-09-14 百度在线网络技术(北京)有限公司 Method and equipment for acquiring candidate character strings corresponding to input key sequence
CN103677299A (en) * 2012-09-12 2014-03-26 深圳市世纪光速信息技术有限公司 Method and device for achievement of intelligent association in input method and terminal device
CN105204663A (en) * 2015-10-30 2015-12-30 维沃移动通信有限公司 Method of virtual keyboard input and terminal
CN107102746A (en) * 2016-02-19 2017-08-29 北京搜狗科技发展有限公司 Candidate word generation method, device and the device generated for candidate word
CN107229348A (en) * 2016-03-23 2017-10-03 北京搜狗科技发展有限公司 A kind of input error correction method, device and the device for inputting error correction
CN107340880A (en) * 2016-05-03 2017-11-10 北京搜狗科技发展有限公司 A kind of association-feeding method, device and the electronic equipment for realizing association's input
CN106896937A (en) * 2017-02-28 2017-06-27 百度在线网络技术(北京)有限公司 Method and apparatus for being input into information
KR20190001895A (en) * 2017-06-28 2019-01-07 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Character inputting method and apparatus
CN110488990A (en) * 2019-08-12 2019-11-22 腾讯科技(深圳)有限公司 Input error correction method and device
CN110780751A (en) * 2019-10-25 2020-02-11 维沃移动通信有限公司 Information processing method and electronic equipment

Similar Documents

Publication Publication Date Title
EP2713255B1 (en) Method and electronic device for prompting character input
KR100931466B1 (en) Electronic dictionary device and dictionary search method of electronic dictionary device
CN111324771B (en) Video tag determination method and device, electronic equipment and storage medium
US10402474B2 (en) Keyboard input corresponding to multiple languages
US11409374B2 (en) Method and device for input prediction
WO2022083750A1 (en) Text display method and apparatus and electronic device
WO2022135474A1 (en) Information recommendation method and apparatus, and electronic device
US10664658B2 (en) Abbreviated handwritten entry translation
WO2021254251A1 (en) Input display method and apparatus, and electronic device
CN111984589A (en) Document processing method, document processing device and electronic equipment
CN111860000A (en) Text translation editing method and device, electronic equipment and storage medium
WO2022105754A1 (en) Character input method and apparatus, and electronic device
CN112764734B (en) Auxiliary method and device for code editing and electronic equipment
CN107797676B (en) Single character input method and device
US11899904B2 (en) Text input system with correction facility
CN101553810A (en) Character converting device and character converting device control method
US9208143B2 (en) Electronic device and dictionary data display method
CN112949261A (en) Text restoration method and device and electronic equipment
CN110073351A (en) Text is predicted by combining the candidate attempted from user
WO2022143523A1 (en) Vocabulary display method and apparatus, and electronic device
CN111090341A (en) Input method candidate result display method, related equipment and readable storage medium
CN115437548A (en) Display method and device of virtual keyboard, electronic equipment and storage medium
WO2015075920A1 (en) Input assistance device, input assistance method and recording medium
WO2022233275A1 (en) Input correction method and apparatus
JP6655331B2 (en) Electronic equipment and methods

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination