CN107346183B - Vocabulary recommendation method and electronic equipment - Google Patents

Vocabulary recommendation method and electronic equipment Download PDF

Info

Publication number
CN107346183B
CN107346183B CN201710514520.8A CN201710514520A CN107346183B CN 107346183 B CN107346183 B CN 107346183B CN 201710514520 A CN201710514520 A CN 201710514520A CN 107346183 B CN107346183 B CN 107346183B
Authority
CN
China
Prior art keywords
vocabulary
recommended
semantics
searching
displaying
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.)
Active
Application number
CN201710514520.8A
Other languages
Chinese (zh)
Other versions
CN107346183A (en
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 CN201710514520.8A priority Critical patent/CN107346183B/en
Publication of CN107346183A publication Critical patent/CN107346183A/en
Application granted granted Critical
Publication of CN107346183B publication Critical patent/CN107346183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a vocabulary recommendation method and electronic equipment, wherein the method comprises the following steps: when the electronic equipment calls an input method for inputting, acquiring input content of the electronic equipment, and searching a related vocabulary matched with the input content; identifying the associated vocabulary to obtain the semantics of the associated vocabulary; and searching a recommended word matched with the semantics of the associated word, and displaying the recommended word. The embodiment of the invention can match the associated vocabulary according to the input content and match the corresponding recommended vocabulary according to the semantics of the associated vocabulary, thereby simplifying the operation of a user when inputting some special vocabularies, improving the input efficiency and perfecting the functions of the electronic equipment.

Description

Vocabulary recommendation method and electronic equipment
Technical Field
The invention relates to the technical field of communication, in particular to a vocabulary recommendation method and electronic equipment.
Background
With the development of mobile communication technology, people often use electronic devices to process various matters, such as: searching for information, chatting, or editing documents, etc., while electronic devices typically employ input methods to assist users in entering relevant content to complete relevant transactions. At present, the existing input method generally matches related words according to the content input by a user, and dynamically adjusts the display sequence of the related words according to the word frequency used by the user, thereby greatly facilitating the use of the user. However, when a user wants to input a word without knowing pronunciation or writing through some input method, the user needs to switch to other input method or manual network search. Therefore, the input method adopted by the existing electronic equipment has the problem of single function, so that the operation of inputting some special words by a user is complicated.
Disclosure of Invention
The embodiment of the invention provides a vocabulary recommendation method and electronic equipment, and aims to solve the problem that the operation of inputting some special vocabularies by a user is complicated due to single function of an input method adopted by the existing electronic equipment.
In a first aspect, an embodiment of the present invention provides a vocabulary recommendation method applied to an electronic device, where the method includes:
when the electronic equipment calls an input method for inputting, acquiring input content of the electronic equipment, and searching a related vocabulary matched with the input content;
identifying the associated vocabulary to obtain the semantics of the associated vocabulary;
and searching a recommended word matched with the semantics of the associated word, and displaying the recommended word.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
the searching module is used for acquiring the input content of the electronic equipment and searching the associated vocabulary matched with the input content when the electronic equipment calls the input method for inputting;
the recognition module is used for recognizing the associated vocabulary to obtain the semantics of the associated vocabulary;
and the first display module is used for searching the recommended vocabulary matched with the semantics of the associated vocabulary and displaying the recommended vocabulary.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: the vocabulary recommendation system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the vocabulary recommendation method in the embodiment of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the vocabulary recommendation method in the embodiment of the present invention.
In the embodiment of the invention, the electronic equipment can match the associated vocabulary according to the input content and match the corresponding recommended vocabulary according to the semantics of the associated vocabulary, thereby simplifying the operation of inputting some special vocabularies by a user, improving the input efficiency and perfecting the functions of the electronic equipment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart illustrating a vocabulary recommendation method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another vocabulary recommendation method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
Referring to fig. 1, fig. 1 is a flowchart of a vocabulary recommendation method applied to an electronic device according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step 101, when the electronic device calls an input method for inputting, acquiring input content of the electronic device, and searching a related vocabulary matched with the input content.
The input method may be an input method preconfigured by the electronic device system, or may be another input method application installed in the electronic device, for example: a dog searching input method, a Baidu input method or a Google input method, and the like, wherein the user can select a Pinyin input method or a Wubi input method. The input content can be understood as pinyin input by a user through a pinyin input method or strokes input through a five-stroke input method, the related vocabulary is a vocabulary matched with the input pinyin or the input strokes and having special semantics, and the special semantics can be understood as another vocabulary matched according to the semantics of the related vocabulary. For example: the pinyin input by the user through the pinyin input method is 'liwangzipangqi', words such as 'Liwangzheqiqi' and 'Liwangwyiqiqi' are matched with the 'liwangzipangqi', and 'Qi' and 'qi' words can be matched according to the semantics of 'Liwangzheqi' and 'Liwanghyiqiqi', so that the associated words are 'Liwangzheqi' and 'Wangzheqi'.
The searching for the associated vocabulary matched with the input content may be searching for the associated vocabulary matched with the input content in a word bank of the input method, or searching for the associated vocabulary matched with the input content through networking. For example: if the pinyin input by the user through the pinyin input method is ' banb ', the associated words matched with ' banb ' can be found to be words such as ' version ', ' promulgation ', half-side ' and the like through word bank of the pinyin input method or network search.
In the step, by acquiring the input content of the electronic equipment, the associated vocabulary matched with the input pinyin or strokes can be extracted, and then the associated vocabulary can be subjected to semantic recognition to match the recommended vocabulary matched with the semantics of the associated vocabulary, so that the input mode of the user is more diversified.
And 102, identifying the associated vocabulary to obtain the semantics of the associated vocabulary.
In this step, semantic recognition needs to be performed on the associated vocabulary matched in step 101, so as to obtain the semantics of the associated vocabulary, where the recognition may be understood as recognizing the word meaning of the associated vocabulary or analyzing the requirements of other vocabularies implied by the associated vocabulary. For example: the user inputs pinyin ' sangeniu ', if the matched associated vocabulary is ' three cattle ', the ' three cattle ' is recognized, the ' three cattle ' can be combined to obtain a word of ' Ben ', and the semantic meaning of the ' three cattle ' can be analyzed to obtain a word comprising three cattle characters ', so that when the user wants to input some rarely-used characters but does not know the pronunciation of the characters, the required vocabulary can be matched by inputting pinyin forming the structure of the characters; or the user inputs pinyin "banbendeyingwen", if the matched associated vocabulary is "version english", the user can know how to write the english word of the version "the implicit vocabulary requirement of the user is" version english ", namely, the semantic of" version english "is recognized as" version-providing english word ", so that when the user wants to input some special vocabularies, the user can match the required vocabulary by inputting some input contents containing the vocabulary requirement.
In this embodiment, the associated vocabulary is obtained by matching the content input by the user through the input method, and the semantics of the associated vocabulary is obtained by recognizing the associated vocabulary, so as to match the vocabulary really intended to be input by the user according to the semantics.
And 103, searching a recommended word matched with the semantic meaning of the associated word, and displaying the recommended word.
In this step, a recommended vocabulary matching the semantics of the associated vocabulary needs to be searched according to the semantics of the associated vocabulary identified in step 102. The recommended vocabulary is a vocabulary which is matched according to the semantics of the associated vocabulary and needs to be recommended to a user, for example: and searching the associated vocabulary matched with the input content 'sangeniu' as 'three cattle', and matching out the recommended vocabulary as 'Ben' according to the 'three cattle', wherein the word 'Ben' is the vocabulary to be recommended to the user. The displaying of the recommended vocabulary may be displaying the recommended vocabulary on a vocabulary recommendation interface of the input method, or displaying the recommended vocabulary in a preset area of the input method.
In this embodiment, the target vocabulary matched with the input content may also be displayed on the vocabulary recommendation interface of the input method, for example: and if the input content of the user is 'sangeniu', displaying 'three cattle' and 'Ben', so that the user can select from the target vocabulary and the recommended vocabulary to select the vocabulary really required by the user, and the aim of improving the accuracy of recommending the vocabulary matched with the input content is fulfilled.
In this embodiment, the electronic Device may be a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Desktop Computer (Desktop Computer), a notebook Personal Computer (notebook Personal Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or other terminal devices.
In the embodiment of the invention, the electronic equipment can match the associated vocabulary according to the input content and match the corresponding recommended vocabulary according to the semantics of the associated vocabulary, thereby simplifying the operation of inputting some special vocabularies by a user, improving the input efficiency and perfecting the functions of the electronic equipment.
Referring to fig. 2, fig. 2 is a flowchart of another vocabulary recommendation method applied to an electronic device according to an embodiment of the present invention. This embodiment explains the steps of recognizing the semantics of the associated vocabulary and finding a recommended vocabulary matching the semantics of the associated vocabulary and displaying the recommended vocabulary, based on the embodiment shown in fig. 1. As shown in fig. 2, the method comprises the steps of:
step 201, when the electronic device calls an input method for inputting, obtaining input content of the electronic device, and searching for associated words matched with the input content.
The specific implementation of this step may refer to the implementation of step 101 in the method embodiment shown in fig. 1, and is not described here again to avoid repetition.
Step 202, recognizing the associated vocabulary according to a semantic recognition rule of a pre-acquired vocabulary structure to obtain the semantic meaning of the expression vocabulary structure of the associated vocabulary.
The semantic recognition rule of the vocabulary structure may be predefined and acquired in advance, and the semantic recognition rule of the vocabulary structure may be a recognition rule for recognizing a corresponding vocabulary according to semantics representing a composition structure of the vocabulary. For example: the pre-acquired semantic recognition rule of the vocabulary structure comprises the steps that the semantic meaning of three cattle which can be recognized according to the three cattle is a word consisting of three cattle characters, the semantic meaning of the Chinese character which can be recognized according to the Chinese character which is beside the Chinese character is a corresponding vocabulary beside the Chinese character, and the semantic meaning of the Chinese character which can be recognized according to the Chinese character in the grass is a vocabulary which is formed by adding one internal character to the Chinese character head. Therefore, the semantics of the expression vocabulary structure of the associated vocabulary can be obtained according to the pre-obtained semantic recognition rule of the vocabulary structure, and the corresponding recommended vocabulary can be matched according to the semantics of the expression vocabulary structure of the associated vocabulary.
Step 203, searching a recommended vocabulary with a vocabulary structure matched with the vocabulary structure represented by the semantic meaning, and displaying the recommended vocabulary.
In this step, the recommended vocabulary needs to be searched according to the semantics of the associated vocabulary identified in step 202, for example: recognizing that the semanteme of the three cattle is 'a word consisting of three cattle characters', and the vocabulary structure of the 'Ben' word is formed by the three cattle characters, so that the recommended vocabulary matched with the vocabulary structure represented by the semanteme is 'Ben' word; or the semantic meaning of 'grass' is recognized as 'a word formed by a careless head plus one internal word', the word structure of the 'rui' word is formed by one internal word under the careless head, and therefore the recommended word matched with the word structure represented by the semantic meaning is 'rui' word. The recommended vocabulary matched with the vocabulary structure represented by the semantic expression can be obtained by searching the recommended vocabulary matched with the vocabulary structure represented by the semantic expression in the vocabulary of the input method or by networking and searching the recommended vocabulary matched with the vocabulary structure represented by the semantic expression.
The specific implementation of displaying the recommended word may refer to the implementation of step 103 in the method embodiment shown in fig. 1, and is not described herein again to avoid repetition.
It should be noted that, step 202 and step 203 are replaceable in this embodiment, for example: steps 202 and 203 may be replaced with:
recognizing the associated vocabulary according to a recognition rule of the vocabulary semantics acquired in advance to obtain the semantics of the associated vocabulary representing the vocabulary requirements;
and searching a recommended word corresponding to the word requirement expressed by the semantic meaning, and displaying the recommended word.
The recognition rule of the vocabulary semantics can be predefined and acquired in advance, and the recognition rule of the vocabulary semantics can be a recognition rule for recognizing corresponding vocabularies according to the semantics representing the vocabulary requirements. For example: the pre-acquired recognition rules of the vocabulary semantics comprise that the semantics of 'version English can be recognized' version English 'is used as' version English words provided ', and the semantics of' traditional Chinese dragon can be recognized 'traditional Chinese dragon provided', and the like.
Therefore, the semantics of the associated vocabulary representing the vocabulary requirement can be obtained according to the pre-obtained recognition rule of the vocabulary semantics, and the recommended vocabulary can be searched according to the semantics of the associated vocabulary representing the vocabulary structure. For example: recognizing that the semantic meaning of "english of version" is "english word providing version", and english of version is version, so the recommended vocabulary corresponding to the vocabulary requirement expressed by the semantic meaning is "version"; or recognizing the semantic of the ' traditional dragon ' as ' traditional Chinese writing for providing dragon's character ', wherein the traditional dragon's complex is dragon, so that the recommended vocabulary corresponding to the vocabulary requirement expressed by the semantic is dragon '. The searching for the recommended vocabulary corresponding to the vocabulary requirement expressed by the semantic meaning can be the searching for the recommended vocabulary corresponding to the vocabulary requirement expressed by the semantic meaning in the vocabulary of the input method, or the searching for the recommended vocabulary corresponding to the vocabulary requirement expressed by the semantic meaning through networking.
The specific implementation of displaying the recommended word may refer to the implementation of step 103 in the method embodiment shown in fig. 1, and is not described herein again to avoid repetition.
Optionally, the searching for the associated vocabulary matched with the input content includes:
searching a related vocabulary matched with the input content, and searching a target vocabulary matched with the input content according to the related vocabulary, wherein the target vocabulary comprises the related vocabulary;
and the displaying the recommended vocabulary comprises:
and combining the part of the target vocabulary, which is different from the associated vocabulary, with the recommended vocabulary and displaying the part of the target vocabulary on the input method interface, and displaying the target vocabulary in a vocabulary candidate area of the input method interface.
In this embodiment, a target vocabulary matching the input content needs to be searched according to the associated vocabulary, for example: the user inputs the content of 'liwangzipangqi', finds out that the associated vocabulary matched with the 'liwangzipangqi' is 'Wangbaihe', and then finds out that the target vocabulary matched with the input content is 'Liwangbaihe' according to the 'Wangbaihe'. Therefore, the searched target vocabulary can be displayed in the vocabulary candidate area of the input method interface, so that the user can select whether the recommended vocabulary or the target vocabulary is input, and the accuracy of recommending the vocabulary matched with the input content is improved.
The above-mentioned portions of the target vocabulary other than the associated vocabulary may be understood as other vocabularies matching the input content in addition to the associated vocabulary, such as: the user input content is 'liwangzipangqi', the associated vocabulary is 'Wangzheqi', the target vocabulary is 'Liwangwqi', and the part of the target vocabulary different from the associated vocabulary is 'Liwangwqi'.
The above combining and displaying the part of the target vocabulary different from the associated vocabulary and the recommended vocabulary on the input method interface may be understood as combining the part of the target vocabulary different from the associated vocabulary and the recommended vocabulary according to the order of the input content, and displaying the combined vocabulary on the input method interface. For example: the associated vocabulary is 'King character side' and the target vocabulary is 'Li King character side' and the part of the target vocabulary different from the associated vocabulary is 'Li' and the recommended vocabulary is 'Qi', the combined vocabulary is 'Li Qi', and the vocabulary 'Li Qi' is displayed on the input method interface, so that the vocabulary more conforming to the user requirement can be provided.
In addition, the target vocabulary is displayed in the vocabulary candidate area of the input method interface, so that a user can select whether the combined recommended vocabulary or the target vocabulary is input, and the accuracy of recommending the vocabulary matched with the input content is improved.
Optionally, the displaying, in the input method interface, the part of the target vocabulary different from the associated vocabulary in combination with the recommended vocabulary, and the displaying the target vocabulary in the vocabulary candidate area of the input method interface includes:
combining the part of the target vocabulary, which is different from the associated vocabulary, with the recommended vocabulary, and displaying the part of the target vocabulary in a preset area of the input method interface in a form of a floating window, and displaying the target vocabulary in a vocabulary candidate area of the input method interface.
The preset area can be a preset semantic recognition vocabulary display area, and the preset area is other blank areas except the vocabulary candidate area of the input method interface. In this embodiment, the part of the target vocabulary different from the associated vocabulary is combined with the recommended vocabulary and displayed in the preset area of the input method interface in the form of a floating window, so that the recommended vocabulary identified according to the semantics can be highlighted and displayed in different areas with the target vocabulary, thereby achieving the purposes of enhancing the display effect and helping the user distinguish the vocabularies matched in different modes.
In this embodiment, the steps of recognizing the semantics of the associated vocabulary, searching for the recommended vocabulary matching the semantics of the associated vocabulary, and displaying the recommended vocabulary are explained based on the embodiment shown in fig. 1, so that the way of displaying the recommended vocabulary by the electronic device is more clear. In addition, a plurality of optional implementation manners are added to the embodiment shown in fig. 1, and these optional implementation manners may be implemented in combination with each other or individually, and both the operation of the user when inputting some special words and phrases can be simplified, the input efficiency can be improved, and the technical effects of improving the functions of the electronic device can be achieved.
Referring to fig. 3, fig. 3 is a structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device 300 includes:
the searching module 301 is configured to, when the electronic device 300 invokes an input method for input, obtain input content of the electronic device 300, and search for an associated vocabulary matched with the input content;
the recognition module 302 is configured to recognize the associated vocabulary to obtain semantics of the associated vocabulary;
and the display module 303 is configured to search for a recommended word matched with the semantic meaning of the associated word, and display the recommended word.
Optionally, the recognition module 302 is configured to recognize the associated vocabulary according to a pre-obtained semantic recognition rule of a vocabulary structure, so as to obtain a semantic meaning of the associated vocabulary indicating the vocabulary structure;
and the display module 303 is configured to search for a recommended word whose word structure matches the word structure of the semantic representation, and display the recommended word.
Optionally, the recognition module 302 is configured to recognize the associated vocabulary according to a recognition rule of a vocabulary semantic acquired in advance, so as to obtain a semantic meaning of the associated vocabulary, which represents a vocabulary requirement;
and the display module 303 is configured to search for a recommended vocabulary corresponding to the vocabulary requirement expressed by the semantic meaning, and display the recommended vocabulary.
Optionally, the searching module 301 is configured to search for an associated vocabulary matched with the input content, and search for a target vocabulary matched with the input content according to the associated vocabulary, where the target vocabulary includes the associated vocabulary;
and the display module 303 is configured to combine a part of the target vocabulary different from the associated vocabulary with the recommended vocabulary and display the target vocabulary on the input method interface, and display the target vocabulary in the vocabulary candidate area of the input method interface.
Optionally, the display module 303 is configured to combine a part of the target vocabulary different from the associated vocabulary with the recommended vocabulary, and display the combined part in a preset area of the input method interface in a form of a floating window, and display the target vocabulary in a vocabulary candidate area of the input method interface.
The electronic device 300 provided by the embodiment of the invention can match the associated vocabulary according to the input content and match the corresponding recommended vocabulary according to the semantics of the associated vocabulary, thereby simplifying the operation of inputting some special vocabularies by a user and improving the input efficiency.
Referring to fig. 4, fig. 4 is a structural diagram of another electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device 400 includes: at least one processor 401, memory 402, at least one network interface 404, and other user interfaces 403. The various components in the electronic device 400 are coupled together by a bus system 405. It is understood that the bus system 405 is used to enable connection communication between these components. The bus system 405 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 405 in fig. 4.
The user interface 403 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, etc.).
It will be appreciated that memory 402 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus DRAM (DRDRAM). The memory 402 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 402 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 4021 and application programs 4022.
The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The application programs 4022 include various application programs, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program for implementing the method according to the embodiment of the present invention may be included in the application 4022.
In the embodiment of the present invention, the electronic device 400 further includes: a computer program stored in the memory 402 and executable on the processor 401, specifically, a computer program in the application 4022, and when executed by the processor 401, implements the following steps:
when the electronic equipment calls an input method for inputting, acquiring input content of the electronic equipment, and searching a related vocabulary matched with the input content;
identifying the associated vocabulary to obtain the semantics of the associated vocabulary;
and searching a recommended word matched with the semantics of the associated word, and displaying the recommended word.
The method disclosed in the above embodiments of the present invention may be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 401. The Processor 401 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may reside in ram, flash memory, rom, prom, or eprom, registers, among other computer-readable storage media known in the art. The computer readable storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402 and performs the steps of the above method in combination with the hardware thereof. In particular, the computer readable storage medium has stored thereon a computer program which, when executed by the processor 401, implements the steps as in the above described vocabulary recommendation method embodiments.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the step of recognizing the associated vocabulary and obtaining the semantics of the associated vocabulary by the processor 401 includes:
recognizing the associated vocabulary according to a semantic recognition rule of a pre-acquired vocabulary structure to obtain the semantics of the expression vocabulary structure of the associated vocabulary;
and the processor 401 executes the steps of searching the recommended vocabulary matched with the semantics of the associated vocabulary and displaying the recommended vocabulary, including:
and searching a recommended word with a word structure matched with the word structure of the semantic representation, and displaying the recommended word.
Optionally, the step of recognizing the associated vocabulary and obtaining the semantics of the associated vocabulary by the processor 401 includes:
recognizing the associated vocabulary according to a recognition rule of the vocabulary semantics acquired in advance to obtain the semantics of the associated vocabulary representing the vocabulary requirements;
and the processor 401 executes the steps of searching the recommended vocabulary matched with the semantics of the associated vocabulary and displaying the recommended vocabulary, including:
and searching a recommended word corresponding to the word requirement expressed by the semantic meaning, and displaying the recommended word.
Optionally, the processor 401 executes the step of searching for the associated vocabulary matching the input content, including:
searching a related vocabulary matched with the input content, and searching a target vocabulary matched with the input content according to the related vocabulary, wherein the target vocabulary comprises the related vocabulary;
and processor 401 performs the step of displaying the recommended vocabulary, including:
and combining the part of the target vocabulary, which is different from the associated vocabulary, with the recommended vocabulary and displaying the part of the target vocabulary on the input method interface, and displaying the target vocabulary in a vocabulary candidate area of the input method interface.
Optionally, the processor 401 performs the step of displaying the target vocabulary in the input method interface by combining the part of the target vocabulary different from the associated vocabulary with the recommended vocabulary, and displaying the target vocabulary in the vocabulary candidate area of the input method interface, including:
combining the part of the target vocabulary, which is different from the associated vocabulary, with the recommended vocabulary, and displaying the part of the target vocabulary in a preset area of the input method interface in a form of a floating window, and displaying the target vocabulary in a vocabulary candidate area of the input method interface.
The electronic device 400 provided by the embodiment of the invention can match the associated vocabulary according to the input content and match the corresponding recommended vocabulary according to the semantics of the associated vocabulary, thereby simplifying the operation of inputting some special vocabularies by a user and improving the input efficiency.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A vocabulary recommendation method applied to an electronic device is characterized by comprising the following steps:
when the electronic equipment calls an input method for inputting, acquiring input content of the electronic equipment, and searching a related vocabulary matched with the input content;
identifying the associated vocabulary to obtain the semantics of the associated vocabulary;
searching a recommended word matched with the semantics of the associated word, and displaying the recommended word;
the identifying the associated vocabulary to obtain the semantics of the associated vocabulary includes: recognizing the associated vocabulary according to a recognition rule of the vocabulary semantics acquired in advance to obtain the semantics of the associated vocabulary representing the vocabulary requirements; the recognition rule of the vocabulary semantics is a recognition rule for recognizing corresponding vocabulary according to the semantics representing the vocabulary requirements;
and the searching for the recommended vocabulary matched with the semantics of the associated vocabulary and displaying the recommended vocabulary comprises: searching a recommended vocabulary corresponding to the vocabulary requirement expressed by the semantic meaning, and displaying the recommended vocabulary;
wherein, the searching for the associated vocabulary matched with the input content comprises: searching a related vocabulary matched with the input content, and searching a target vocabulary matched with the input content according to the related vocabulary, wherein the target vocabulary comprises the related vocabulary;
and the displaying the recommended vocabulary comprises: and combining the part of the target vocabulary, which is different from the associated vocabulary, with the recommended vocabulary and displaying the part of the target vocabulary on the input method interface, and displaying the target vocabulary in a vocabulary candidate area of the input method interface.
2. The method of claim 1, wherein the recognizing the associated vocabulary to obtain the semantics of the associated vocabulary comprises:
recognizing the associated vocabulary according to a semantic recognition rule of a pre-acquired vocabulary structure to obtain the semantics of the expression vocabulary structure of the associated vocabulary;
and the searching for the recommended vocabulary matched with the semantics of the associated vocabulary and displaying the recommended vocabulary comprises:
and searching a recommended word with a word structure matched with the word structure of the semantic representation, and displaying the recommended word.
3. The method of claim 1, wherein displaying the target vocabulary in the input method interface in combination with the recommended vocabulary and in a vocabulary candidate area of the input method interface, the portion of the target vocabulary different from the associated vocabulary comprising:
combining the part of the target vocabulary, which is different from the associated vocabulary, with the recommended vocabulary, and displaying the part of the target vocabulary in a preset area of the input method interface in a form of a floating window, and displaying the target vocabulary in a vocabulary candidate area of the input method interface.
4. A vocabulary recommendation apparatus, comprising:
the searching module is used for acquiring the input content of the electronic equipment and searching the associated vocabulary matched with the input content when the electronic equipment calls the input method for inputting;
the recognition module is used for recognizing the associated vocabulary to obtain the semantics of the associated vocabulary;
the display module is used for searching the recommended vocabulary matched with the semantics of the associated vocabulary and displaying the recommended vocabulary;
the recognition module is used for recognizing the associated vocabulary according to a recognition rule of the pre-acquired vocabulary semantics to obtain the semantics of the associated vocabulary representing the vocabulary requirements; the recognition rule of the vocabulary semantics is a recognition rule for recognizing corresponding vocabulary according to the semantics representing the vocabulary requirements;
the display module is used for searching recommended vocabularies corresponding to the vocabulary requirements expressed by the semantic meaning and displaying the recommended vocabularies;
the searching module is used for searching a related vocabulary matched with the input content and searching a target vocabulary matched with the input content according to the related vocabulary, wherein the target vocabulary comprises the related vocabulary;
and the display module is used for combining and displaying the part of the target vocabulary, which is different from the associated vocabulary, and the recommended vocabulary on the input method interface, and displaying the target vocabulary in the vocabulary candidate area of the input method interface.
5. The apparatus according to claim 4, wherein the recognition module is configured to recognize the related vocabulary according to a pre-obtained semantic recognition rule of a vocabulary structure, and obtain a semantic meaning of the related vocabulary indicating the vocabulary structure;
and the display module is used for searching recommended words with word structures matched with the word structures expressed by the semanteme and displaying the recommended words.
6. The apparatus of claim 4, wherein the display module is configured to combine a portion of the target vocabulary different from the associated vocabulary with the recommended vocabulary and display the combined portion in a floating window in a predetermined area of the input method interface, and display the target vocabulary in a vocabulary candidate area of the input method interface.
7. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps in the vocabulary recommendation method according to any of claims 1 to 3 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the vocabulary recommendation method according to any one of claims 1 to 3.
CN201710514520.8A 2017-06-29 2017-06-29 Vocabulary recommendation method and electronic equipment Active CN107346183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710514520.8A CN107346183B (en) 2017-06-29 2017-06-29 Vocabulary recommendation method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710514520.8A CN107346183B (en) 2017-06-29 2017-06-29 Vocabulary recommendation method and electronic equipment

Publications (2)

Publication Number Publication Date
CN107346183A CN107346183A (en) 2017-11-14
CN107346183B true CN107346183B (en) 2021-02-23

Family

ID=60256588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710514520.8A Active CN107346183B (en) 2017-06-29 2017-06-29 Vocabulary recommendation method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107346183B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111046268B (en) * 2018-10-12 2024-04-26 北京搜狗科技发展有限公司 Information recommendation method and device and electronic equipment
CN109542247B (en) * 2018-11-14 2023-03-24 腾讯科技(深圳)有限公司 Sentence recommendation method and device, electronic equipment and storage medium
CN109635125B (en) * 2018-12-20 2021-01-26 广东小天才科技有限公司 Vocabulary atlas building method and electronic equipment
CN112232061A (en) * 2019-06-28 2021-01-15 傲基科技股份有限公司 Content processing method, electronic device, and computer-readable storage medium
CN111222040B (en) * 2019-12-30 2023-06-13 航天信息股份有限公司企业服务分公司 Scheme self-matching processing method and system based on training requirements

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546228A (en) * 2009-05-07 2009-09-30 腾讯科技(深圳)有限公司 Input method and device for realizing English reminding
CN104133561A (en) * 2014-07-31 2014-11-05 百度在线网络技术(北京)有限公司 Auxiliary information display method and device based on input method
CN104978045A (en) * 2015-05-27 2015-10-14 腾讯科技(深圳)有限公司 Chinese character input method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546228A (en) * 2009-05-07 2009-09-30 腾讯科技(深圳)有限公司 Input method and device for realizing English reminding
CN104133561A (en) * 2014-07-31 2014-11-05 百度在线网络技术(北京)有限公司 Auxiliary information display method and device based on input method
CN104978045A (en) * 2015-05-27 2015-10-14 腾讯科技(深圳)有限公司 Chinese character input method and device

Also Published As

Publication number Publication date
CN107346183A (en) 2017-11-14

Similar Documents

Publication Publication Date Title
CN107346183B (en) Vocabulary recommendation method and electronic equipment
RU2683174C2 (en) Ink to text representation conversion
US9026428B2 (en) Text/character input system, such as for use with touch screens on mobile phones
US9390341B2 (en) Electronic device and method for manufacturing the same
KR102473543B1 (en) Systems and methods for digital ink interaction
US20170351371A1 (en) Touch interaction based search method and apparatus
RU2015104790A (en) METHOD AND DEVICE OF THE USER INTERFACE FOR THE USER TERMINAL
CN111052064B (en) Method for automatically providing gesture-based auto-completion suggestion and electronic device thereof
US20140006007A1 (en) Speech translation apparatus, method and program
US11361002B2 (en) Method and apparatus for recognizing entity word, and storage medium
US20160267200A1 (en) Truncated autosuggest on a touchscreen computing device
JP6087949B2 (en) Techniques for translating multiple consonants or vowels consisting of multiple characters into another language using a touch computing device
WO2016095689A1 (en) Recognition and searching method and system based on repeated touch-control operations on terminal interface
WO2014147712A1 (en) Information processing device, information processing method and program
WO2015161823A1 (en) Handwriting recognition method and device
US9395911B2 (en) Computer input using hand drawn symbols
CN107368205B (en) Handwriting input method and mobile terminal
JP2012098891A (en) Information processing system and information processing method
JP2018055491A (en) Language processing device, language processing method, and language processing program
US10127478B2 (en) Electronic apparatus and method
WO2015075920A1 (en) Input assistance device, input assistance method and recording medium
WO2022143523A1 (en) Vocabulary display method and apparatus, and electronic device
CN106293368B (en) Data processing method and electronic equipment
US20160078013A1 (en) Fault-tolerant input method editor
US8335680B2 (en) Electronic apparatus with dictionary function background

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
GR01 Patent grant
GR01 Patent grant