CN104281394A - Method and device for intelligently selecting words - Google Patents
Method and device for intelligently selecting words Download PDFInfo
- Publication number
- CN104281394A CN104281394A CN201310281857.0A CN201310281857A CN104281394A CN 104281394 A CN104281394 A CN 104281394A CN 201310281857 A CN201310281857 A CN 201310281857A CN 104281394 A CN104281394 A CN 104281394A
- Authority
- CN
- China
- Prior art keywords
- word
- user
- word segmentation
- area
- words
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04886—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/3332—Query translation
- G06F16/3334—Selection or weighting of terms from queries, including natural language queries
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements 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/0233—Character input methods
- G06F3/0236—Character input methods using selection techniques to select from displayed items
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Artificial Intelligence (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a method and device for intelligently selecting words, and belongs to the field of communication. The method comprises the steps of detecting a first area where fingers of a user touch under the word selecting state; enlarging the first area into a second area according to a preset pixel value; recognizing a text content in the second area; performing word segmentation calculation according to the recognized word content, and obtaining a word segmentation result of the text content; displaying the word segmentation result to allow a user to select words. The device comprises a detection module, an enlarging module, a recognition module, a word segmentation module and a display module. According to the method and device, a user does not need to use an adjusting rod to carry out manual adjustment, and error selection is avoided; due to the fact that corresponding words are automatically provided, the user can directly select the words, intelligent word selection is achieved, the word selection precision is improved, and the favorable guarantee is provided for subsequent operation.
Description
Technical Field
The invention relates to the field of communication, in particular to an intelligent word selection method and device.
Background
At present, when some mobile phones are looking at novels or reading web page length sections, if related operations are needed to be performed aiming at keywords, characters need to be selected. When the selected characters are encountered, the characters which are not wanted by the user can be adjusted only according to the adjusting rod provided by the system. When the distance between character lines is small, the adjusting rod is difficult to accurately select, a piece of character is often selected, or the character cannot be selected all the time due to the fact that the touch area of a finger of a user is too small, and related operations cannot be completed. Therefore, at present, selection errors often occur, accurate selection is difficult to realize, and subsequent operations cannot be performed.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for intelligent word selection. The technical scheme is as follows:
in one aspect, a method for intelligent word selection is provided, which includes:
detecting a first area touched by a finger of a user in a word selection state;
expanding the first area into a second area according to a preset pixel value;
identifying textual content in the second region;
performing word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content;
and displaying the word segmentation result for the user to select words.
In another aspect, an apparatus for intelligent word selection is provided, including:
the detection module is used for detecting a first area touched by a finger of a user in a word selection state;
the expansion module is used for expanding the first area into a second area according to a preset pixel value;
the identification module is used for identifying the text content in the second area;
the word segmentation module is used for carrying out word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content;
and the display module is used for displaying the word segmentation result for the user to select words.
The technical scheme provided by the invention has the beneficial effects that: the method comprises the steps of detecting a first area touched by a finger of a user in a word selection state, expanding the first area into a second area according to a preset pixel value, identifying character contents in the second area, performing word segmentation calculation according to the identified character contents to obtain word segmentation results of the character contents, displaying the word segmentation results for the user to select words, avoiding selection errors because the user does not need to manually adjust an adjusting rod, enabling the user to directly select words due to automatic provision of corresponding words, achieving intelligent word selection, expanding the first area touched by the finger of the user into the second area for performing word segmentation calculation, expanding a word selection range, improving word selection precision and providing a favorable guarantee for subsequent operation.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used 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 invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for intelligent word selection according to embodiment 1 of the present invention;
fig. 3 is a flowchart of a method for intelligent word selection according to embodiment 2 of the present invention;
FIG. 4 is a schematic diagram of the identification of a specified circumferential range provided in embodiment 2 of the present invention;
fig. 5 is a schematic diagram for displaying a vote list provided in embodiment 2 of the present invention;
FIG. 6 is a schematic diagram of text focus positioning provided in embodiment 2 of the present invention;
fig. 7 is a flowchart of a method for intelligent word selection according to embodiment 3 of the present invention;
fig. 8 is a diagram for displaying a vote list and a search list provided in embodiment 3 of the present invention;
fig. 9 is one of the structural diagrams of the apparatus for intelligent word selection according to embodiment 4 of the present invention;
fig. 10 is a second structure diagram of the device for intelligent word selection according to embodiment 4 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention relates to a method and a device for intelligently selecting words, which are applied to a mobile terminal with a touch screen. The structure of the mobile terminal may be as shown in fig. 1.
The mobile terminal 1200 may include RF (Radio Frequency) circuitry 110, a memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a WiFi (wireless fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal 1200, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 1, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor may detect the magnitude of acceleration in each direction (generally, three axes), may detect the magnitude and direction of gravity when stationary, may be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), and the like, and may further be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein again.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then transmits the audio data to, for example, another mobile terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal 1200 may help a user send and receive e-mails, browse webpages, access streaming media, and the like through the WiFi module 170, and provide the user with wireless broadband internet access. Although fig. 1 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the mobile terminal 1200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the mobile terminal as a whole. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera, a bluetooth module, and the like, which will not be described herein. In particular, in the following embodiments, the display unit of the mobile terminal is a touch screen display, which is not stated below.
Example 1
Referring to fig. 2, the present embodiment provides an intelligent word selection method, including:
101: detecting a first area touched by a finger of a user in a word selection state;
102: expanding the first area into a second area according to a preset pixel value;
103: identifying textual content in the second region;
104: performing word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content;
105: and displaying the word segmentation result for the user to select words.
In this embodiment, the word selection state refers to a state in which word selection can be performed on text content displayed on an interface in an application currently running. After the user selects a word, corresponding operation can be executed on the selected word. Such applications include, but are not limited to: browsers, readers, etc., including but not limited to: copy, search, share, translate, etc. For example, selecting words to search during browsing a web page or reading a novel.
With reference to the foregoing method, in a first embodiment, the expanding the first region into a second region according to a preset pixel value includes:
and taking a pixel point in the first area as a center, taking a preset pixel value as a radius, obtaining a circumferential range, and taking the circumferential range as an expanded second area.
With reference to the foregoing method, in a second implementation manner, performing a word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content includes:
dividing the recognized text content into character strings according to a preset strategy;
and matching the character strings obtained by division with a pre-stored word stock, and taking the matching result as a word segmentation result.
With reference to the foregoing method, the first implementation manner, or the second implementation manner, in a third implementation manner, the displaying the word segmentation result for user word selection includes:
displaying a word selection list comprising the word segmentation result around the first area for a user to select words; or,
and popping up a word selection interface, and displaying a word selection list comprising the word segmentation result on the word selection interface for a user to select words.
With reference to the third embodiment, in the fourth embodiment, after the popping up the vote interface, the method further includes:
and displaying a search list on the word selection interface for a user to select words for searching, wherein the search list comprises search words related to the words in the word selection list.
With reference to the foregoing method, the first implementation manner, or the second implementation manner, in a fifth implementation manner, after displaying the word segmentation result for a user to select a word, the method further includes:
and acquiring a keyword selected by a user in the word segmentation result, and positioning a character focus to the keyword.
With reference to the foregoing method, the first implementation manner, or the second implementation manner, in a sixth implementation manner, the displaying the word segmentation result for a user to select a word includes:
and displaying the words with the use frequency higher than a specified threshold value in the word segmentation result for a user to select words.
The method provided by the embodiment may be specifically executed by a client.
According to the method provided by the embodiment, the first area touched by the finger of the user in the word selection state is detected, the first area is expanded into the second area according to the preset pixel value, the character content in the second area is identified, the word segmentation result of the character content is obtained through word segmentation calculation according to the identified character content, and the word segmentation result is displayed for the user to select words.
Example 2
Referring to fig. 3, the present embodiment provides an intelligent word selection method, which may be executed by a client, and specifically includes:
201: detecting a first area touched by a finger of a user in a word selection state;
in this embodiment, the word selection state refers to a state in which word selection can be performed on text content displayed on an interface in an application currently running. After the user selects a word, corresponding operation can be executed on the selected word. Such applications include, but are not limited to: browsers, readers, etc., including but not limited to: copy, search, share, translate, etc. For example, selecting words to search during browsing a web page or reading a novel.
Specifically, the first area touched by the user's finger may be an area clicked by the user's finger.
202: expanding the first area into a second area according to a preset pixel value;
specifically, the step may include:
and taking a pixel point in the first area as a center, taking a preset pixel value as a radius, obtaining a circumferential range, and taking the circumferential range as an expanded second area.
Preferably, the pixel point is a center point of an area clicked by the user, usually, when the user clicks the screen with a finger, a contact range exists, that is, the area clicked by the user includes a plurality of pixel points, and the content accuracy rate identified when the center point of the area is selected as a circle center of the designated range is higher. Of course, in other embodiments, any point other than the center point of the area may be selected as the center of the designated range, which is not specifically limited in this embodiment.
For example, referring to fig. 4, if the preset pixel value is 100px, a circle range is obtained by taking the center of the click made by the user's finger as the center of the circle and taking 100px as the radius, and the circle range is used as the second area.
203: identifying the text content in the second area;
in this embodiment, the identified content may be a word, a phrase, a sentence, a paragraph, or the like, and the pixel value may be set to be larger in order to improve the precision of word selection, and at this time, the identified content may be larger; in order to increase the speed of word selection, the pixel value may be set to be smaller, and at this time, the recognized content is less, and the specific situation may be set as required.
204: performing word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content;
in this embodiment, the word segmentation calculation may be performed by a client, or may be performed by a server. When the client executes word segmentation calculation, a word bank needs to be stored in the client in advance, and when the server executes word segmentation calculation, the word bank does not need to be stored by the client, and the word content only needs to be sent to the server and the word segmentation result returned by the server is received.
Specifically, performing word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content, including:
dividing the recognized text content into character strings according to a preset strategy;
and matching the character strings obtained by division with a pre-stored word stock, and taking the matching result as a word segmentation result.
The word segmentation calculation refers to matching in a word bank according to a specified strategy, and words obtained by successful matching are used as word segmentation results. The word stock comprises a large number of words for matching, and the word stock can be updated regularly, so that the matching accuracy can be improved. The specified policy can be of various types, including but not limited to: forward matching, reverse matching, maximum length matching, minimum length matching, etc., which is not specifically limited in this embodiment.
For example, the text content is "department of personnel of high and new enterprises", and performing forward matching can obtain: "high and new", "enterprise", "personnel department", "high and new enterprise", "enterprise personnel department", etc.; performing the inverse matching may result in: "higher", "business", "personnel", "higher", "personnel", "business personnel", etc.; performing the minimum length matching may result in: "high newness", performing a maximum length match can result in: "department of business personnel" or "department of high and new business personnel", and the like.
In general, when a large number of word segmentation results are obtained, it is preferable that the word segmentation results are filtered, and a part of words are selected from the word segmentation results according to a certain rule as a final word segmentation result. For example, the result of word segmentation has 20 words, and after filtering, the preferred 9 words are obtained as the word segmentation result.
205: and displaying a word selection list comprising the word segmentation result around the first area for a user to select words.
Generally, after a user clicks on an area, the system pops up an edit menu for the user to select, and the edit menu is provided with buttons for various operations, such as copying, searching, sharing, and the like.
In this embodiment, a button "intelligent selection" may be added to an editing menu popped up by the system, and when the user clicks the button, the display of the word selection list around the area is triggered, and by checking the word selection list, the user can conveniently check whether there is a word that the user needs. The periphery may be above, below, left, right, and the like of the area, which is not particularly limited in this embodiment.
For example, referring to fig. 5, the area clicked by the user is an area containing two words of "arbor," the editing menu popped up by the system in the left drawing includes four buttons, the button "smart selection" is newly added after "copy", "search", and "share", and after the user clicks the "smart selection" button, the displayed interface is as shown in the right drawing, and a word selection list is displayed above "arbor," which includes 9 word segmentation results: "arbor", "apple", "Macs", "company", "Macs computer", "deficiency", "dream at that time" and "apple ii", the user can directly click the word to be selected.
In this embodiment, after step 205, the method further includes:
and acquiring a keyword selected by the user in the word segmentation result, and positioning a character focus to the keyword.
For example, on the basis of fig. 5, if the user clicks "Macs" in the word selection list, the text focus is positioned on the word, as shown in fig. 6, a corresponding operation button is displayed above the "Macs", and the user can click the corresponding button to perform the corresponding operation.
According to the method provided by the embodiment, the first area touched by the finger of the user in the word selection state is detected, the first area is expanded into the second area according to the preset pixel value, the character content in the second area is identified, the word segmentation result of the character content is obtained through word segmentation calculation according to the identified character content, and the word segmentation result is displayed for the user to select words.
Example 3
Referring to fig. 7, the present embodiment provides an intelligent word selection method, which may be executed by a client, and specifically includes:
601: detecting a first area touched by a finger of a user in a word selection state;
in this embodiment, the word selection state refers to a state in which word selection can be performed on text content displayed on an interface in an application currently running. After the user selects a word, corresponding operation can be executed on the selected word. Such applications include, but are not limited to: browsers, readers, etc., including but not limited to: copy, search, share, translate, etc. For example, selecting words to search during browsing a web page or reading a novel.
Specifically, the first area touched by the user's finger may be an area clicked by the user's finger.
602: expanding the first area into a second area according to a preset pixel value;
specifically, the step may include:
and taking a pixel point in the first area as a center, taking a preset pixel value as a radius, obtaining a circumferential range, and taking the circumferential range as an expanded second area.
Preferably, the pixel point is a center point of an area clicked by the user, usually, when the user clicks the screen, a contact range exists, that is, the area clicked by the user includes a plurality of pixel points, and the content accuracy rate identified when the center point of the area is selected as a circle center of the designated range is higher. Of course, in other embodiments, any point other than the center point of the area may be selected as the center of the designated range, which is not specifically limited in this embodiment.
603: identifying the text content in the second area;
in this embodiment, the identified content may be a word, a phrase, a sentence, a paragraph, or the like, and the pixel value may be set to be larger in order to improve the precision of word selection, and at this time, the identified content may be larger; in order to increase the speed of word selection, the pixel value may be set to be smaller, and at this time, the recognized content is less, and the specific situation may be set as required.
604: performing word segmentation calculation according to the recognized text content to obtain word segmentation results of the text content, and performing search matching according to the word segmentation results to obtain search words;
in this embodiment, the word segmentation calculation may be performed by a client, or may be performed by a server. When the client executes word segmentation calculation, a word bank needs to be stored in the client in advance, and when the server executes word segmentation calculation, the word bank does not need to be stored in the client, and the word content only needs to be sent to the server and receives a word segmentation result returned by the server.
Specifically, performing word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content, including:
dividing the recognized text content into character strings according to a preset strategy;
and matching the character strings obtained by division with a pre-stored word stock, and taking the matching result as a word segmentation result.
The word segmentation calculation refers to matching in a word bank according to a specified strategy, and words obtained by successful matching are used as word segmentation results. The word stock comprises a large number of words for matching, and the word stock can be updated regularly, so that the matching accuracy can be improved. The specified policy can be of various types, including but not limited to: forward matching, reverse matching, maximum length matching, minimum length matching, etc., which is not specifically limited in this embodiment.
In general, when a large number of word segmentation results are obtained, it is preferable that the word segmentation results are filtered, and a part of words are selected from the word segmentation results according to a certain rule as a final word segmentation result.
Specifically, the word segmentation result and the search word can be represented in the form of a key-value pair, such as the word segmentation result as a key and the search word as values.
605: popping up a word selection interface;
606: and displaying a word selection list comprising the word segmentation result on the word selection interface for a user to select words, and displaying a search list for later searching, wherein the search list comprises search words related to the words in the word selection list.
In this embodiment, after step 606, the method further includes:
and acquiring a keyword selected by the user in the word segmentation result, and positioning a character focus to the keyword.
In this embodiment, the vote list is display content that is necessary to be selected on the vote interface, and the search list is selectable display content and can be set as needed. When the vote list and the search list are displayed simultaneously, the arrangement modes of the vote list and the search list on the vote interface are not limited, such as up-down arrangement, left-right arrangement and the like.
For example, referring to FIG. 8, the system pops up a vote interface that includes a vote list and a search list. The vote list is above and the search list is below. The word selection list at the upper part in the left figure comprises all word segmentation results returned by the server, and a user can directly select and click to complete word selection. The search list at the lower part in the right image comprises each search word returned by the server, and a user can directly select and click the search word, so that corresponding search operation is triggered.
According to the method provided by the embodiment, the first area touched by the finger of the user in the word selection state is detected, the first area is expanded into the second area according to the preset pixel value, the character content in the second area is recognized, the word segmentation result of the character content is obtained through word segmentation calculation according to the recognized character content, and the word segmentation result is displayed for the user to select words.
Example 4
Referring to fig. 9, the present embodiment provides an apparatus for intelligently selecting words, including:
the detecting module 801 is configured to detect a first area touched by a finger of a user in a word selection state;
an expansion module 802, configured to expand the first region into a second region according to a preset pixel value;
an identifying module 803, configured to identify text content in the second area;
a word segmentation module 804, configured to perform word segmentation calculation according to the identified text content to obtain a word segmentation result of the text content;
and a display module 805 configured to display the word segmentation result for user word selection.
In conjunction with the above apparatus, in a first embodiment, the extension module 802 is configured to:
and taking a pixel point in the first area as a center, taking a preset pixel value as a radius, obtaining a circumferential range, and taking the circumferential range as an expanded second area.
In combination with the above apparatus, in a second implementation manner, the word segmentation module 804 includes:
the dividing unit is used for dividing the identified literal content into character strings according to a preset strategy;
and the matching unit is used for matching the character strings obtained by the division of the division unit with a pre-stored word stock and taking the matching result as a word segmentation result.
With reference to the above device, the first embodiment, or the second embodiment, in a third embodiment, the display module 805 includes:
the first display unit is used for displaying a word selection list comprising the word segmentation result around the first area for a user to select words; or,
and the second display unit is used for popping up a word selection interface, and displaying a word selection list comprising the word segmentation result on the word selection interface for a user to select words.
With reference to the third embodiment, in a fourth embodiment, the second display unit is further configured to:
and after a word selection interface is popped up, displaying a search list on the word selection interface for a user to select words for searching, wherein the search list comprises search words related to the words in the word selection list.
Referring to fig. 10, in combination with the above-mentioned apparatus, the first or second embodiment, in a fifth embodiment, the apparatus further comprises:
a positioning module 806, configured to obtain a keyword selected by the user in the word segmentation result after the word segmentation result is displayed by the display module 805 for the user to select a word, and position a focus of a text to the keyword.
With reference to the above device, the first or second embodiment, in a sixth embodiment, the display module 805 is configured to:
and displaying the words with the use frequency higher than a specified threshold value in the word segmentation result for a user to select words.
The apparatus provided in this embodiment may perform the method provided in any of the above method embodiments, and the detailed process is described in the method embodiments and is not described herein again.
The device provided by the embodiment can be applied to a mobile terminal of a touch screen, and the mobile terminal includes but is not limited to: a mobile phone, a tablet computer, etc., which are not limited in this embodiment.
According to the device provided by the embodiment, the first area touched by the finger of the user in the word selection state is detected, the first area is expanded into the second area according to the preset pixel value, the character content in the second area is recognized, the word segmentation result of the character content is obtained through word segmentation calculation according to the recognized character content, the word segmentation result is displayed for the user to select words, the process does not need the user to manually adjust an adjusting rod, selection errors are avoided, the user can directly select words due to the fact that corresponding words are automatically provided, intelligent word selection is achieved, the first area touched by the finger of the user is expanded into the second area for word segmentation calculation, the word selection range is expanded, word selection precision is improved, and beneficial guarantee is provided for subsequent operation.
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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (14)
1. A method of intelligent word selection, the method comprising:
detecting a first area touched by a finger of a user in a word selection state;
expanding the first area into a second area according to a preset pixel value;
identifying textual content in the second region;
performing word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content;
and displaying the word segmentation result for the user to select words.
2. The method of claim 1, wherein expanding the first region to a second region according to a preset pixel value comprises:
and taking a pixel point in the first area as a center, taking a preset pixel value as a radius, obtaining a circumferential range, and taking the circumferential range as an expanded second area.
3. The method of claim 1, wherein performing a word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content comprises:
dividing the recognized text content into character strings according to a preset strategy;
and matching the character strings obtained by division with a pre-stored word stock, and taking the matching result as a word segmentation result.
4. The method of any one of claims 1-3, wherein displaying the word segmentation results for user word selection comprises:
displaying a word selection list comprising the word segmentation result around the first area for a user to select words; or,
and popping up a word selection interface, and displaying a word selection list comprising the word segmentation result on the word selection interface for a user to select words.
5. The method of claim 4, wherein after popping up the vote interface, further comprising:
and displaying a search list on the word selection interface for a user to select words for searching, wherein the search list comprises search words related to the words in the word selection list.
6. The method of any one of claims 1-3, wherein displaying the word segmentation results for user selection further comprises:
and acquiring a keyword selected by a user in the word segmentation result, and positioning a character focus to the keyword.
7. The method of any one of claims 1-3, wherein displaying the word segmentation results for user word selection comprises:
and displaying the words with the use frequency higher than a specified threshold value in the word segmentation result for a user to select words.
8. An apparatus for intelligent word selection, the apparatus comprising:
the detection module is used for detecting a first area touched by a finger of a user in a word selection state;
the expansion module is used for expanding the first area into a second area according to a preset pixel value;
the identification module is used for identifying the text content in the second area;
the word segmentation module is used for carrying out word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content;
and the display module is used for displaying the word segmentation result for the user to select words.
9. The apparatus of claim 8, wherein the expansion module is configured to:
and taking a pixel point in the first area as a center, taking a preset pixel value as a radius, obtaining a circumferential range, and taking the circumferential range as an expanded second area.
10. The apparatus of claim 8, wherein the word segmentation module comprises:
the dividing unit is used for dividing the identified literal content into character strings according to a preset strategy;
and the matching unit is used for matching the character strings obtained by the division of the division unit with a pre-stored word stock and taking the matching result as a word segmentation result.
11. The apparatus of any one of claims 8-10, wherein the display module comprises:
the first display unit is used for displaying a word selection list comprising the word segmentation result around the first area for a user to select words; or,
and the second display unit is used for popping up a word selection interface, and displaying a word selection list comprising the word segmentation result on the word selection interface for a user to select words.
12. The apparatus of claim 11, wherein the second display unit is further configured to:
and after a word selection interface is popped up, displaying a search list on the word selection interface for a user to select words for searching, wherein the search list comprises search words related to the words in the word selection list.
13. The apparatus according to any one of claims 8-10, further comprising:
and the positioning module is used for acquiring the keywords selected by the user in the word segmentation result after the word segmentation result is displayed by the display module for the user to select words, and positioning the focus of the characters to the keywords.
14. The apparatus of any one of claims 8-10, wherein the display module is configured to:
and displaying the words with the use frequency higher than a specified threshold value in the word segmentation result for a user to select words.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310281857.0A CN104281394A (en) | 2013-07-05 | 2013-07-05 | Method and device for intelligently selecting words |
PCT/CN2014/081624 WO2015000429A1 (en) | 2013-07-05 | 2014-07-04 | Intelligent word selection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310281857.0A CN104281394A (en) | 2013-07-05 | 2013-07-05 | Method and device for intelligently selecting words |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104281394A true CN104281394A (en) | 2015-01-14 |
Family
ID=52143121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310281857.0A Pending CN104281394A (en) | 2013-07-05 | 2013-07-05 | Method and device for intelligently selecting words |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104281394A (en) |
WO (1) | WO2015000429A1 (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104765815A (en) * | 2015-04-03 | 2015-07-08 | 北京奇虎科技有限公司 | Method and device for identifying search keyword |
CN105955616A (en) * | 2016-04-29 | 2016-09-21 | 北京小米移动软件有限公司 | Method and device for selecting document contents |
CN106201255A (en) * | 2016-06-30 | 2016-12-07 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN107305446A (en) * | 2016-04-25 | 2017-10-31 | 北京锤子数码科技有限公司 | The method and apparatus for obtaining keyword in pressure sensitive region |
CN108829686A (en) * | 2018-05-30 | 2018-11-16 | 北京小米移动软件有限公司 | Translation information display methods, device, equipment and storage medium |
CN109471539A (en) * | 2018-10-23 | 2019-03-15 | 维沃移动通信有限公司 | A kind of input content modification method and mobile terminal |
WO2019201109A1 (en) * | 2018-04-18 | 2019-10-24 | Oppo广东移动通信有限公司 | Word processing method and apparatus, and mobile terminal and storage medium |
CN111142728A (en) * | 2019-12-26 | 2020-05-12 | 腾讯科技(深圳)有限公司 | Vehicle-mounted environment intelligent text processing method and device, electronic equipment and storage medium |
CN111381751A (en) * | 2016-10-18 | 2020-07-07 | 北京字节跳动网络技术有限公司 | Text processing method and device |
CN111723567A (en) * | 2020-05-20 | 2020-09-29 | 支付宝(杭州)信息技术有限公司 | Text selection data processing method, device and equipment |
CN114757180A (en) * | 2020-12-26 | 2022-07-15 | 华为技术有限公司 | Method for selecting text, electronic equipment and computer readable storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106325688B (en) * | 2016-08-17 | 2020-01-14 | 北京字节跳动网络技术有限公司 | Text processing method and device |
CN110069145B (en) * | 2019-04-30 | 2024-06-21 | 努比亚技术有限公司 | Text input method, text input equipment and computer readable storage medium |
CN110490953B (en) * | 2019-07-25 | 2023-04-07 | 维沃移动通信有限公司 | Text-based image generation method, terminal device and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281592A (en) * | 2008-05-09 | 2008-10-08 | 上海合合信息科技发展有限公司 | Method for estreating words based on camera and character recognition technique |
US20100235726A1 (en) * | 2009-03-16 | 2010-09-16 | Bas Ording | Methods and Graphical User Interfaces for Editing on a Multifunction Device with a Touch Screen Display |
CN102609208A (en) * | 2012-02-13 | 2012-07-25 | 广州市动景计算机科技有限公司 | Method and system for word capture on screen of touch screen equipment, and touch screen equipment |
CN102841746A (en) * | 2012-07-11 | 2012-12-26 | 广东欧珀移动通信有限公司 | Mobile phone webpage interaction method |
CN103019578A (en) * | 2011-09-27 | 2013-04-03 | 中国移动通信集团公司 | Text selection method and test selection device as well as picture interception method and picture interception device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100545792C (en) * | 2007-08-24 | 2009-09-30 | 上海汉翔信息技术有限公司 | Method for realizing intelligent software keyboard input on screen of electronic equipment |
KR101462932B1 (en) * | 2008-05-28 | 2014-12-04 | 엘지전자 주식회사 | Mobile terminal and method for correcting text thereof |
-
2013
- 2013-07-05 CN CN201310281857.0A patent/CN104281394A/en active Pending
-
2014
- 2014-07-04 WO PCT/CN2014/081624 patent/WO2015000429A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281592A (en) * | 2008-05-09 | 2008-10-08 | 上海合合信息科技发展有限公司 | Method for estreating words based on camera and character recognition technique |
US20100235726A1 (en) * | 2009-03-16 | 2010-09-16 | Bas Ording | Methods and Graphical User Interfaces for Editing on a Multifunction Device with a Touch Screen Display |
CN103019578A (en) * | 2011-09-27 | 2013-04-03 | 中国移动通信集团公司 | Text selection method and test selection device as well as picture interception method and picture interception device |
CN102609208A (en) * | 2012-02-13 | 2012-07-25 | 广州市动景计算机科技有限公司 | Method and system for word capture on screen of touch screen equipment, and touch screen equipment |
CN102841746A (en) * | 2012-07-11 | 2012-12-26 | 广东欧珀移动通信有限公司 | Mobile phone webpage interaction method |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104765815A (en) * | 2015-04-03 | 2015-07-08 | 北京奇虎科技有限公司 | Method and device for identifying search keyword |
CN107305446A (en) * | 2016-04-25 | 2017-10-31 | 北京锤子数码科技有限公司 | The method and apparatus for obtaining keyword in pressure sensitive region |
CN107305446B (en) * | 2016-04-25 | 2020-08-14 | 北京字节跳动网络技术有限公司 | Method and device for acquiring keywords in pressure sensing area |
CN105955616B (en) * | 2016-04-29 | 2019-05-07 | 北京小米移动软件有限公司 | A method and device for selecting document content |
CN105955616A (en) * | 2016-04-29 | 2016-09-21 | 北京小米移动软件有限公司 | Method and device for selecting document contents |
CN106201255A (en) * | 2016-06-30 | 2016-12-07 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN111381751A (en) * | 2016-10-18 | 2020-07-07 | 北京字节跳动网络技术有限公司 | Text processing method and device |
WO2019201109A1 (en) * | 2018-04-18 | 2019-10-24 | Oppo广东移动通信有限公司 | Word processing method and apparatus, and mobile terminal and storage medium |
CN108829686A (en) * | 2018-05-30 | 2018-11-16 | 北京小米移动软件有限公司 | Translation information display methods, device, equipment and storage medium |
CN109471539A (en) * | 2018-10-23 | 2019-03-15 | 维沃移动通信有限公司 | A kind of input content modification method and mobile terminal |
CN109471539B (en) * | 2018-10-23 | 2023-06-06 | 维沃移动通信有限公司 | A method for modifying input content and mobile terminal |
CN111142728A (en) * | 2019-12-26 | 2020-05-12 | 腾讯科技(深圳)有限公司 | Vehicle-mounted environment intelligent text processing method and device, electronic equipment and storage medium |
CN111723567A (en) * | 2020-05-20 | 2020-09-29 | 支付宝(杭州)信息技术有限公司 | Text selection data processing method, device and equipment |
CN111723567B (en) * | 2020-05-20 | 2024-06-11 | 支付宝(杭州)信息技术有限公司 | Text selection data processing method, device and equipment |
CN114757180A (en) * | 2020-12-26 | 2022-07-15 | 华为技术有限公司 | Method for selecting text, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2015000429A1 (en) | 2015-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104281394A (en) | Method and device for intelligently selecting words | |
CN106775637B (en) | Page display method and device for application program | |
US20170091335A1 (en) | Search method, server and client | |
CN104852885B (en) | Method, device and system for verifying verification code | |
JP6492184B2 (en) | Method, device, and system for managing information recommendations | |
CN108156508B (en) | Barrage information processing method and device, mobile terminal, server and system | |
US20140365892A1 (en) | Method, apparatus and computer readable storage medium for displaying video preview picture | |
CN103702297A (en) | Short message enhancement method, device and system | |
RU2612598C2 (en) | Method, equipment and terminal symbol selection device | |
CN105302452B (en) | Operation method and device based on gesture interaction | |
CN107885718B (en) | Semantic determination method and device | |
US9921735B2 (en) | Apparatuses and methods for inputting a uniform resource locator | |
CN103455585A (en) | Method, device and terminal for displaying commodity information | |
WO2015000430A1 (en) | Intelligent word selection method and device | |
CN104281568B (en) | Paraphrasing display method and paraphrasing display device | |
CN105095161B (en) | Method and device for displaying rich text information | |
WO2014146450A1 (en) | Method, device and system for data searching | |
CN113050863A (en) | Page switching method and device, storage medium and electronic equipment | |
EP2869604A1 (en) | Method, apparatus and device for processing a mobile terminal resource | |
CN105653112B (en) | Method and device for displaying floating layer | |
CN112749074B (en) | Test case recommending method and device | |
CN103383701A (en) | Information retrieving method, device and terminal | |
CN103399706A (en) | Page interaction method, device and terminal | |
CN104281610A (en) | Method and device for filtering microblogs | |
CN106230919B (en) | File uploading method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150114 |
|
RJ01 | Rejection of invention patent application after publication |