CN112445347A - Input method, input device and input device - Google Patents

Input method, input device and input device Download PDF

Info

Publication number
CN112445347A
CN112445347A CN201910798608.6A CN201910798608A CN112445347A CN 112445347 A CN112445347 A CN 112445347A CN 201910798608 A CN201910798608 A CN 201910798608A CN 112445347 A CN112445347 A CN 112445347A
Authority
CN
China
Prior art keywords
target
character string
entry
input
user
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
CN201910798608.6A
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.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201910798608.6A priority Critical patent/CN112445347A/en
Publication of CN112445347A publication Critical patent/CN112445347A/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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques

Abstract

The embodiment of the application discloses an input method, an input device and a device for inputting. An embodiment of the method comprises: receiving a current character string input by a user; extracting a target character string from the content of the current character string; sending a vocabulary entry acquisition request containing a target character string to a server, and receiving a target vocabulary entry returned by the server; and when the user is detected to have the intention of inputting the target entry, displaying the target entry. This embodiment improves the input efficiency.

Description

Input method, input device and input device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an input method, an input device and an input device.
Background
With the development of computer technology, the functions of input method application are more and more abundant. When the user inputs content by using the input method application, the input method application can perform entry query from a local word stock, so that a plurality of entries are displayed for the user to select.
Due to the limitation of many factors such as the machine performance of the user and the size of the local lexicon, when the user inputs some vocabulary entries in a segmented manner (e.g., "i want to go to the" old shan jia | taste | facial museum "), the input method application cannot learn the expressions of the users, so that when the user wants to input the same content again (e.g.," old shan jia taste facial museum "), the user still needs to input the content in a segmented manner for many times (e.g.," old shan jia | taste | facial museum "), so as to obtain the desired content. This results in low input efficiency.
Disclosure of Invention
The embodiment of the application provides an input method, an input device and a device for inputting, and aims to solve the technical problem of low input efficiency in the prior art.
In a first aspect, an embodiment of the present application provides an input method, where the method includes: receiving a current character string input by a user; extracting a target character string from the content of the current character string; sending a vocabulary entry acquisition request containing a target character string to a server, and receiving a target vocabulary entry returned by the server; and when the user is detected to have the intention of inputting the target entry, displaying the target entry.
In a second aspect, an embodiment of the present application provides an input device, including: a receiving unit configured to receive a current character string input by a user; an extraction unit configured to extract a target character string from the above content of the current character string; a sending unit configured to send a term acquisition request including a target character string to a server and receive a target term returned by the server; and the display unit is configured to display the target entry when the user is detected to have the intention of inputting the target entry.
In a third aspect, an embodiment of the present application provides an apparatus for input, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to be executed by the one or more processors and include instructions for: receiving a current character string input by a user; extracting a target character string from the content of the current character string; sending a vocabulary entry acquisition request containing a target character string to a server, and receiving a target vocabulary entry returned by the server; and when the user is detected to have the intention of inputting the target entry, displaying the target entry.
In a fourth aspect, embodiments of the present application provide a computer-readable medium on which a computer program is stored, which when executed by a processor, implements the method as described in the first aspect above.
According to the input method, the input device and the input device, the current character string input by a user is received, so that the target character string is extracted from the content of the current character string; then sending a vocabulary entry acquisition request containing the target character string to the server, and receiving the target vocabulary entry returned by the server; thus, when it is detected that the user has an intention to input the target entry, the target entry may be presented. Since the mining operation of the entries is executed by the server, the entry mining process is not limited by factors such as the performance of a user machine, the size of a local word stock and the like, and when a user inputs some entries in a segmented manner, the target entries which the user wants to express can be obtained from the server. Therefore, when the user wants to input the target entry again, the target entry can be displayed without segmented input, and the input efficiency is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a flow diagram of one embodiment of an input method according to the present application;
FIG. 2 is a schematic diagram of an application scenario of an input method according to the present application;
FIG. 3 is a flow diagram of yet another embodiment of an input method according to the present application;
FIG. 4 is a schematic diagram of an embodiment of an input device according to the present application;
FIG. 5 is a schematic diagram of a structure of an apparatus for input according to the present application;
FIG. 6 is a schematic diagram of a server in accordance with some embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to FIG. 1, a flow 100 of one embodiment of an input method according to the present application is shown. The input method can be operated in various electronic devices including but not limited to: a server, a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop, a car computer, a desktop computer, a set-top box, an intelligent tv, a wearable device, and so on.
The input method application mentioned in the embodiment of the application can support various input methods. The input method may be an encoding method used for inputting various symbols to electronic devices such as computers and mobile phones, and a user may conveniently input a desired character or character string to the electronic devices using the input method application. It should be noted that, in the embodiment of the present application, in addition to the common chinese input method (such as pinyin input method, wubi input method, zhuyin input method, phonetic input method, handwriting input method, etc.), the input method may also support other language input methods (such as japanese hiragana input method, korean input method, etc.), and the input method and the language category of the input method are not limited at all.
In addition, the electronic device on which the input method in the embodiment of the present application operates may be in communication connection with a server. The server may be a server that provides support for input method applications. Thus, the electronic device may send a request (e.g., an entry obtaining request) to the server and receive information (e.g., an entry) returned by the server.
The server may be various types of servers. For example, it may be a cloud server or a physical server. The cloud server is a simple and efficient computing service which is safe and reliable, and the processing capacity of the computing service can be elastically stretched, and the management mode of the computing service is simpler and more efficient than that of a physical server.
The input method in this embodiment may include the following steps:
step 101, receiving a current character string input by a user.
In this embodiment, the execution subject of the input method (e.g., the electronic device described above) may receive the current character string input by the user. Here, the user may use any input method to input the current character string, for example, using pinyin, wubi, stroke, voice, handwriting, and the like to input in the input method application, which is not limited herein.
In one scenario, where the user has entered multiple words in multiple instances, the current character string may be an encoded character string (e.g., a pinyin for a word) that the user is entering using the input method application. Taking the pinyin input method as an example, the user inputs 'i want to go', 'old shan', 'home', 'taste' and 'facial museum' in sequence. At this time, if the user wants to input the word "eat", the pinyin character string "chifan" may be input, and the pinyin character string "chifan" may be used as the current character string.
In another scenario, the user inputs the encoded character strings of a plurality of words (e.g. pinyin corresponding to a long sentence) at one time, and the current character string may be the encoded character string of a word or a word that the user has not selected. For example, using the pinyin input method, if a user wants to input "i want to go to the old Shanxi museum for eating", the user may first input the pinyin "woxiangqulaoshanjiaweimailianguanchifan". Then, the input method usually matches the encoded character strings according to the input sequence, converts the encoded character strings into corresponding words or characters, and displays the matching results (i.e., candidate items) of the unselected encoded character strings to the user for the user to select. In the process of user selection, a display result like "i want to go to the old Shanxi taste noodle chifan" may be presented. At this time, "chifan" may be taken as the current character string.
Step 102, extracting a target character string from the above content of the current character string.
In this embodiment, the execution subject may first determine the above content of the current character string; then, the target character string is extracted from the above contents. The above content may be content input before the current character string is input. For example, the user inputs "the lunch, i.e. i want to go to the old Shanan taste museum" before inputting the current character string "chifan". At this time, the above contents are "the lunch is eaten, i.e. I want to go to the old Shanxi Wei Mian". The target character string may be a plurality of continuous characters in the above content, such as "old Shanjia Wei Mian", "want to go to old Shanjia Wei Mian", or "I want to go to old Shanjia Wei Mian", etc.
It should be noted that, the execution body may adopt a preset rule to select the target character string in the above content. For example, the selection is performed according to a set number of characters, or according to a set number of words.
In some optional implementations of the embodiment, the execution main body may extract the target character string by using a preset number (for example, 8 or 9 characters, etc.) of characters located at the end of the above content of the current character string as the target character string. As an example, the content above is "xiaoming, which has lunch and i want to go to the old shanks 'taste facial museum", and at this time, a character string (i.e., "want to go to the old shanks' taste facial museum") formed by a preset number (e.g., 8) of characters located at the end of the content above may be used as the target character string.
In some optional implementations of this embodiment, the executing entity may search the last punctuation mark from the above content of the current character string. Then, the character string following the punctuation mark in the above content is set as a target character string, and the target character string is extracted. As an example, the above content is "xiaoming, i.e. the user has lunch and i want to go to the old shannon taste facial library", and the character string after the last punctuation mark in the above content is "i want to go to the old shannon taste facial library", and at this time, the character string can be used as the target character string.
In some optional implementation manners of this embodiment, the execution main body may extract the target character string by taking a last character string with complete semantics in the above content of the current character string as the target character string. In practice, the language structure unit that can independently express more complete semantics is a sentence, and thus, the last sentence in the above contents can be taken as a target character string.
The rule for selecting the target character string may be preset as needed, and is not limited to the above list.
Step 103, sending an entry obtaining request containing the target character string to the server, and receiving the target entry returned by the server.
In this embodiment, the execution main body may send a term obtaining request including the target character string to a server (e.g., a server providing support for an input method application) so that the server mines the target term corresponding to the target character string. In practice, the target entry may be one or more consecutive words in the target string. For example, the target character string is "i want to go to the old shanks taste facial library", and the target entry may be "old shanks taste facial library".
In practice, the server may employ various entry mining methods to mine the target entry. As an example, the target terms may be derived based on a pre-trained model for term mining. The term mining model may analyze (e.g., extract features of) an input character string (e.g., a sentence including a plurality of words) and generate a term corresponding to the character string. The term mining model can be obtained by adopting a machine learning method to train in advance based on a corpus. In practice, the term mining Model may be trained by using common natural language processing models such as HMM (Hidden Markov Model), CRF (conditional random field), and neural network models. The server may also obtain the target entry in other manners (e.g., a manner based on a vocabulary, a manner of combining a vocabulary with an entry mining model, etc.), which is not limited herein.
In this embodiment, after obtaining the target entry corresponding to the target character string, the server may return the target entry to the execution main body. In practice, after receiving the target entry returned by the server, the execution main body may store the target entry into a local personalized entry library. The personalized entry library is used for storing entries mined by the server.
Optionally, the target entry may be extracted from the target character string by the server, and the target entry may be composed of a plurality of words, and the plurality of words are input by a user in a segmented manner. For example, the target character string sent to the server is "i want to go to the old shanks taste facial museum", and the target vocabulary entry may be "old shanks taste facial museum". The "old Shanjia flavor facial library" can be input by the user in the sequence of "old Shana", "home", "flavor" and "facial library".
And 104, when the user is detected to have the intention of inputting the target entry, displaying the target entry.
In this embodiment, the content input by the user in the input method application can be received in real time, and the input intention of the user can be detected based on the content. As an example, when a user inputs a pinyin character string, the text corresponding to the pinyin character string is the input intention of the user. When the user inputs the voice of a certain word, the character corresponding to the voice is the input intention of the user. Therefore, when the user detects that the user has the intention of inputting the target entry, the target entry can be displayed in the input method application.
In some optional implementation manners of this embodiment, when it is detected that the user inputs pinyin, pinyin abbreviations or handwritten characters corresponding to the target entry, the target entry may be presented as a candidate. Specifically, after the target entry returned by the server is received, the target entry can be stored in the local personalized entry library. Thus, when a user inputs pinyin, pinyin abbreviations or handwritten characters using an input method application, entries corresponding to the pinyin, pinyin abbreviations or handwritten characters may be queried from the personalized entry bank and the preset entry bank. If the entry is inquired in the personalized entry library, the entry can be used as one of the candidate items to be displayed. Therefore, when the condition that the user inputs the pinyin or pinyin abbreviations corresponding to the target entry is detected, the target entry is preferentially displayed in the input method application.
As an example, as shown in fig. 2. The target entry is 'Laosanjia flavor noodle house'. When detecting that the user inputs the pinyin "laoshanjiaweinianguan" or inputs the pinyin abbreviation "lsjwmg", the target entry "Laoshanjiaweimian" can be displayed at the position of the candidate word applied by the input method.
In some optional implementation manners of this embodiment, when it is detected that the user enters the speech corresponding to the target entry, the target entry may be presented as a candidate.
In some optional implementations of the present embodiment, when a target number of characters in the target entry is detected to be input by a user (for example, by handwriting input, click input, or the like), the target entry may be presented as a candidate. In practice, the character entered by the user may be the character at the head end of the target entry. For example, the target entry is "old Shaanjia taste facial museum", and when the user inputs "old Shaanjia", the target entry can be associated.
Here, the above-mentioned target number may be a fixed value set in advance, for example, 2 or 3. That is, when the user inputs two or three words at the head of the target entry, the target entry can be associated and presented. The target number may be determined according to the number of characters in the target entry. For example, the number of characters in the target entry may be 30% or 50%, etc., and is not limited herein.
It should be noted that the detection method of the input intention of the user is not limited to the above-mentioned example, and the intention detection may be performed by a plurality of detection methods at the same time, or other detection methods and intention detection may be used as necessary, and the present invention is not limited thereto.
According to the input method provided by the embodiment of the application, the current character string input by a user is received, so that the target character string is extracted from the content above the current character string; then sending a vocabulary entry acquisition request containing the target character string to the server, and receiving the target vocabulary entry returned by the server; thus, when it is detected that the user has an intention to input the target entry, the target entry may be presented. Since the mining operation of the entries is executed by the server, the entry mining process is not limited by factors such as the performance of a user machine, the size of a local word stock and the like, and when a user inputs some entries in a segmented manner, the target entries which the user wants to express can be obtained from the server. Therefore, when the user wants to input the target entry again, the target entry can be displayed without segmented input, and the input efficiency is improved.
With further reference to fig. 3, a flow 200 of yet another embodiment of an input method is shown. The process 300 of the input method includes the following steps:
step 301, receiving a current character string input by a user.
Step 301 in this embodiment can refer to step 101 in the embodiment shown in fig. 1, and is not described here again.
Step 302, using a preset number of characters at the end of the above-mentioned content of the current character string as a target character string, and extracting the above-mentioned target character string.
In this embodiment, the execution body may extract the target character string by using a preset number (for example, 8 or 9 characters or the like) of characters located at the end of the above content of the current character string as the target character string. As an example, the above content is "the lunch, i.e. i want to go to the old shanks taste facial department", at this time, a character string (i.e. the character string "want to go to the old shanks taste facial department") composed of a preset number (e.g. 8) of characters located at the end of the above content may be used as the target character string.
Step 303, sending an entry obtaining request including the target character string to the server, and receiving the target entry returned by the server.
Step 303 in this embodiment can refer to step 103 in the embodiment shown in fig. 1, and is not described here again.
And 304, displaying the target entry when detecting that the user inputs pinyin, pinyin abbreviations or handwritten characters corresponding to the target entry.
In this embodiment, when it is detected that the user inputs the pinyin, pinyin abbreviation or handwritten character corresponding to the target entry, the target entry may be displayed in the input method application. Specifically, after the target entry returned by the server is received, the target entry can be stored in the local personalized entry library. Thus, when a user inputs pinyin, pinyin abbreviations or handwritten characters using an input method application, entries corresponding to the pinyin, pinyin abbreviations or handwritten characters may be queried from the personalized entry bank and the preset entry bank. If the entry is inquired in the personalized entry library, the entry can be preferentially displayed. Therefore, when the fact that the user inputs the pinyin or pinyin abbreviations corresponding to the target entry is detected, the target entry can be displayed in the input method application.
As an example, the target entry is "old shan home taste facial museum". When detecting that the user inputs the pinyin "laoshanjiaweinianguan" or inputs the pinyin abbreviation "lsjwmg", the target entry "Laoshanjiaweimian" can be displayed at the position of the candidate word applied by the input method.
The process 300 of the input method in this embodiment involves presenting the target entry in the input method application when it is detected that the user inputs pinyin, pinyin abbreviations or handwritten characters corresponding to the target entry. Therefore, when the user wants to input the target entry again, the target entry can be displayed without segmented input, and the input efficiency is improved.
With further reference to fig. 4, as an implementation of the methods shown in the above figures, the present application provides an embodiment of an input device, which corresponds to the embodiment of the method shown in fig. 1, and which is particularly applicable to various electronic devices.
As shown in fig. 4, the input device 400 according to the present embodiment includes: a receiving unit 401 configured to receive a current character string input by a user; an extracting unit 402 configured to extract a target character string from the above content of the above current character string; a sending unit 403, configured to send a term obtaining request including the target character string to a server, and receive a target term returned by the server; and the presentation unit 304 is configured to present the target entry when it is detected that the user has an intention to input the target entry.
In some optional implementations of the present embodiment, the extracting unit 402 may be further configured to: and taking the characters with the preset number at the tail of the content of the current character string as a target character string, and extracting the target character string.
In some optional implementations of the present embodiment, the extracting unit 402 may be further configured to: searching the last punctuation mark from the above content of the current character string; and extracting the target character string by taking the character string positioned after the punctuation mark in the content as the target character string.
In some optional implementations of the present embodiment, the extracting unit 402 may be further configured to: and taking the last character string with complete semantics in the content of the current character string as a target character string, and extracting the target character string.
In some optional implementations of the present embodiment, the presentation unit 304 may be further configured to: when detecting that a user inputs pinyin, pinyin abbreviations or handwritten characters corresponding to the target entry, showing the target entry as a candidate item; or when detecting that the user inputs the voice corresponding to the target entry, showing the target entry as a candidate item.
In some optional implementations of the present embodiment, the presentation unit 304 may be further configured to: and when detecting that the target number of characters in the target entry are input by the user, displaying the target entry as a candidate item.
In some optional implementations of the embodiment, the target entry is extracted from the target character string by the server, the target entry is composed of a plurality of words, and the plurality of words are input by a user in a segmented manner.
The device provided by the above embodiment of the present application, by receiving the current character string input by the user, extracts the target character string from the above content of the current character string; then sending a vocabulary entry acquisition request containing the target character string to the server, and receiving the target vocabulary entry returned by the server; thus, when it is detected that the user has an intention to input the target entry, the target entry may be presented. Since the mining operation of the entries is executed by the server, the entry mining process is not limited by factors such as the performance of a user machine, the size of a local word stock and the like, and when a user inputs some entries in a segmented manner, the target entries which the user wants to express can be obtained from the server. Therefore, when the user wants to input the target entry again, the target entry can be displayed without segmented input, and the input efficiency is improved.
Fig. 5 is a block diagram illustrating an apparatus 500 for pushing information according to an exemplary embodiment, where the apparatus 500 may be an intelligent terminal or a server. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or slide action but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the device 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the aforementioned communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by 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), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 6 is a schematic diagram of a server in some embodiments of the present application. The server 600 may vary significantly due to configuration or performance, and may include one or more Central Processing Units (CPUs) 622 (e.g., one or more processors) and memory 632, one or more storage media 630 (e.g., one or more mass storage devices) storing applications 642 or data 644. Memory 632 and storage medium 630 may be, among other things, transient or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 622 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the server 600.
The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input-output interfaces 658, one or more keyboards 656, and/or one or more operating systems 641, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable medium having instructions therein which, when executed by a processor of an apparatus (smart terminal or server), enable the apparatus to perform an input method, the method comprising: receiving a current character string input by a user; extracting a target character string from the content of the current character string; sending a vocabulary entry acquisition request containing the target character string to a server, and receiving a target vocabulary entry returned by the server; and when the user is detected to have the intention of inputting the target entry, displaying the target entry.
Optionally, the extracting the target character string from the content of the current character string includes: and taking the characters with the preset number at the tail of the content of the current character string as a target character string, and extracting the target character string.
Optionally, the extracting the target character string from the content of the current character string includes: searching the last punctuation mark from the above content of the current character string; and extracting the target character string by taking the character string positioned after the punctuation mark in the content as the target character string.
Optionally, the extracting the target character string from the content of the current character string includes: and taking the last character string with complete semantics in the content of the current character string as a target character string, and extracting the target character string.
Optionally, when it is detected that the user has an intention to input the target entry, displaying the target entry in the input method application includes: when detecting that a user inputs pinyin, pinyin abbreviations or handwritten characters corresponding to the target entry, showing the target entry as a candidate item; or when detecting that the user inputs the voice corresponding to the target entry, showing the target entry as a candidate item.
Optionally, when it is detected that the user has an intention to input the target entry, displaying the target entry in the input method application includes: and when detecting that the target number of characters in the target entry are input by the user, displaying the target entry as a candidate item.
Optionally, the target entry is extracted from the target character string by the server, the target entry is composed of a plurality of words, and the plurality of words are input by the user in a segmented manner.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
The present application provides an input method, an input device and an input device, and the principles and embodiments of the present application are described herein using specific examples, and the descriptions of the above examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An input method, characterized in that the method comprises:
receiving a current character string input by a user;
extracting a target character string from the content of the current character string;
sending a vocabulary entry acquisition request containing the target character string to a server, and receiving a target vocabulary entry returned by the server;
and when the user is detected to have the intention of inputting the target entry, displaying the target entry.
2. The method of claim 1, wherein extracting the target string from the above content of the current string comprises:
and taking the characters with the preset number at the tail of the content of the current character string as a target character string, and extracting the target character string.
3. The method of claim 1, wherein extracting the target string from the above content of the current string comprises:
searching the last punctuation mark from the above content of the current character string;
and taking the character string positioned behind the punctuation mark in the content as a target character string, and extracting the target character string.
4. The method of claim 1, wherein extracting the target string from the above content of the current string comprises:
and taking the last character string with complete semantics in the above content of the current character string as a target character string, and extracting the target character string.
5. The method of claim 1, wherein presenting the target entry upon detecting that the user has an intent to input the target entry comprises:
when detecting that a user inputs pinyin, pinyin abbreviations or handwritten characters corresponding to the target entry, showing the target entry as a candidate item; or
And when detecting that the user inputs the voice corresponding to the target entry, displaying the target entry as a candidate item.
6. The method of claim 1, wherein presenting the target entry upon detecting that the user has an intent to input the target entry comprises:
and when detecting that the target number of characters in the target entry are input by the user, displaying the target entry as a candidate item.
7. The method according to any one of claims 1 to 6, wherein the target entry is extracted from the target string by the server, the target entry is composed of a plurality of words, and the plurality of words are input by a user in a segmented manner.
8. An input device, the device comprising:
a receiving unit configured to receive a current character string input by a user;
an extracting unit configured to extract a target character string from the above content of the current character string;
a sending unit configured to send a term obtaining request including the target character string to a server and receive a target term returned by the server;
and the display unit is configured to display the target entry when the user is detected to have the intention of inputting the target entry.
9. An apparatus for input, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for:
receiving a current character string input by a user;
extracting a target character string from the content of the current character string;
sending a vocabulary entry acquisition request containing the target character string to a server, and receiving a target vocabulary entry returned by the server;
and when the user is detected to have the intention of inputting the target entry, displaying the target entry.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201910798608.6A 2019-08-27 2019-08-27 Input method, input device and input device Pending CN112445347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910798608.6A CN112445347A (en) 2019-08-27 2019-08-27 Input method, input device and input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910798608.6A CN112445347A (en) 2019-08-27 2019-08-27 Input method, input device and input device

Publications (1)

Publication Number Publication Date
CN112445347A true CN112445347A (en) 2021-03-05

Family

ID=74741791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910798608.6A Pending CN112445347A (en) 2019-08-27 2019-08-27 Input method, input device and input device

Country Status (1)

Country Link
CN (1) CN112445347A (en)

Similar Documents

Publication Publication Date Title
CN108304412B (en) Cross-language search method and device for cross-language search
CN107688399B (en) Input method and device and input device
CN107132927B (en) Input character recognition method and device for recognizing input characters
CN108628461B (en) Input method and device and method and device for updating word stock
CN107784037B (en) Information processing method and device, and device for information processing
CN109979435B (en) Data processing method and device for data processing
CN112837668B (en) Voice processing method and device for processing voice
CN114610163A (en) Recommendation method, apparatus and medium
CN109917927B (en) Candidate item determination method and device
CN112445347A (en) Input method, input device and input device
CN110780749B (en) Character string error correction method and device
CN113515618A (en) Voice processing method, apparatus and medium
CN109976548B (en) Input method and input device
CN109426359B (en) Input method, device and machine readable medium
CN110716653B (en) Method and device for determining association source
CN110929122A (en) Data processing method and device and data processing device
WO2022105229A1 (en) Input method and apparatus, and apparatus for inputting
CN115543099A (en) Input method, device and device for input
CN110244861B (en) Data processing method and device
CN114330305A (en) Entry recalling method and device and entry recalling device
CN114510154A (en) Input method, input device and input device
CN113625885A (en) Input method, input device and input device
CN114253404A (en) Input method, input device and input device
CN113534972A (en) Entry prompting method and device and entry prompting device
CN115494965A (en) Request sending method and device and request sending device

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