CN116560515A - Word display method, device, terminal and storage medium - Google Patents

Word display method, device, terminal and storage medium Download PDF

Info

Publication number
CN116560515A
CN116560515A CN202210112508.5A CN202210112508A CN116560515A CN 116560515 A CN116560515 A CN 116560515A CN 202210112508 A CN202210112508 A CN 202210112508A CN 116560515 A CN116560515 A CN 116560515A
Authority
CN
China
Prior art keywords
word
target
candidate bar
displaying
terminal
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
CN202210112508.5A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202210112508.5A priority Critical patent/CN116560515A/en
Publication of CN116560515A publication Critical patent/CN116560515A/en
Pending legal-status Critical Current

Links

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/0236Character input methods using selection techniques to select from displayed items
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/216Parsing using statistical methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Data Mining & Analysis (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The application discloses a word display method, a word display device, a terminal and a storage medium, and belongs to the technical field of computers. According to the method and the device, the matched words and the self-defined words are respectively displayed through the two different candidate bars, and because the two types of words are displayed in the different candidate bars, the display effect is visual and is not mutually interfered, so that the object can quickly select the words needing to be input in the corresponding candidate bars based on the actual requirements of the object, and the input efficiency can be improved.

Description

Word display method, device, terminal and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a word display method, a device, a terminal, and a storage medium.
Background
Currently, when an object performs text input, the terminal can display a plurality of words matched with pinyin corresponding to a character string through the character string input by the object as candidates, and the object can select a word desired to be input from the displayed plurality of words. However, some objects often need to input some uncommon words due to own requirements, and the terminal cannot automatically display the uncommon words according to the character strings, so that the input efficiency is low.
In the related art, the terminal is provided with a function of a custom word, the object can set the rarely used word with high use frequency as the custom word, the custom word is associated with a specific character string, and when the terminal detects that the object inputs the specific character string, the associated custom word can be displayed for the object to input.
In the above technology, the terminal may display the word matched with the input character string and the associated custom word at the same time, and in the case that the object does not need to input the custom word, the word to be input still needs to be selected from the custom word and the word matched with the character string, which reduces the input efficiency.
Disclosure of Invention
The embodiment of the application provides a word display method, a word display device, a word display terminal and a storage medium. The technical scheme is as follows:
in one aspect, a word display method is provided, the method including:
acquiring a target character string;
displaying at least one first word in a first candidate bar, wherein the first word is a word matched with the target character string;
and displaying at least one second word in the second candidate bar, wherein the second word is a custom word corresponding to the target character string.
In one aspect, there is provided a word display device, the device comprising:
the acquisition module is used for acquiring the target character string;
the first display module is used for displaying at least one first word in the first candidate bar, wherein the first word is a word matched with the target character string;
the second display module is used for displaying at least one second word in the second candidate bar, wherein the second word is a custom word corresponding to the target character string.
In some embodiments, the second display module is configured to perform any one of:
displaying all characters of the target word in the at least one second word in the second candidate bar;
in the second candidate bar, a front target number of characters of the target word is displayed, the target number being the number of characters that the second candidate bar supports to display.
In some embodiments, the target word is a word of the at least one second word that is ranked first; or, the target word is a word marked as a priority display in the at least one second word; or the target word is the word with the largest selected number of times in the at least one second word.
In some embodiments, the selected number of times is the number of times the target object is selected on the currently logged-in terminal; or the selected times are the times that the target object is selected on a plurality of terminals; alternatively, the selected number is the number of times selected by the plurality of objects.
In some embodiments, the second display module is configured to display, in the second candidate bar, a partial character of a second word of the at least one second word other than the target word.
In some embodiments, the second display module is configured to display all characters of each of the at least one second word in a list form in response to a trigger operation of the expanded option of the second candidate bar.
In some embodiments, the second display module is configured to perform any one of:
displaying all characters of each second word in a list form according to the preset sequence of the at least one second word;
displaying all characters of each second word in a list form according to the order of the selected times of the at least one second word from big to small.
In some embodiments, the obtaining module is configured to obtain, based on the keyboard key corresponding to the input operation, at least one set of target character strings corresponding to the keyboard key;
the second display module is used for acquiring at least one second word based on the at least one group of target character strings, wherein a preset mapping relation exists between the second word and the target character strings; in the second candidate bar, the at least one second word is displayed.
In some embodiments, the second display module is configured to obtain at least one second word based on the keyboard key corresponding to the input operation, where the second word has a preset mapping relationship with the keyboard key; in the second candidate bar, at least one second word is displayed.
In some embodiments, the second display module is configured to display the second candidate bar if a custom word function is enabled, where the custom word function is configured to provide a function of displaying the at least one second word.
In some embodiments, the second display module is configured to display the second candidate bar in response to a second word corresponding to the target string being present.
In some embodiments, the second display module is configured to display the second candidate bar outside the first candidate bar.
In some embodiments, the first display module is configured to, in response to a trigger operation of the expansion option of the first candidate bar, collapse the second candidate bar and display all characters of each of the at least one first word.
In some embodiments, the second candidate bar is a cloud candidate bar.
In some embodiments, the second display module is configured to display at least one of a third word and an emoticon that matches the target character string in the second candidate bar, where the third word is a word that has a growth rate of heat information greater than a growth rate threshold or a growth rate of the heat information located at a first target digit, and the heat information is used to indicate popularity of the word.
In some embodiments, the first word is a word matching a target object among words matching the target character string, or the first word is a word having heat information greater than a heat threshold or the heat information being located in a preceding target digit among words matching the target character string.
In one aspect, a terminal is provided that includes one or more processors and one or more memories having at least one computer program stored therein, the at least one computer program loaded and executed by the one or more processors to implement the word display method.
In one aspect, a computer readable storage medium having at least one computer program stored therein is provided, the at least one computer program being loaded and executed by a processor to implement the word display method.
In one aspect, a computer program product is provided that includes at least one computer program stored in a computer readable storage medium. The processor of the terminal reads the at least one computer program from the computer-readable storage medium, and the processor executes the at least one computer program so that the terminal implements the word display method.
According to the technical scheme, the matched words and the custom words are respectively displayed through the two different candidate bars, and because the two types of words are respectively displayed in the different candidate bars, the display effect is visual and is not mutually interfered, so that the object can quickly select the words to be input in the corresponding candidate bars based on the actual requirements of the object, and the input efficiency can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment of a word display method according to an embodiment of the present application;
FIG. 2 is a flowchart of a word display method provided in an embodiment of the present application;
FIG. 3 is a flowchart of a word display method provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of an input target string according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a first candidate bar provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a second candidate bar provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of a first candidate bar expansion option provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of a second candidate bar expansion option provided in an embodiment of the present application;
fig. 9 is a schematic diagram of a cloud candidate bar provided in an embodiment of the present application;
FIG. 10 is a flowchart of a word display method provided in an embodiment of the present application;
fig. 11 is a schematic diagram of acquiring a target character string according to an embodiment of the present application;
fig. 12 is a schematic diagram of acquiring a target character string according to an embodiment of the present application;
FIG. 13 is a schematic flow chart diagram of a word display method provided by an embodiment of the present application;
FIG. 14 is a schematic diagram of a word display method according to an embodiment of the present disclosure;
FIG. 15 is a schematic diagram of a word display method according to an embodiment of the present disclosure;
FIG. 16 is a schematic diagram of a select word provided by an embodiment of the present application;
fig. 17 is a schematic structural diagram of a word display device according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," "second," and the like in this application are used to distinguish between identical or similar items that have substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the "first," "second," and "nth" terms, nor is it limited to the number or order of execution.
In the following description of the implementation environment of the present application, fig. 1 is a schematic diagram of an implementation environment of a word display method provided in an embodiment of the present application, and referring to fig. 1, the implementation environment includes a terminal 101 and a server 102, where the terminal 101 and the server 102 are connected to each other through a wired network or a wireless network.
The terminal 101 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a vehicle-mounted terminal, or a smart home appliance, which is not limited in this embodiment. The terminal 101 is installed and operated with an input method application, and the input method application may be an application carried by an operating system of the terminal 101, or may be a third party application installed based on the operating system, which is not limited in the embodiment of the present application.
The server 102 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a content delivery network (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligence platform. The server 102 is configured to provide background services for input method applications of the terminal 101. Alternatively, the number of the terminals or the servers may be greater or less, which is not limited in the embodiments of the present application.
Based on the implementation environment shown in fig. 1, fig. 2 is a flowchart of a word display method provided in an embodiment of the present application, where the method is performed by a terminal, and as shown in fig. 2, the embodiment includes the following steps.
201. The terminal acquires the target character string.
In some embodiments, the terminal is installed and run with an input method application provided with a virtual keyboard through which the target object can enter text in the terminal. Optionally, the virtual keyboard is a 26-key full keyboard, a nine-square keyboard, a handwriting input keyboard, a voice-to-text input keyboard, a korean input keyboard, a japanese input keyboard, or an input keyboard of other languages, and the specific type of the virtual keyboard is not limited in the embodiments of the present application.
Illustratively, the virtual keyboard is a 26-key full keyboard. The target character string is a character string formed by the characters corresponding to the clicked keyboard keys in the virtual keyboard. Optionally, the target string comprises at least one of letters, numbers and symbols.
Alternatively, in the case where the terminal has a physical keyboard, for example, the terminal is a desktop computer or a notebook computer, the target character string refers to a character string formed by characters corresponding to the clicked key in the physical keyboard, which is not limited in the embodiment of the present application.
202. And the terminal displays at least one first word in the first candidate bar, wherein the first word is a word matched with the target character string.
In some embodiments, the first term is a term retrieved based on a first thesaurus, the first thesaurus being a base thesaurus. Optionally, the first word stock includes common words. Of course, the first word may also be a word retrieved based on a professional word stock or an object word stock, where the professional word stock is used to store words in a specific field, and the object word stock is used to store common words of an object, etc.
Optionally, in the case that the language is chinese, the first word is a word whose pinyin matches the target character string. For example, the target character string is the pinyin of the first word, and for example, the target character string is the initial of the pinyin of each word in the first word. It will be appreciated that the method is also applicable to any kind of ideograms, and the embodiment of the present application is described only by taking chinese as an example.
Alternatively, in the case where the language is other than chinese, the first word means that the word itself matches a target character string, for example, the target character string is the first letters of the first word, and for example, each character in the target character string is the first letter of each word in the first word. The language is english, french, etc., and the embodiment of the present application is not limited thereto.
203. And displaying at least one second word in the second candidate bar by the terminal, wherein the second word is a custom word corresponding to the target character string.
The custom word is a word which is applied by an input method, for example, the custom word is a rare word which is required to be frequently input by a target object or a word which comprises more characters. Optionally, the custom word includes one or more of letters, numbers, words, emoticons, punctuation marks.
In some embodiments, the server obtains at least one second word from the preset custom word based on the target string.
According to the technical scheme, the matched words and the custom words are respectively displayed through the two different candidate bars, and because the two types of words are respectively displayed in the different candidate bars, the display effect is visual and is not mutually interfered, so that the object can quickly select the words to be input in the corresponding candidate bars based on the actual requirements of the object, and the input efficiency can be improved.
The embodiment corresponding to fig. 2 is a brief description of the word display method proposed in the present application. In the embodiment of the present application, with reference to fig. 3, the method is described in detail by taking a virtual keyboard provided by an input method application as a full input keyboard as an example. Fig. 3 is a flowchart of a word display method provided in an embodiment of the present application, where the method is performed by a terminal, as shown in fig. 3, and in one possible implementation, the embodiment includes the following steps.
301. The terminal obtains a target character string based on the full-input keyboard.
In some embodiments, the terminal is running an input method application, and in response to triggering an input function on the terminal, a full input keyboard provided by the input method application is displayed. And the terminal responds to the clicking operation of the keyboard keys in the full-input keyboard to acquire the input target character string. Fig. 4 is a schematic diagram of inputting a target character string according to an embodiment of the present application, and as shown in fig. 4, the terminal displays a full input keyboard 401, and obtains a target character string 403 in response to a clicking operation on a keyboard key 402.
302. And the terminal acquires at least one first word based on the target character string, wherein the first word is a word matched with the target character string.
In some embodiments, the terminal obtains the at least one first word based on the target character string input by the input operation in the following two obtaining manners.
In one implementation, the terminal obtains at least one first word by interacting with the server based on the target string. The terminal sends a first word acquisition request to the server, wherein the first word acquisition request carries the target character string. The server receives the first word acquisition request, searches words matched with the target character string in a first word bank based on the target character string carried in the first word acquisition request, sends the searched words to the terminal, and the terminal acquires the words sent by the server as first words.
In another implementation, the terminal obtains at least one first word from a first word stock pre-stored by the terminal based on the target character string. The terminal can download the first word stock from the server in advance, so that under the condition that network faults and other conditions can not interact with the server, the terminal can ensure that the first word can be acquired, and a target object can normally input the word.
Of course, the terminal may also perform the obtaining of the first word based on other manners, for example, search is performed together in combination with a word stock on the server and a word stock stored on the terminal to obtain the first word, which is not limited in the embodiment of the present application.
In some embodiments, the at least one first term acquired by the terminal is a term matching the target object from among the terms matching the target string. The matching means that the input habit of the target object is met, that is, the step 302 obtains the at least one first word in the following ways.
In one implementation, after a plurality of candidate words are obtained, screening is performed based on the selected times of the candidate words, so as to obtain a first word with the selected times being greater than a time threshold or with the selected times being in a previous target number.
Optionally, the selected number of times refers to the number of times the target object is selected on the currently logged-in terminal, or the number of times the target object is selected on a plurality of terminals. In some embodiments, for a target object, the input method application maintains the number of times a term is selected in order to provide the target object with terms that better conform to its input habits. Illustratively, the number of times the input method application maintenance word is selected is divided into the following 2 cases. Under the condition that a target object logs in an input method account number on a terminal, the input method application maintains the total number of times of word selection of the target object on a plurality of login terminals, or the input method application maintains the total number of times of word selection of the target object on different login terminals, and maintains the total number of times of word selection, so that the use scenes of the target object can be distinguished according to the actual use terminals of the target object, and display more conforming to input habits is provided. Under the condition that the target object does not log in the input method account number on the terminal, the input method application maintains the number of times of selecting the words on the currently used terminal by the target object. By the method, the first words displayed in the first candidate bar can be more in accordance with the input habit of the target object, so that the probability of the displayed words being selected by the target object is higher, and the aim of improving the input efficiency of the target object is fulfilled.
In one implementation, after a plurality of candidate words are acquired, screening is performed based on matching information between the candidate words and a target object, so as to obtain a first word with the matching information larger than an information threshold or with the matching information located in a front target digit, wherein the matching information is used for representing the matching degree between the word and the object. Wherein the matching information is determined based on object information or tags of the target object and word tags of the candidate words. The labels of the objects are used for representing input habits or basic information of the objects, and the word labels are used for representing the category of the candidate words and the like. The candidate words are screened through the matching information, so that the words displayed in the first candidate bar can accord with the input habit of the target object, the probability that the displayed words are selected by the target object is higher, and the aim of improving the input efficiency is fulfilled.
In some embodiments, the at least one first word obtained by the terminal is a word with a heat information greater than a heat threshold or a heat information located in a first target digit of the word matched with the target character string, where the heat information is used to represent popularity of the word. That is, after a plurality of candidate words are obtained, screening is performed based on the heat information of the candidate words, so as to obtain a first word with heat information greater than a heat threshold or with heat information located in a front target digit. Wherein the heat information is derived based on the number of times a term is selected by a plurality of objects and/or the number of occurrences of the term in a plurality of types of text.
It should be noted that, the above process of screening the candidate words may be performed by the server, and then the first word obtained by screening is sent to the terminal for display, where the process of screening may also be performed by the terminal, that is, the terminal performs screening based on the obtained candidate words and then displays the candidate words, where the candidate words obtained by the terminal may be obtained from the server or the terminal based on the local prestored first word stock query.
303. The terminal displays the at least one first word in a first candidate bar.
In some embodiments, the terminal displays the at least one first word in the first candidate bar in order of the word matching information of the at least one first word from large to small. The word matching information is used for indicating the matching degree between the first word and the target character string. The display can be from left to right, and in this way, the word with higher matching degree with the target character string can be displayed on the left side of the first candidate bar, that is, the word with higher probability of being selected by the target object is displayed on the left side of the first candidate bar, so that the target object can select the word to be input more quickly, and the input efficiency is improved. Of course, in a specific keyboard mode, for example, in a left-hand input mode, the display may also be a right-to-left display, so that the word with a higher degree of matching with the target character string is displayed on the right side of the first candidate bar, so as to facilitate clicking. The display mode can be changed according to the keyboard mode so as to present the word display effect most suitable for the use habit.
Exemplary, as shown in fig. 5, fig. 5 is a schematic diagram of a first candidate bar provided in an embodiment of the present application, where the first candidate bar 501 is located above a full input keyboard, and the terminal displays the acquired first word 502 in the first candidate bar.
In some embodiments, the terminal displays the at least one first word in the first candidate bar in order of the number of times the at least one first word is selected or the matching information with the target object is from large to small. The display can be from left to right, and in this way, the words conforming to the input habit of the target object can be displayed on the left side of the first candidate bar, so that the target object can quickly select the words needing to be input, and the input efficiency is improved. Of course, in a specific keyboard mode, for example, a left-hand input mode, the display may also be a right-to-left display, so that the word more conforming to the target object is displayed on the right side of the first candidate bar, so as to facilitate clicking. The display mode can be changed according to the keyboard mode so as to present the word display effect most suitable for the use habit.
In some embodiments, the terminal displays the at least one first word in the first candidate bar in order of the heat information of the at least one first word from greater to lesser. The display can be from left to right, and in this way, the words with higher heat are displayed on the left side of the first candidate bar, so that the target object can select the words needing to be input more quickly, and the input efficiency is improved. Of course, in a specific keyboard mode, for example, a left-hand input mode, the display may also be a right-to-left display, so that the words with higher heat are displayed on the right side of the first candidate bar, so as to facilitate clicking. The display mode can be changed according to the keyboard mode so as to present the word display effect most suitable for the use habit.
304. And the terminal acquires at least one second word based on the target character string, wherein the second word is a custom word corresponding to the target character string.
In some embodiments, the terminal obtains at least one second word having a preset mapping relation with the target character string from a second word stock stored in advance by the terminal based on the target character string. The second word stock comprises custom words and character strings, wherein the custom words are set through input method application, and the character strings have preset mapping relations with the custom words.
In some embodiments, the server stores a second word stock of the target object, and the terminal obtains the at least one second word from the second word stock by interacting with the server. The interaction process between the terminal and the server is the same as the process of obtaining the first word, and is not repeated here.
It should be noted that, under the condition that the target object logs in the input method account on the terminal, the terminal can upload the custom word and the corresponding character string set in the input method application to the server based on the target object so as to update the second word stock in the server, and different terminals can synchronize the second word stock based on the target object, so that the custom word in the second word stock is used to execute the input operation, and the input efficiency is improved.
In some embodiments, the terminal determines whether a custom word function has been enabled, the custom word function for providing a function of displaying the at least one second word. If the custom word function is enabled, the terminal performs the process of obtaining the second word and step 305, and if the custom word function is not enabled, the terminal does not perform the process of obtaining the second word and step 305.
305. And the terminal displays the at least one second word in a second candidate bar.
In some embodiments, the terminal displays a second candidate bar in which the at least one second word is displayed. Optionally, the terminal displays the second candidate bar outside the first candidate bar. Optionally, the terminal displays the second candidate bar above the first candidate bar in a rising display manner. Optionally, the terminal displays the second candidate bar below the first candidate bar in a pull-down display manner.
In some embodiments, the terminal is capable of displaying the at least one second word in the second candidate bar in the following 2 ways.
In one implementation manner, in the case that the number of characters of the target word in the at least one second word is smaller than the target number, the terminal displays all characters of the target word in the second candidate bar, where the target number is the number of characters supported for display in the second candidate bar. Optionally, in the case that there are a plurality of second words, the terminal displays, in the second candidate bar, part of characters of the second words except the target word in at least one second word. Illustratively, fig. 6 is a schematic diagram of a second candidate bar provided in an embodiment of the present application, where, as shown in fig. 6, the terminal displays all characters of the target word 602 and displays part of the characters of the second word 603 except the target word in the second candidate bar 601.
In another implementation manner, in the case that the number of characters of the target word is greater than or equal to the target number, the terminal displays the characters of the front target number of the target word in the second candidate bar.
Through the 2 modes, the target words can be displayed in the second candidate bar as completely as possible, so that the condition that the target object cannot select the words to be input due to incomplete displayed words can be avoided, and the input efficiency is improved. In some embodiments, the terminal is further capable of displaying the second word in a row in the second candidate bar, thereby enabling the second word to be displayed in its entirety in the candidate bar.
In some embodiments, the target word is a word of the at least one second word that is ranked first; alternatively, the target word is a word marked as preferentially displayed in the at least one second word. The sequence of the second words or the mark displayed preferentially is preset through the input method application, for example, the target object can set a certain custom word to be displayed preferentially. Because the target word is a word which is set to be displayed preferentially, the probability that the target word is selected by the target object is higher, and the terminal can improve the input efficiency of the target object by displaying the target word in the second candidate bar completely.
In some embodiments, the target term is the most frequently selected term of the at least one second term. Optionally, the selected times are the times selected by the target object on the currently logged-in terminal; or the selected times are the times of the target object selected on a plurality of terminals; alternatively, the selected number is the number of times selected by the plurality of objects.
For the target object, the input method uses a method of maintaining the same principle of the selected times of the words in the first word stock, and maintains the selected times of the custom words in the second word stock, so that the terminal can determine the target words conforming to the input habit of the target object, and the displayed words can be more highly likely to be selected by the target object by completely displaying the target words in the second candidate bar, thereby improving the input efficiency.
The input method application may also maintain the number of times the custom word is selected in the input method application for a certain custom word, where the number of times the custom word is selected in the input method application may refer to the number of times the multiple objects are selected in the login scenario, and may also refer to the number of times the objects using the input method application are selected. For example, when the plurality of objects log in the input method account number on the used terminal, taking a custom word as a candidate word as an example, the input method application firstly determines the selection times of the target object on the custom word, determines the object with the same custom word set with the target object, then obtains the selection times of the custom word by the object, and sums the times to obtain the total selection times of the custom word in the input method application, so that the terminal can determine the target word with the maximum total selection times.
It should be noted that, the maintenance of the selected times by the input method application according to the embodiments of the present application may refer to the maintenance of a client, that is, a terminal, of the input method application, may refer to the maintenance of a server of the input method application, and may also refer to the common maintenance of the client and the server of the input method application.
In some embodiments, the first candidate bar and the second candidate bar each include an expanded option, the expanded option of the first candidate bar being for displaying all characters of each first word based on the trigger, the expanded option of the second candidate bar being for displaying all characters of each second word based on the trigger. Correspondingly, the method further comprises the steps of: and the terminal responds to the triggering operation of the expansion option of the first candidate bar, the second candidate bar is retracted, and all characters of each first word in the at least one first word are displayed. And the terminal responds to the triggering operation of the expansion option of the second candidate bar, and displays all characters of each second word in the at least one second word in a list form. By triggering the expansion options of the first candidate bar or the second candidate bar, more first words or second words can be displayed for the target object to select, the probability that the displayed words are selected by the target object is increased, and therefore input efficiency is improved.
Illustratively, fig. 7 is a schematic diagram of an expansion option of a first candidate bar provided in an embodiment of the present application, and as shown in fig. 7, the terminal, in response to a triggering operation on the expansion option 701 of the first candidate bar, stows the second candidate bar 702, and displays all characters of each first word.
Illustratively, fig. 8 is a schematic diagram of an expansion option of a second candidate bar provided in an embodiment of the present application, where, as shown in fig. 8, the terminal displays, in a region 802, all characters of each second word in a list form in response to a triggering operation on the expansion option 801 of the second candidate bar.
In some embodiments, the terminal can display all characters of each second word in a list form by the following 2 ways. In one implementation, the terminal displays all characters of each second word in a list form according to the preset sequence of the at least one second word. The preset sequence is a sequence preset by an input method, for example, the second word arranged at the front position is used as the word with higher frequency of the target object. By displaying the second words according to the preset sequence, the user-defined words with higher use frequency of the target object can be displayed in front of the list, so that the target object can find the content to be input more quickly, and the input efficiency is improved.
In another implementation manner, the terminal displays all characters of each second word in a list form according to the order of the selected times of the at least one second word from large to small. Optionally, the terminal displays all characters of each second word in the order of the number of times the second word is selected by the target object on the currently logged-in terminal or on the plurality of terminals from large to small. By the method, the second words which are more in line with the input habit of the target object can be displayed in front, so that the target object can find the words which need to be input more quickly, and the input efficiency is improved.
Optionally, the terminal displays all characters of each second word in the order of the number of times the second word is selected by the plurality of objects from large to small. In this way, the second word with higher frequency of use can be displayed in front, that is, the second word with higher probability of being selected by the target object is displayed in front, thereby improving the input efficiency.
In some embodiments, the second candidate bar is a cloud candidate bar. Fig. 9 is a schematic diagram of a cloud candidate bar provided in an embodiment of the present application, where, as shown in fig. 9, an area 901 is a cloud candidate bar, and a terminal can display at least one second word in the cloud candidate bar, and in response to a triggering operation on an expansion option 902 of the cloud candidate bar, display all characters of each second word in a list form.
In the case where the second candidate bar is a cloud candidate bar, the method further comprises: the terminal obtains at least one of a third word and an emoticon matched with the target character string, and at least one of the third word and the emoticon matched with the target character string is displayed in the second candidate bar, wherein the third word is a word with the increase rate of the heat information greater than an increase rate threshold value or the increase rate of the heat information positioned in the front target digit of the word matched with the target character string.
Illustratively, a process of obtaining the third word will be described. And screening the candidate words based on the growth rate of the heat information after a plurality of matched candidate words are acquired from the first word stock based on the target character string, so as to obtain a third word with the growth rate of the heat information being greater than the growth rate threshold or with the growth rate of the heat information being positioned at the front target bit number. The increasing rate of the heat information is obtained based on the heat information of the words in the historical time period, and accordingly, the input method application can maintain the heat information of the words in the historical time period, for example, the input method application maintains the heat information of the words every day in a week. Candidate words are screened through the growth rate of the heat information, words with rapid heat growth can be displayed in the second candidate bar, so that more words with high probability of being selected are displayed for the target object, and the input efficiency is improved.
Optionally, based on the target character string, a plurality of matched candidate words are obtained from a third word stock, and the candidate words are screened based on the growth rate of the heat information, so that third words with the growth rate of the heat information being greater than the growth rate threshold or with the growth rate of the heat information being in the front target number of bits are obtained. The third word stock is a network word stock, and the third word stock comprises a plurality of network words. By acquiring the network expression with faster heat increment, more words with different types can be provided for the target object, so that the target object is more likely to find the content to be input in the displayed words, and the input efficiency is improved.
Illustratively, a process of acquiring an emoji matching a target character string is described. Semantic information of a target character string is obtained, the semantic information is used for representing words matched with the target character string, and based on the semantic information of the target character string, expression symbols matched with the semantic information are obtained from an expression library, and the expression library comprises a plurality of expression symbols. For example, the target character string is "kaixin", the word matching the target character string may be "happy", and the obtained emoji is an emoji representing happy. Through obtaining the emoticons, more selectable contents can be provided for the target object, so that the target object is more likely to find the contents required to be input in the displayed words and the emoticons, and the input efficiency is further improved.
It should be noted that, the process of obtaining the third word and the expression symbol may be executed by the server, and then the obtained third word and expression symbol may be sent to the terminal, where the obtaining process may also be executed by the terminal, that is, the terminal obtains the third word and expression symbol from the first word stock, the third word stock and the expression stock that are stored in advance.
In some embodiments, the terminal performs the process of displaying the second word in step 305 in response to the second word corresponding to the target character string being present, that is, the terminal obtains the second word in step 304, displays the second candidate bar. If there is no second word corresponding to the target character string, the terminal does not display the second candidate bar, and the process of displaying the second word in step 305 is not performed.
According to the technical scheme, the matched words and the custom words are respectively displayed through the two different candidate bars, and because the two types of words are displayed in the different candidate bars, the display effect is visual and is not mutually interfered, so that the object can quickly select the words to be input in the corresponding candidate bars based on the actual requirements of the object, and the input efficiency can be improved.
The word display method will be described below with reference to fig. 10, taking the example that the virtual keyboard provided by the input method application is a nine-square keyboard. Fig. 10 is a flowchart of a word display method provided in an embodiment of the present application, and as shown in fig. 10, the method is executed by a terminal, and the embodiment includes the following steps.
1001. The terminal obtains at least one group of target character strings based on the nine-grid keyboard.
In some embodiments, the terminal obtains at least one set of target character strings corresponding to a keyboard key based on an input operation corresponding to the keyboard key. Wherein the input operation refers to a click operation on a key of the keyboard. The terminal is illustratively running an input method application, which, in response to triggering an input function on the terminal, displays a nine-grid keyboard provided by the input method application. And the terminal responds to the clicking operation of the keyboard keys in the nine-square keyboard, and acquires at least one group of target character strings based on the clicked keyboard keys.
In some embodiments, the terminal obtains the at least one set of strings in the following 2 ways.
In one implementation manner, in the case that the target object only clicks the key of the nine-square keyboard, the terminal determines a plurality of characters corresponding to each clicked key of the nine-square keyboard based on the key of the nine-square keyboard corresponding to the input operation. For example, as shown in fig. 11, the keys 1101 and 1102 of the clicked nine-square keyboard are "ABC" and the character corresponding to the key 1101 of the nine-square keyboard is "JKL". Further, the terminal combines the characters corresponding to the keys of the clicked nine-square keyboard into a plurality of groups of target character strings based on the clicking sequence. For example, the characters corresponding to the keys of the clicked nine-square keyboard are "ABC" and "JKL" in sequence, and the plurality of sets of character strings are "AJ", "AK", "BL", and the like.
In another implementation manner, in the case that the target object clicks the key of the nine-square keyboard and the navigation key, the terminal determines, based on the clicked navigation key, a character corresponding to the clicked navigation key from a plurality of characters corresponding to the key of each clicked nine-square keyboard, so as to obtain the target character string. It can be understood that, since each key of the nine-square keyboard corresponds to a plurality of characters, in the process of inputting the target character string, the target object first clicks the key of the nine-square keyboard corresponding to the character to be input, and then selects the character to be input from the plurality of characters corresponding to the key of the nine-square keyboard by clicking the navigation key. For example, as shown in fig. 12, the terminal detects a click operation on the keys 1201 and 1202 of the nine-square keyboard and a click operation on the navigation keys 1203 and 1204, the key 1201 of the nine-square keyboard corresponds to the letter "ABC", the key 1202 of the nine-square keyboard corresponds to the letter "DEF", the letter "a" is determined from "ABC" by the characters corresponding to the navigation keys 1203 and 1204, and the letter "D" is determined from "DEF", thereby obtaining a set of target character strings "AD".
1002. The terminal obtains at least one first word based on the at least one group of target character strings, wherein the first word is a word matched with the target character strings.
In some embodiments, for 2 cases in step 1001 above, the terminal obtains the at least one first word in the following 2 ways.
In one implementation, in the case where the target object clicks only on a key of the nine-square keyboard, the terminal determines a target character string displayed in the interface from among the acquired multiple sets of target character strings, for example, as shown in fig. 11, the terminal determines a target character string 1103 displayed in the interface from among the acquired multiple sets of target character strings. Further, the terminal obtains the at least one first word through a method similar to the step 302 based on the target character string displayed in the interface. Optionally, the target character string displayed in the interface is any one of a plurality of sets of character strings, or is a character string formed by the first character corresponding to each key of the clicked nine-grid keyboard.
In another implementation manner, in the case that the target object clicks the key of the nine-square keyboard and the navigation key, the terminal obtains the at least one first word through a method similar to that in step 302 based on the obtained group of target character strings, which is not described in detail in the embodiment of the present application.
1003. The terminal displays the at least one first word in a first candidate bar.
In some embodiments, the step 1003 is the same as the step 303, and will not be described herein.
1004. And the terminal acquires at least one second word based on the at least one group of target character strings, wherein a preset mapping relation exists between the second word and the target character strings.
Illustratively, the process of obtaining the second word will be described taking the first case in step 1001 as an example. For example, the multiple sets of target strings acquired by the terminal are "AD" and "AE", in the second word stock, the word having the preset mapping relation with the target string "AD" is "a city D street east", the word having the mapping relation with the target string "AE" is "a city E street west", and then the terminal acquires 2 second words of "a city D street east" and "a city E street west" from the second word stock based on the acquired multiple sets of target strings.
Illustratively, the process of obtaining the second word will be described taking the second case in step 1001 as an example. For example, the target character string acquired by the terminal is "AD", and in the second word stock, the word having the preset mapping relation with the target character string "AD" is "a city D street east region", and then the terminal acquires "a city D street east region" from the second word stock through the target character string.
It should be noted that, in the step 1004, the process of obtaining the second word is described taking the second word library including the custom word and the character string having the preset mapping relation with the custom word as an example. In some embodiments, the second word stock further includes a keyboard key having a preset mapping relation with the custom word, and the step 1004 can be replaced by: the terminal acquires at least one second word based on the keyboard keys corresponding to the input operation, wherein the second word and the keyboard keys have a preset mapping relation. Optionally, the terminal records the keyboard key having the preset mapping relation with the custom word by recording key information corresponding to the character string having the preset mapping relation with the custom word in the second word bank, where the key information is used to represent the keyboard key, and for example, the key information is a number corresponding to the keyboard key or an identifier of the keyboard key.
1005. And the terminal displays the at least one second word in a second candidate bar.
In some embodiments, the step 1005 is the same as the step 305, and will not be described herein.
According to the technical scheme, the matched words and the custom words are respectively displayed through the two different candidate bars, and because the two types of words are respectively displayed in the different candidate bars, the display effect is visual and is not mutually interfered, so that the object can quickly select the words to be input in the corresponding candidate bars based on the actual requirements of the object, and the input efficiency can be improved.
In the embodiments corresponding to fig. 3 and 10, the process of displaying the first word and the second word in the first candidate bar and the second candidate bar, respectively, is described. The process of word input by the word display method provided in the present application will be described with reference to fig. 13, which includes the following steps.
(1) And the terminal responds to the clicking operation of the target object on the virtual keyboard to acquire the target character string.
(2) The terminal obtains at least one first word matched with the target character string based on the target character string, the input habit of the target object and the selected times of the plurality of words through a first word function module applied by the input method.
(3) The terminal displays the at least one first word in a first candidate bar.
(4) The terminal determines whether the user-defined word function is started or not through the second word function module applied by the input method, if the user-defined word function is not started, the subsequent steps are not executed, and as shown in fig. 14, the terminal only displays the first candidate bar and the first word.
(5) If the user-defined word function is started, the terminal acquires at least one second word corresponding to the target character string through a second word function module, and if the second word corresponding to the target character string does not exist, the terminal does not execute the subsequent steps.
(6) In response to obtaining the at least one second word, the terminal displays a second candidate bar in which the at least one second word is displayed.
It should be noted that, as shown in fig. 15, the terminal can execute the process of displaying the first word and the process of displaying the second word in parallel, not limited to the current timing.
It should be noted that, the first word functional module and the second word functional module are mutually independent, which is equivalent to the current mode of displaying two types of words in the same candidate bar, the first word functional module and the second word functional module do not need to interact to display the two types of words in the same candidate bar, so that the complexity of realizing functions can be reduced, and in addition, as the two functional modules have no coupling relationship, the interference factors of the two functional modules in the subsequent iteration updating process are reduced.
(7) As shown in fig. 16, the target object selects a word from the first candidate bar or the second candidate bar for input based on the input demand.
In some embodiments, the terminal responds to clicking operation on the word in any candidate bar, the clicked word is displayed in the display interface, two candidate bars are packed up, and the target object can execute the operation of the next word input by inputting another character string.
In some embodiments, the terminal responds to clicking operation on the word in any candidate bar, displays the clicked word in the display interface, packs up the candidate bar, continues to display another candidate bar and the word in the other candidate bar, and the target object can continue to select the word in the other candidate bar for inputting, or can execute the operation of inputting the next word by inputting another character string.
Fig. 17 is a schematic structural diagram of a word display device according to an embodiment of the present application, and as shown in fig. 17, the device includes an acquisition module 1701, a first display module 1702 and a second display module 1703.
An acquisition module 1701, configured to acquire a target character string;
a first display module 1702 configured to display at least one first word in a first candidate bar, where the first word is a word matched with the target character string;
and a second display module 1703, configured to display at least one second word in a second candidate bar, where the second word is a custom word corresponding to the target character string.
In some embodiments, the second display module 1703 is configured to perform any of the following:
displaying all characters of the target word in the at least one second word in the second candidate bar;
In the second candidate bar, a front target number of characters of the target word is displayed, the target number being the number of characters that the second candidate bar supports to display.
In some embodiments, the target word is a word of the at least one second word that is ranked first; or, the target word is a word marked as a priority display in the at least one second word; or the target word is the word with the largest selected number of times in the at least one second word.
In some embodiments, the selected number of times is the number of times the target object is selected on the currently logged-in terminal; or the selected times are the times selected by the target object on a plurality of terminals; alternatively, the selected number is the number of times selected by the plurality of objects.
In some embodiments, the second display module 1703 is configured to display, in the second candidate bar, a partial character of a second word of the at least one second word that is other than the target word.
In some embodiments, the second display module 1703 is configured to display all characters of each of the at least one second word in a list form in response to a triggering operation of the expand option of the second candidate bar.
In some embodiments, the second display module 1703 is configured to perform any of the following:
displaying all characters of each second word in a list form according to the preset sequence of the at least one second word;
displaying all characters of each second word in a list form according to the order of the selected times of the at least one second word from big to small.
In some embodiments, the obtaining module 1701 is configured to obtain at least one set of target strings corresponding to a keyboard key based on an input operation of the keyboard key;
the second display module 1703 is configured to obtain at least one second word based on the at least one set of target strings, where the second word has a preset mapping relationship with the target strings; in the second candidate bar, the at least one second word is displayed.
In some embodiments, the second display module 1703 is configured to obtain at least one second word based on the keyboard key corresponding to the input operation, where the second word has a preset mapping relationship with the keyboard key; in the second candidate bar, at least one second word is displayed.
In some embodiments, the second display module 1703 is configured to display the second candidate bar if a custom word function is enabled, the custom word function being configured to provide a function of displaying the at least one second word.
In some embodiments, the second display module 1703 is configured to display the second candidate bar in response to a second word corresponding to the target string being present.
In some embodiments, the second display module 1703 is configured to display the second candidate bar in addition to the first candidate bar.
In some embodiments, the first display module 1702 is configured to, in response to a triggering operation of the expansion option of the first candidate bar, collapse the second candidate bar and display all characters of each of the at least one first word.
In some embodiments, the second candidate bar is a cloud candidate bar.
In some embodiments, the second display module 1703 is configured to display at least one of a third word and an emoticon that matches the target character string in the second candidate bar, where the third word is a word that has a growth rate of heat information greater than a growth rate threshold or a growth rate of heat information located at a first target digit, where the heat information is used to indicate popularity of the word.
In some embodiments, the first word is a word matching a target object among words matching the target character string, or the first word is a word having heat information greater than a heat threshold or heat information located in a preceding target number of bits.
It should be noted that: the word display device provided in the above embodiment only illustrates the division of the above functional modules when displaying words, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the word display device and the word display method embodiment provided in the foregoing embodiments belong to the same concept, and detailed implementation processes of the word display device and the word display method embodiment are detailed in the method embodiment, and are not repeated herein.
The embodiment of the disclosure provides a terminal for executing the word display method, and fig. 18 is a schematic structural diagram of the terminal provided in the embodiment of the disclosure. The terminal 1800 may be: smart phones, tablet computers, notebook computers, desktop computers, vehicle terminals or intelligent home appliances. The terminal 1800 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or the like.
In general, the terminal 1800 includes: one or more processors 1801 and one or more memories 1802.
Processor 1801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1801 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 1801 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a central processor (Central Processing Unit, CPU); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1801 may be integrated with an image processor (Graphics Processing Unit, GPU) for use in connection with rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 1801 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
The memory 1802 may include one or more computer-readable storage media, which may be non-transitory. The memory 1802 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1802 is used to store at least one program code for execution by processor 1801 to implement the word display methods provided by the method embodiments herein.
In some embodiments, the terminal 1800 may also optionally include: a peripheral interface 1803 and at least one peripheral. The processor 1801, memory 1802, and peripheral interface 1803 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 1803 by buses, signal lines or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1804, a display screen 1805, a camera assembly 1806, audio circuitry 1807, and a power supply 1808.
The peripheral interface 1803 may be used to connect I/O (Input/Output) related at least one peripheral device to the processor 1801 and memory 1802. In some embodiments, processor 1801, memory 1802, and peripheral interface 1803 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 1801, memory 1802, and peripheral interface 1803 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1804 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1804 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1804 converts electrical signals to electromagnetic signals for transmission, or converts received electromagnetic signals to electrical signals. Optionally, the radio frequency circuit 1804 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 1804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 1804 may also include NFC (Near Field Communication ) related circuitry, which is not limited in this application.
The display 1805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 1805 is a touch display, the display 1805 also has the ability to collect touch signals at or above the surface of the display 1805. The touch signal may be input as a control signal to the processor 1801 for processing. At this point, the display 1805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1805 may be one, providing a front panel of the terminal 1800; in other embodiments, the display 1805 may be at least two, disposed on different surfaces of the terminal 1800 or in a folded configuration; in some embodiments, the display 1805 may be a flexible display disposed on a curved surface or a folded surface of the terminal 1800. Even more, the display screen 1805 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 1805 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 1806 is used to capture images or video. Optionally, the camera assembly 1806 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1806 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuitry 1807 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1801 for processing, or inputting the electric signals to the radio frequency circuit 1804 for realizing voice communication. For stereo acquisition or noise reduction purposes, the microphone may be multiple, and disposed at different locations of the terminal 1800. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is then used to convert electrical signals from the processor 1801 or the radio frequency circuit 1804 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuitry 1807 may also include a headphone jack.
A power supply 1808 is used to power the various components in the terminal 1800. The power supply 1808 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1808 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 1800 also includes one or more sensors 1810. The one or more sensors 1810 include, but are not limited to: acceleration sensor 1811, gyro sensor 1812, pressure sensor 1813, optical sensor 1814, and proximity sensor 1815.
The acceleration sensor 1811 may detect the magnitudes of accelerations on three coordinate axes of a coordinate system established with the terminal 1800. For example, the acceleration sensor 1811 may be used to detect components of gravitational acceleration on three coordinate axes. The processor 1801 may control the display screen 1805 to display a user interface in either a landscape view or a portrait view based on gravitational acceleration signals acquired by the acceleration sensor 1811. The acceleration sensor 1811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1812 may detect a body direction and a rotation angle of the terminal 1800, and the gyro sensor 1812 may collect a 3D motion of the user to the terminal 1800 in cooperation with the acceleration sensor 1811. The processor 1801 may implement the following functions based on the data collected by the gyro sensor 1812: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
Pressure sensor 1813 may be disposed on a side frame of terminal 1800 and/or below display 1805. When the pressure sensor 1813 is disposed at a side frame of the terminal 1800, a grip signal of the terminal 1800 by a user may be detected, and the processor 1801 performs a left-right hand recognition or a shortcut operation according to the grip signal collected by the pressure sensor 1813. When the pressure sensor 1813 is disposed at the lower layer of the display 1805, the processor 1801 controls the operability control on the UI interface according to the pressure operation of the user on the display 1805. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 1814 is used to collect the ambient light intensity. In one embodiment, the processor 1801 may control the display brightness of the display screen 1805 based on the intensity of ambient light collected by the optical sensor 1814. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 1805 is turned up; when the ambient light intensity is low, the display brightness of the display screen 1805 is turned down. In another embodiment, the processor 1801 may also dynamically adjust the shooting parameters of the camera assembly 1806 based on the intensity of ambient light collected by the optical sensor 1814.
A proximity sensor 1815, also known as a distance sensor, is typically provided on the front panel of the terminal 1800. Proximity sensor 1815 is used to collect the distance between the user and the front face of terminal 1800. In one embodiment, when the proximity sensor 1815 detects that the distance between the user and the front face of the terminal 1800 gradually decreases, the processor 1801 controls the display 1805 to switch from the on-screen state to the off-screen state; when the proximity sensor 1815 detects that the distance between the user and the front of the terminal 1800 gradually increases, the processor 1801 controls the display 1805 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 18 is not limiting and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
In an exemplary embodiment, a computer readable storage medium, such as a memory, including at least one program code executable by a processor to perform the word display method of the above embodiment is also provided. For example, the computer readable storage medium may be Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), compact disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, the computer program product comprising at least one computer program, the at least one computer program being stored in a computer readable storage medium. The processor of the terminal reads the at least one computer program from the computer-readable storage medium, and the processor executes the at least one computer program so that the terminal performs the operations performed by the word display method described above.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments is merely exemplary in nature and is not intended to limit the invention, but is intended to cover various modifications, substitutions, improvements, and alternatives falling within the spirit and principles of the invention.

Claims (20)

1. A word display method, the method comprising:
acquiring a target character string;
displaying at least one first word in a first candidate bar, wherein the first word is a word matched with the target character string;
And displaying at least one second word in a second candidate bar, wherein the second word is a custom word corresponding to the target character string.
2. The method of claim 1, wherein displaying at least one second word in the second candidate bar comprises any one of:
displaying all characters of the target word in the at least one second word in the second candidate bar;
and displaying the characters with the front target number of the target words in the second candidate bar, wherein the target number is the number of characters supported to be displayed in the second candidate bar.
3. The method of claim 2, wherein the target word is a word of the at least one second word that is ranked first; or the target word is a word marked as a priority display in the at least one second word; or the target word is the word with the largest selected times in the at least one second word.
4. A method according to claim 3, wherein the selected number is the number of times the target object is selected on the currently logged-in terminal; or the selected times are the times selected by the target object on a plurality of terminals; or the selected times are the times selected by a plurality of objects.
5. The method of claim 2, wherein displaying at least one second word in the second candidate bar comprises:
and displaying partial characters of the second words except the target word in the at least one second word in the second candidate column.
6. The method according to claim 1, wherein the method further comprises:
and responding to the triggering operation of the expansion options of the second candidate bar, and displaying all characters of each second word in the at least one second word in a list form.
7. The method of claim 6, wherein displaying all characters of each of the at least one second word in list form comprises any one of:
displaying all characters of each second word in a list form according to the preset sequence of the at least one second word;
and displaying all characters of each second word in a list form according to the order of the selected times of the at least one second word from large to small.
8. The method of claim 1, wherein the obtaining the target string comprises:
Acquiring at least one group of target character strings corresponding to keyboard keys based on the keyboard keys corresponding to input operation;
the displaying at least one second word in the second candidate bar includes:
acquiring at least one second word based on the at least one group of target character strings, wherein a preset mapping relation exists between the second word and the target character strings;
and displaying the at least one second word in the second candidate bar.
9. The method of claim 1, wherein displaying at least one second word in the second candidate bar comprises:
acquiring at least one second word based on the keyboard keys corresponding to the input operation, wherein a preset mapping relation exists between the second word and the keyboard keys;
in the second candidate bar, at least one second word is displayed.
10. The method according to claim 1, wherein the method further comprises:
and if the custom word function is started, displaying the second candidate bar, wherein the custom word function is used for providing a function of displaying the at least one second word.
11. The method according to claim 10, wherein the method further comprises:
And displaying the second candidate bar in response to the existence of a second word corresponding to the target character string.
12. The method according to claim 1, wherein the method further comprises:
and displaying the second candidate bar outside the first candidate bar.
13. The method according to claim 1, wherein the method further comprises:
and responding to the triggering operation of the expansion options of the first candidate bar, packing up the second candidate bar, and displaying all characters of each first word in the at least one first word.
14. The method of claim 1, wherein the second candidate bar is a cloud candidate bar.
15. The method of claim 14, wherein the method further comprises:
and displaying at least one of a third word and an emoticon matched with the target character string in the second candidate bar, wherein the third word is a word with a growth rate of heat information larger than a growth rate threshold or a growth rate of the heat information positioned at a front target bit number in the word matched with the target character string, and the heat information is used for representing the popularity of the word.
16. The method of any of claims 1-15, wherein the first term is a term matching the target object from among terms matching the target string, or wherein the first term is a term having the heat information greater than a heat threshold or the heat information being located at a previous target digit from among terms matching the target string.
17. A word display device, the device comprising:
the acquisition module is used for acquiring the input operation of the target character string;
the first display module is used for displaying at least one first word in a first candidate bar based on the input operation, wherein the first word is a word matched with the target character string;
and the second display module is used for displaying at least one second word in a second candidate bar based on the input operation, wherein the second word is a custom word corresponding to the input operation.
18. A terminal comprising one or more processors and one or more memories, the one or more memories having stored therein at least one computer program loaded and executed by the one or more processors to implement the word display method of any of claims 1-16.
19. A computer readable storage medium having stored therein at least one computer program loaded and executed by a processor to implement the word display method of any one of claims 1 to 16.
20. A computer program product comprising a computer program which, when executed by a processor, implements the word display method of any one of claims 1 to 16.
CN202210112508.5A 2022-01-29 2022-01-29 Word display method, device, terminal and storage medium Pending CN116560515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210112508.5A CN116560515A (en) 2022-01-29 2022-01-29 Word display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210112508.5A CN116560515A (en) 2022-01-29 2022-01-29 Word display method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN116560515A true CN116560515A (en) 2023-08-08

Family

ID=87497098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210112508.5A Pending CN116560515A (en) 2022-01-29 2022-01-29 Word display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116560515A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1318784A (en) * 2000-04-17 2001-10-24 张吉善 'One character plus four strokes' Chinese word hand-written input method
CN104461347A (en) * 2014-10-31 2015-03-25 魏新成 Select input of candidate statements displayed at screen keyboard triplex-row letter key zone
CN106844501A (en) * 2016-12-27 2017-06-13 北京五八信息技术有限公司 A kind of input method entry lookup method and device
CN106873795A (en) * 2016-12-29 2017-06-20 北京五八信息技术有限公司 A kind of character input method, device and terminal
US20210295839A1 (en) * 2018-08-07 2021-09-23 Huawei Technologies Co., Ltd. Voice Control Command Generation Method and Terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1318784A (en) * 2000-04-17 2001-10-24 张吉善 'One character plus four strokes' Chinese word hand-written input method
CN104461347A (en) * 2014-10-31 2015-03-25 魏新成 Select input of candidate statements displayed at screen keyboard triplex-row letter key zone
CN106844501A (en) * 2016-12-27 2017-06-13 北京五八信息技术有限公司 A kind of input method entry lookup method and device
CN106873795A (en) * 2016-12-29 2017-06-20 北京五八信息技术有限公司 A kind of character input method, device and terminal
US20210295839A1 (en) * 2018-08-07 2021-09-23 Huawei Technologies Co., Ltd. Voice Control Command Generation Method and Terminal

Similar Documents

Publication Publication Date Title
CN111061574B (en) Object sharing method and electronic device
CN108470041B (en) Information searching method and mobile terminal
US8893054B2 (en) Devices, systems, and methods for conveying gesture commands
CN108763582B (en) File searching method, device, terminal and storage medium
WO2019141174A1 (en) Unread message processing method and mobile terminal
CN112068762B (en) Interface display method, device, equipment and medium of application program
WO2020258929A1 (en) Folder interface switching method and terminal device
US8452339B2 (en) Mobile terminal and method of controlling the same
EP2420923A2 (en) Method and displaying information and mobile terminal using the same
CN110221885B (en) Interface display method and terminal equipment
CN110795007B (en) Method and device for acquiring screenshot information
WO2020238938A1 (en) Information input method and mobile terminal
CN108509105B (en) Application program management method and terminal
CN110069181B (en) File processing method, device, equipment and storage medium crossing folders
CN108255372B (en) Desktop application icon sorting method and mobile terminal
EP3699743B1 (en) Image viewing method and mobile terminal
CN111512278B (en) Method for processing application of terminal equipment and terminal equipment
CN110069188B (en) Identification display method and terminal equipment
US20190163960A1 (en) Image processing method, computer device, and computer readable storage medium
WO2021017738A1 (en) Interface display method and electronic device
CN111274777A (en) Thinking guide graph display method and electronic equipment
CN110688497A (en) Resource information searching method and device, terminal equipment and storage medium
CN112230781B (en) Character recommendation method, device and storage medium
WO2020168882A1 (en) Interface display method and terminal device
US9336242B2 (en) Mobile terminal and displaying method thereof

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40091028

Country of ref document: HK