CN111400457A - Text query method and device and terminal equipment - Google Patents

Text query method and device and terminal equipment Download PDF

Info

Publication number
CN111400457A
CN111400457A CN202010294424.9A CN202010294424A CN111400457A CN 111400457 A CN111400457 A CN 111400457A CN 202010294424 A CN202010294424 A CN 202010294424A CN 111400457 A CN111400457 A CN 111400457A
Authority
CN
China
Prior art keywords
text
query
keyword
keywords
character
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
CN202010294424.9A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010294424.9A priority Critical patent/CN111400457A/en
Publication of CN111400457A publication Critical patent/CN111400457A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3325Reformulation based on results of preceding query
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3349Reuse of stored results of previous queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention is suitable for the technical field of computers, and provides a text query method, a text query device and terminal equipment, wherein the text query method comprises the steps of obtaining text cache contents currently displayed by a mobile terminal; receiving a character query instruction, and acquiring a query keyword according to the character query instruction; if the number of the text words of the text cache content is within a preset search threshold value, responding to a text query instruction, and searching text keywords matched with the query keywords in the text cache content; and sorting the text keywords according to the aggregation degree of the text keywords to generate a keyword query sequence list. The invention can improve the applicability and the query efficiency of text query.

Description

Text query method and device and terminal equipment
Technical Field
The invention relates to the technical field of computers, in particular to a text query method, a text query device and terminal equipment.
Background
At present, electronic reading gradually replaces the traditional reading mode, and a user downloads reading materials through a mobile terminal or uses the mobile terminal to read online, such as news, online magazines, web page electronic books, and the like.
When the user reads quickly, the user usually needs to find out the key words, key numbers or key paragraphs quickly, but in the process, the screen progress bar needs to be dragged, the related word data is retrieved in a row, the operation is frequent, and finally obtained text data is messy, so that a convenient text query scheme is needed for the user to search for the target words.
Disclosure of Invention
The invention mainly aims to provide a text query method, a text query device and terminal equipment, and aims to solve the problems that in the prior art, when a mobile terminal is used for fast reading, the search mode of target content is frequently operated, and the search result is inconvenient to look up.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a text query method, including:
acquiring the currently displayed character cache content of the mobile terminal;
receiving a character query instruction, and acquiring a query keyword according to the character query instruction;
if the number of the text words of the text cache content is within a preset search threshold value, responding to the text query instruction, and searching for text keywords matched with the query keywords in the text cache content;
and sorting the text keywords according to the aggregation degree of the text keywords to generate a keyword query sequence list.
A second aspect of the embodiments of the present invention provides a text query apparatus, including:
the character cache content acquisition module is used for acquiring the character cache content currently displayed by the mobile terminal;
the instruction receiving module is used for receiving a character query instruction and acquiring a query keyword according to the character query instruction;
the text keyword query module is used for responding to the word query instruction and searching a text keyword matched with the query keyword in the word cache content if the number of the text words of the word cache content is within a preset search threshold value;
and the keyword query sequence table output module is used for sorting the text keywords according to the aggregation degree of the text keywords and then generating a keyword query sequence table.
A third aspect of embodiments of the present invention provides a mobile terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method provided in the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method as provided in the first aspect above.
The embodiment of the invention provides a text query method, which executes a text query instruction according to actual conditions, searches text keywords in text cache contents through the query keywords, and then generates a keyword query sequence list after the text keywords are sequenced, so that the searched text keywords are sequentially output to a user according to the aggregation degree of the keywords, the user can conveniently call and look up the text keywords, and the applicability and the query efficiency of text query are improved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a terminal device according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of a text query method according to an embodiment of the present invention;
fig. 3 is a display interface of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a display interface of the mobile terminal when the search threshold is set according to the embodiment of the present invention;
fig. 5 is another display interface of the mobile terminal according to the embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating an implementation of another text query method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a text query device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Suffixes such as "module", "part", or "unit" used to denote elements are used herein only for the convenience of description of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
Fig. 1 shows a block diagram of a hardware configuration of a terminal device. The terminal device unlocking method provided by the embodiment of the present invention may be applied to the terminal device 10 shown in fig. 1, where the terminal device 10 may include, but is not limited to: the mobile terminal supports short-distance wireless communication and needs to be unlocked, such as a smart phone, a notebook, a tablet personal computer and wearable smart equipment.
As shown in fig. 1, the terminal device 10 includes a memory 101, one or more processors 103 (only one is shown), and optionally, may further include a memory controller 102, a peripheral interface 104, a radio frequency module 105, a key module 106, an audio module 107, a touch screen 108, and a short-range wireless communication module 109. These components may communicate with each other via one or more communication buses/signal lines 110.
It is to be understood that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the terminal device. Terminal device 10 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The memory 101 may be configured to store software programs and modules, such as a method for unlocking a terminal device and program instructions/modules corresponding to the terminal device in the embodiments of the present invention, and the processor 103 executes various functional applications and data processing by running the software programs and modules stored in the memory 101, so as to implement a text query method in the embodiments shown in fig. 2 and fig. 5 described below.
Memory 101 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 101 may further include memory located remotely from the processor 103, which may be connected to the terminal device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 101 by the processor 103 and possibly other components may be under the control of the memory controller 102.
The peripheral interface 104 couples various input/output devices to the CPU and to the memory 101. Processor 103 executes various software, instructions within memory 101 to perform various functions of terminal device 10 and to perform data processing.
In some embodiments, the peripheral interface 104, the processor 103, and the memory controller 102 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 105 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf Module 105 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, a memory, and so forth. The rf module 105 may communicate with various networks such as the internet, an intranet, a preset type of wireless network, or other devices through a preset type of wireless network. The preset types of wireless networks described above may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The Wireless network of the above-mentioned preset type may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.11 n), Voice over Internet protocol (VoIP), Internet Access (Wi-Max), Worldwide Interoperability for Mobile Communication (Wi-Mobile Communication), other protocols for email, instant messaging, and short messaging, and any other suitable messaging protocol.
The key module 106 provides an interface for a user to input to the terminal device, and the user can press different keys to cause the terminal device 10 to perform different functions.
Audio module 107 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry. The audio circuitry receives audio data from the peripheral interface 104, converts the audio data to electrical information, and transmits the electrical information to the speaker. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to the peripheral interface 104 for further processing. The audio data may be retrieved from the memory 101 or through the radio frequency module 105. In addition, the audio data may also be stored in the memory 101 or transmitted through the radio frequency module 105. In some examples, audio module 107 may also include a headphone jack for providing an audio interface to headphones or other devices.
The touch screen 108 provides both an output and an input interface between the terminal device and the user. In particular, the touch screen 108 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. The touch screen 108 also receives user inputs, such as user clicks, swipes, and other gesture operations, for the user interface objects to respond to these user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of touch screen 108 display units include, but are not limited to, liquid crystal displays or light emitting polymer displays.
The short-range wireless Communication module 109 can perform Identification and data exchange with a compatible device in a short range by using a short-range Communication protocol such as NFC (Near Field Communication) or RFID (Radio Frequency Identification).
Further, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may be disposed in the terminal device in each of the foregoing embodiments and the following embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 1. The computer readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the computer program can implement a text query method in the embodiments shown in fig. 2 to 5 described below.
As shown in fig. 2, an embodiment of the present invention provides a text query method, which can be applied to scenarios such as online reading and offline reading of a mobile terminal, and includes, but is not limited to, the following steps:
s201, obtaining the text cache content currently displayed by the mobile terminal.
In the step S201, the currently displayed text cache content of the mobile terminal may be content that is read online by using the mobile terminal, such as online news, online documents, and the like, or content that is read offline by using the mobile terminal, such as an electronic book that has been downloaded, a document that has been received and can be read offline, a long message, and the like.
In an embodiment, when the content of the text cache is online reading content, the obtaining the content of the text cache in step S201 includes:
acquiring a network address of a current display page of the mobile terminal;
downloading a text cache file according to the network address;
and acquiring configuration information of the mobile terminal, decoding the text cache file according to the configuration information, and acquiring the text cache content currently displayed by the mobile terminal.
In a specific application, when the mobile terminal is read online, the text cache file can be obtained according to the network address of the currently displayed page, so that after the text page is started, the text cache file can be obtained from the system text interface, the text cache content is cached in the text cache file, and the text cache content currently displayed by the mobile terminal is obtained by combining configuration information of the mobile terminal, such as display parameters and the like.
S202, receiving a text query instruction, and acquiring a query keyword according to the text query instruction.
In step S202, the mobile terminal may start the text query function after receiving the text query instruction, or pull up the relevant function module for text query after the text page is opened.
For example, if the user uses the mobile terminal to read online or offline, the mobile terminal automatically pulls up the text query module after the text page is opened, and when the user needs to close the text query function, the text query module can be closed, and at this time, the mobile terminal shields the text intelligent query function.
As shown in fig. 3, the embodiment of the present invention further exemplarily shows a mobile terminal interface using the text query method described above:
the mobile terminal interface in fig. 3 lists the text query function switch area and the text query display module.
The text query function switch area mainly comprises a text query switch which is mainly represented as an adsorption type side bar and can be suspended on the current interface, the text query function can be controlled to be turned on and off by operating the text query switch, and when the text query function is turned off, the following preset search threshold value cannot be set and is in a state that a user can not click and select. In fig. 3, the text query switch is attached to the side bar NO/OFF icon of the mobile terminal. In the embodiment of the invention, the text query function switch area can be hidden and displayed according to the operation of the user on the screen of the mobile terminal, for example, the finger of the user slides on the side edge of the mobile terminal, if the finger of the user slides in from right to left, the text query function switch area is displayed, if the finger of the user slides out from left to right, the text query function switch area is hidden, and if the display time of the text query switch exceeds the preset time, the text query function switch area is also automatically hidden.
The character query display module mainly comprises a character query sending module, a character input module and a result display module. The text query and transmission module is mainly used for dynamically responding to the text input module to obtain the current input text, so that only the positions of the text input module and the result display module are shown in fig. 3, the text input module is mainly represented as a text input box, and the result display module is mainly represented as a text display box.
S203, if the number of the text words of the text cache content is within a preset search threshold, responding to the text query instruction, and searching for the text keywords matched with the query keywords in the text cache content.
In step S203, the preset search threshold may be set by the mobile terminal and selected by the user, so as to improve the efficiency of threshold determination. Or the user can directly and freely set the text query range so as to better meet the requirements of the user.
Fig. 4 also illustrates an interface of a mobile terminal when setting a preset search threshold. In a specific application, the preset search threshold is set in the text query function switch area, and when the text query function switch area is completely displayed, the preset search threshold not only includes the text query switch shown in fig. 3, but also includes a preset search threshold setting interface, as shown in fig. 4, when the mobile terminal pops up the complete text query function switch area according to the user operation, the preset search threshold setting interface is displayed, and when the text query function is directly closed through the NO/OFF icon attached to the side column of the mobile terminal, the interface cannot be called out.
In an embodiment, before the step S203, the method may further include:
and counting the number of text words of the character cache content according to the text content displayed on the screen of the mobile terminal.
In the steps, the text query range is narrowed by only counting the number of the text words of the text content part displayed on the screen of the mobile terminal, so that the text query is more pertinent.
In practical applications, if the user only wants to search for a text in the text content currently displayed on the screen of the mobile terminal, the method for counting the number of text words of the text cache content according to the text content displayed on the screen of the mobile terminal may be optimized, and then the determination of the search threshold in step S203 and the search for the text keyword matching the query keyword may be performed.
And S204, sorting the text keywords according to the aggregation degree of the text keywords and then generating a keyword query sequence list.
In step S204, the keyword query sequence list is provided for the user to call, and the current page can be directly jumped to the position of the current page in the text cache content by selecting any text keyword in the keyword list. And the keyword query sequence table generated according to the aggregation degree of the text keywords can enable a user to quickly lock the content with high correlation degree with the text keywords.
As shown in fig. 5, the embodiment of the present invention further exemplarily shows another mobile terminal interface using the text query method described above on the basis of fig. 3:
the keyword query sequence table is a background file, and only text keywords are displayed in a mobile terminal interface. Therefore, in the result display module of fig. 5, not only the number of query results is displayed, but also the user can select queries through the next/previous skip operation module.
In one embodiment, one manner of the step S204 may be:
counting the position distribution of the text keywords in the character cache content;
calculating the aggregation degree of the jth text keyword according to the position distribution of the text keyword in the character cache content;
and sorting the N text keywords according to the aggregation degree of the N text keywords to generate a keyword query sequence list.
The specific implementation of the steps can be as follows: after the distribution of the text keywords in the character cache content is counted, the text keywords gathered in the same paragraph are used as a center through paragraph division, and therefore the gathering degree of the text keywords in the same center is calculated according to the number of the text keywords in the center.
In a specific application, the aggregation degree of the text keywords is high, which indicates that in the paragraph, the content related to the text keywords is also more, and a user can lock the content concerned by the user in the text cache content through the text keywords with the high aggregation degree, so that the purpose of fast reading is achieved, and the efficiency of fast reading is improved.
It is conceivable that, in a specific application, other sorting methods may be provided at the same time to achieve different text query effects, for example: and determining the sequence of each text keyword in the keyword query sequence list according to the position of the text keyword in the text cache content so as to increase the relation between the paragraphs where the text keywords are located and improve the throughout reading efficiency.
In practical application, a plurality of text keywords can be searched according to a plurality of query keywords, a plurality of keyword lists are generated at the same time, and different text keywords can be searched by calling different keyword lists.
According to the text query method provided by the embodiment of the invention, the text query instruction is executed according to the actual situation, the text keywords are searched in the text cache content through the query keywords, and then the text keywords are sequenced to generate the keyword query sequence list, so that the searched text keywords are sequentially output to the user according to the aggregation degree of the keywords, the user can conveniently call and look up the text keywords, and the applicability and the query efficiency of text query are improved.
As shown in fig. 6, an implementation flow of another text query method is further provided in the embodiment of the present invention, and includes steps S201 to S204, where steps S201 to S204 are the same as steps S201 to S204 of the text query method shown in fig. 1, but in the embodiment of the present invention, after the text query instruction in step S202 is received and the query keyword is obtained according to the text query instruction, the implementation flow includes:
s2021, analyzing pinyin composition of the query keyword.
In the embodiment of the present invention, the searching for the text keyword matching the query keyword in the text cache content in step S203 includes the following detailed implementation procedures:
s2031, searching a text which has the same composition with the pinyin of the query keyword in the character cache content and taking the text as a target keyword; the target keyword is a text keyword which is first matched with the query keyword.
In a specific application, homophones may also be text keywords matched with the query keyword, and such text keywords can be filtered out by directly using character recognition due to an editing error, so that in the embodiment of the invention, the search text keyword is composed by pinyin firstly, the obtained target keyword is taken as the text keyword matched with the query keyword firstly, and text keywords which are homophones with the query keyword but have different shapes exist in the text keyword matched with the query keyword firstly, so that the range is wider.
In an embodiment, after the step S2031, the method further includes:
s2032, performing character recognition processing on the ith target keyword;
s2033, if the text recognition result of the ith target keyword is the query keyword, the ith target keyword is a text keyword that is second matched with the query keyword.
In a specific application, on the basis of the filtering in step S2031, the target keywords having the same tone and different shapes as the query keyword are filtered through character recognition, so as to obtain more accurate text keywords. Therefore, the text keywords which are matched with the query keywords secondly are obtained through character recognition on the basis of the text keywords which are matched with the query keywords firstly, and the text keywords which are homophonic but homomorphic with the query keywords are filtered more accurately.
In the embodiment of the invention, when the text keyword which is first matched with the query keyword is obtained according to the pinyin composition, the text keyword which is first matched with the query keyword, namely the target keyword, is listed in the keyword query sequence list, so that the user can select the target keyword. And after the word recognition processing is performed on the target keyword, a text keyword which is second matched with the query keyword can be obtained, it is conceivable that the text keyword which is second matched with the query keyword is also the target keyword, and therefore the text keyword also exists in the keyword query sequence table, in the sub-practical application, after the text keyword which is second matched with the query keyword is obtained, the target keyword except the text keyword which is second matched with the query keyword can be reserved, for example, the text keyword which is first matched with the query keyword and the text keyword which is second matched with the query keyword are respectively listed in the keyword query sequence table by different labels for screening by the user, so that the word recognition result is ensured to be accurate, and meanwhile, the omission of the word recognition result is avoided.
As shown in fig. 7, an embodiment of the present invention further provides a text query apparatus 50, including:
a text cache content obtaining module 71, configured to obtain text cache content;
the instruction receiving module 72 receives the text query instruction and obtains a query keyword according to the text query instruction;
a text keyword query module 73, configured to respond to a text query instruction and search for a text keyword matching the query keyword in the text cache content if the number of text words of the text cache content is within a preset search threshold;
and a keyword query sequence table output module 74, configured to sort the text keywords and generate a keyword query sequence table.
In an embodiment, before the text keyword query module 73 executes, the method may further include:
and counting the number of text words of the character cache content according to the text content displayed on the screen of the mobile terminal.
In the steps, the text query range is narrowed by only counting the number of the text words of the text content part displayed on the screen of the mobile terminal, so that the text query is more pertinent.
In practical application, if the user only wants to search for a text in the text content currently displayed on the screen of the mobile terminal, the method for counting the text words of the text cache content according to the text content displayed on the screen of the mobile terminal can be optimized, and then the judgment of the search threshold and the search for the text keyword matched with the query keyword are performed.
In an embodiment, one implementation manner of the keyword query sequence table output module 64 outputting the keyword query sequence table may be:
counting the distribution of the text keywords in the character cache content;
according to the distribution of the text keywords in the character cache content, calculating the aggregation degree of the ith text keyword;
and sorting the N text keywords according to the aggregation degree of the N text keywords to generate a keyword query sequence list.
The specific implementation of the steps can be as follows: after the distribution of the text keywords in the character cache content is counted, the text keywords gathered in the same paragraph are used as a center through paragraph division, and therefore the gathering degree of the text keywords in the same center is calculated according to the number of the text keywords in the center.
In a specific application, the aggregation degree of the text keywords is high, which indicates that in the paragraph, the content related to the text keywords is also more, and a user can lock the content concerned by the user in the text cache content through the text keywords with the high aggregation degree, so that the purpose of fast reading is achieved, and the efficiency of fast reading is improved.
It is conceivable that, in a specific application, other sorting methods may be provided at the same time to achieve different text query effects, for example: and determining the sequence of each text keyword in the keyword query sequence list according to the position of the text keyword in the text cache content so as to increase the relation between the paragraphs where the text keywords are located and improve the throughout reading efficiency.
In practical application, a plurality of text keywords can be searched according to a plurality of query keywords, a plurality of keyword lists are generated at the same time, and different text keywords can be searched by calling different keyword lists.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the foregoing embodiments illustrate the present invention in detail, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A text query method, comprising:
acquiring the currently displayed character cache content of the mobile terminal;
receiving a character query instruction, and acquiring a query keyword according to the character query instruction;
if the number of the text words of the text cache content is within a preset search threshold value, responding to the text query instruction, and searching for text keywords matched with the query keywords in the text cache content;
and sorting the text keywords according to the aggregation degree of the text keywords to generate a keyword query sequence list.
2. The text query method of claim 1, wherein the obtaining of the currently displayed cached text content of the mobile terminal comprises:
acquiring a network address of a current display page of the mobile terminal;
downloading a text cache file according to the network address;
and acquiring configuration information of the mobile terminal, decoding the text cache file according to the configuration information, and acquiring the text cache content currently displayed by the mobile terminal.
3. The method for querying texts according to claim 1, wherein after receiving the text query instruction and obtaining the query keyword according to the text query instruction, the method comprises:
and analyzing the pinyin composition of the query keyword.
4. The text query method of claim 3, wherein searching for a text keyword in the word cache content that matches the query keyword comprises:
searching a text which has the same pinyin composition with the query keyword in the character cache content and taking the text as a target keyword;
the target keyword is a text keyword which is first matched with the query keyword.
5. The text query method of claim 4, wherein searching for a text having the same composition as the pinyin of the query keyword in the text cache content as a target keyword comprises:
performing character recognition processing on the ith target keyword, wherein i is a positive integer;
and if the character recognition result of the ith target keyword is the query keyword, the ith target keyword is a text keyword which is second matched with the query keyword.
6. The method of claim 1, wherein if the number of text words in the text cache is within a predetermined search threshold, before responding to the text query command, the method comprises:
and counting the number of text words of the text cache content according to the text content displayed on the screen.
7. The text query method of claim 1, wherein generating a keyword query sequence list after sorting the text keywords according to the aggregation degree of the text keywords comprises:
acquiring the position distribution of the text keywords in the character cache content;
calculating the aggregation degree of the jth text keyword according to the position distribution of the text keyword in the character cache content;
and sorting the N text keywords according to the aggregation degree of the N text keywords to generate a keyword sequence table, wherein j and N are positive integers.
8. A text query apparatus, comprising:
the character cache content acquisition module is used for acquiring the character cache content currently displayed by the mobile terminal;
the instruction receiving module is used for receiving a character query instruction and acquiring a query keyword according to the character query instruction;
the text keyword query module is used for responding to the word query instruction and searching a text keyword matched with the query keyword in the word cache content if the number of the text words of the word cache content is within a preset search threshold value;
and the keyword query sequence table output module is used for sorting the text keywords according to the aggregation degree of the text keywords and then generating a keyword query sequence table.
9. A terminal device comprising a memory, a processor and a computer program stored on the memory and operable on the processor, the processor implementing the steps of the text query method according to any one of claims 1 to 7 when executing the computer program.
10. A storage medium being a computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the text query method according to any one of claims 1 to 7.
CN202010294424.9A 2020-04-15 2020-04-15 Text query method and device and terminal equipment Pending CN111400457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010294424.9A CN111400457A (en) 2020-04-15 2020-04-15 Text query method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010294424.9A CN111400457A (en) 2020-04-15 2020-04-15 Text query method and device and terminal equipment

Publications (1)

Publication Number Publication Date
CN111400457A true CN111400457A (en) 2020-07-10

Family

ID=71431673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010294424.9A Pending CN111400457A (en) 2020-04-15 2020-04-15 Text query method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN111400457A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111985478A (en) * 2020-09-02 2020-11-24 深圳壹账通智能科技有限公司 Text positioning playing method and device, computer equipment and readable storage medium
CN112487326A (en) * 2020-11-27 2021-03-12 杭州安恒信息技术股份有限公司 Data caching method, system, storage medium and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786883A (en) * 2014-12-24 2016-07-20 腾讯科技(深圳)有限公司 Information inquiring method and device
CN106202150A (en) * 2016-06-22 2016-12-07 北京小米移动软件有限公司 Method for information display and device
CN108416009A (en) * 2018-03-01 2018-08-17 广东欧珀移动通信有限公司 Text searching method, device, storage medium and the mobile terminal of mobile terminal
CN109325233A (en) * 2018-09-27 2019-02-12 北京安云世纪科技有限公司 Global semantic understanding method, apparatus, computer equipment and storage medium
CN109522402A (en) * 2018-10-22 2019-03-26 国家电网有限公司 A kind of abstract extraction method and storage medium based on power industry characteristic key words
CN109960752A (en) * 2019-04-12 2019-07-02 上海智臻智能网络科技股份有限公司 Querying method, device, computer equipment and storage medium in application program
CN110309387A (en) * 2018-03-07 2019-10-08 苏州猫耳网络科技有限公司 A kind of big data syndication reading recommended method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786883A (en) * 2014-12-24 2016-07-20 腾讯科技(深圳)有限公司 Information inquiring method and device
CN106202150A (en) * 2016-06-22 2016-12-07 北京小米移动软件有限公司 Method for information display and device
CN108416009A (en) * 2018-03-01 2018-08-17 广东欧珀移动通信有限公司 Text searching method, device, storage medium and the mobile terminal of mobile terminal
CN110309387A (en) * 2018-03-07 2019-10-08 苏州猫耳网络科技有限公司 A kind of big data syndication reading recommended method
CN109325233A (en) * 2018-09-27 2019-02-12 北京安云世纪科技有限公司 Global semantic understanding method, apparatus, computer equipment and storage medium
CN109522402A (en) * 2018-10-22 2019-03-26 国家电网有限公司 A kind of abstract extraction method and storage medium based on power industry characteristic key words
CN109960752A (en) * 2019-04-12 2019-07-02 上海智臻智能网络科技股份有限公司 Querying method, device, computer equipment and storage medium in application program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111985478A (en) * 2020-09-02 2020-11-24 深圳壹账通智能科技有限公司 Text positioning playing method and device, computer equipment and readable storage medium
CN112487326A (en) * 2020-11-27 2021-03-12 杭州安恒信息技术股份有限公司 Data caching method, system, storage medium and equipment
CN112487326B (en) * 2020-11-27 2024-03-19 杭州安恒信息技术股份有限公司 Data caching method, system, storage medium and equipment

Similar Documents

Publication Publication Date Title
JP6618223B2 (en) Audio processing method and apparatus
US9930167B2 (en) Messaging application with in-application search functionality
RU2718154C1 (en) Method and device for displaying possible word and graphical user interface
CN103037091B (en) SMS processing, device and terminal equipment
US20160306880A1 (en) Method and apparatus for identifying audio information
CN107436948B (en) File searching method and device and terminal
CN105139848B (en) Data transfer device and device
CN111400457A (en) Text query method and device and terminal equipment
CN104978045A (en) Chinese character input method and device
CN105095253A (en) Webpage display method and webpage display device
CN114692639A (en) Text error correction method and electronic equipment
CN105096962B (en) A kind of information processing method and terminal
KR20130080713A (en) Mobile terminal having function of voice recognition and method for providing search results thereof
CN114117269B (en) Memo information collection method and device, electronic equipment and storage medium
CN113055529B (en) Recording control method and recording control device
CN106557706B (en) Date storage method, device and mobile terminal
CN113241097A (en) Recording method, recording device, electronic equipment and readable storage medium
CN101673172A (en) Data synergism method and mobile communication terminal
CN108460128B (en) Document management method and device, electronic device and readable storage medium
CN106844717A (en) Webpage search display methods and device
CN107066420A (en) Search for the electronic equipment and method of data record
CN107391733B (en) Music file fast grouping method, music file fast grouping device and terminal
CN111159462A (en) Method and terminal for playing songs
CN111460424A (en) Interactive method, terminal and computer storage medium for lock screen configuration
CN110931014A (en) Speech recognition method and device based on regular matching rule

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