WO2015000429A1 - Intelligent word selection method and device - Google Patents

Intelligent word selection method and device Download PDF

Info

Publication number
WO2015000429A1
WO2015000429A1 PCT/CN2014/081624 CN2014081624W WO2015000429A1 WO 2015000429 A1 WO2015000429 A1 WO 2015000429A1 CN 2014081624 W CN2014081624 W CN 2014081624W WO 2015000429 A1 WO2015000429 A1 WO 2015000429A1
Authority
WO
WIPO (PCT)
Prior art keywords
word
area
word segmentation
user
text content
Prior art date
Application number
PCT/CN2014/081624
Other languages
French (fr)
Chinese (zh)
Inventor
姜楠
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2015000429A1 publication Critical patent/WO2015000429A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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/04886Interaction 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
    • 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/3332Query translation
    • G06F16/3334Selection or weighting of terms from queries, including natural language queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0236Character input methods using selection techniques to select from displayed items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for intelligent word selection. Background technique
  • the present invention provides a method of intelligent word selection.
  • the method includes: detecting a first area touched in a word selection state; expanding the first area to a second area according to a preset pixel value; identifying a text content in the second area; The text content is subjected to word segmentation to obtain a word segmentation result of the text content; and the word segmentation result is displayed for the user to select a word.
  • the present invention provides an apparatus for intelligent word selection.
  • the device includes: a detecting module, configured to detect a first area touched in a word selection state; an expansion module, configured to expand the first area to a second area according to a preset pixel value; Identifying the text content in the second area; a word segmentation module, configured to perform word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content; and a display module, configured to display the word segmentation result for the user to select a word .
  • the present invention provides an apparatus for intelligent word selection.
  • the apparatus includes: a memory; one or more processors; stored on the memory for execution by the one or more processors
  • One or more programs, the one or more programs including instructions to: detect a first region touched in a word selection state; expand the first region to a second region according to a preset pixel value Identifying the text content in the second area; performing 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 a word.
  • the present invention provides a computer readable storage medium storing one or more programs executed by a computer system, the program comprising instructions to: detect a first region touched in a word selection state And expanding the first area into a second area according to the preset pixel value; identifying the text content in the second area; performing word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content; The word segmentation result is displayed for the user to select a word.
  • the technical solution provided by the present invention has the beneficial effects of: by detecting a first area touched by a finger in a word selection state, expanding the first area to a second area according to a preset pixel value, and identifying the first
  • the text content in the two regions is subjected to word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content, and the word segmentation result is displayed for the user to select a word, and the process does not require the user to manually adjust the adjustment bar, thereby reducing
  • the user can directly select the word, realize the intelligent word selection, and expand the first area touched by the user's finger to the second area for word segmentation, which expands the range of the word selection and improves the word selection.
  • Accuracy provides a favorable guarantee for subsequent operations.
  • FIG. 1 shows a schematic diagram of a smart word selection device in accordance with one embodiment of the present invention.
  • FIG. 2 is a flow chart showing a smart word selection method according to an embodiment of the present invention.
  • FIG. 3 is a flow chart showing a smart word selection method according to another embodiment of the present invention.
  • FIG. 4 shows a schematic diagram of identifying a touch area in accordance with one embodiment of the present invention.
  • Figure 5 shows a schematic diagram of an interface with an edit menu in accordance with one embodiment of the present invention.
  • Figure 6 shows a schematic diagram of an interface with a word selection list in accordance with one embodiment of the present invention.
  • FIG. 7 shows a schematic diagram of an interface with an edit menu, in accordance with one embodiment of the present invention.
  • FIG. 8 is a flow chart showing a smart word selection method according to still another embodiment of the present invention.
  • Figure 9 shows a schematic diagram of a word selection interface in accordance with one embodiment of the present invention.
  • Figure 10 shows a schematic diagram of a smart word selection device in accordance with one embodiment of the present invention.
  • Figure 11 is a diagram showing a smart word selection device according to an embodiment of the present invention.
  • FIG. 12 is a diagram showing a smart word selection device in accordance with still another embodiment of the present invention. Mode for carrying out the invention
  • FIG. 1 shows a schematic diagram of a smart word selection device in accordance with one embodiment of the present invention.
  • the device is for example a mobile terminal 100 with a touch screen.
  • the mobile terminal 100 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, and an audio circuit 160.
  • RF Radio Frequency
  • a WiFi (wireless fidelity) module 170 a processor 180 including one or more processing cores, and a power supply 190 and the like. It may include more or fewer components than those illustrated, or some components may be combined, or have different component arrangements.
  • the RF circuit 110 can be used to receive and transmit signals during a message or a call. In particular, upon receipt of downlink information from the base station, RF circuitry 110 hands it over to one or more processors 180; upon receipt of the upstream data, RF circuitry 110 transmits it to the base station.
  • the RF circuit 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). , duplexer, etc.
  • SIM Subscriber Identity Module
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the data storage area may be stored according to Data (such as audio data, phone book, etc.) created by the use of the mobile terminal 100.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • Input unit 130 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 131 or on the touch-sensitive surface 131 The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 may include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, detects a touch signal generated by the touch operation, and transmits the touch signal to the touch controller.
  • the touch controller receives the touch signal from the touch detection device, converts it to contact coordinates, sends it to the processor 180, and receives the command from the processor 180 and executes it.
  • the touch-sensitive surface 131 can be realized by various types of devices such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the mobile terminal 100, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • 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.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch operation, and then the processor 180 operates according to the touch operation. Type on the display surface A corresponding visual output is provided on the board 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • the mobile terminal 100 can also include at least one type of sensor 150, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile terminal 100 moves to the ear. And / or backlight.
  • the gravity acceleration sensor can detect the acceleration of each direction (generally three directions, respectively, the X-axis, y-axis, and z-axis in the three-dimensional coordinate system), and the gravity of the mobile terminal can be detected at rest. Size and direction, can be used to identify the attitude of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.;
  • the audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the mobile terminal 100.
  • the audio circuit 160 can transmit the converted electric signal of the audio data to the speaker 161, and the speaker 161 converts it into a sound signal output.
  • the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then processed by the audio data output processor 180, and then transmitted to the mobile terminal 110 via the RF circuit 110, for example, to another mobile terminal. Or, the audio data is output to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication between the peripheral earphone and the mobile terminal 100.
  • WiFi is a short-range wireless transmission technology that provides users with wireless broadband Internet access.
  • the mobile terminal 100 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170.
  • FIG. 12 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the mobile terminal 100, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the mobile terminal 100 that connects various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling stored in the memory 120.
  • Processor 180 can include one or more processing cores.
  • the processor 180 can integrate an application processor and a modem processor, wherein the application processor mainly processes Operating systems, user interfaces, applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the mobile terminal 100 also includes a power source 190 (such as a battery) that supplies power to the various components.
  • the power supply 190 can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power management through a power management system.
  • Power supply 190 may also include any 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.
  • the mobile terminal 100 may further include a camera, a Bluetooth module, and the like, which will not be described herein.
  • the display unit of the mobile terminal is a touch screen display, which is no longer - declared.
  • FIG. 2 is a flow chart showing a method for intelligent word selection according to an embodiment of the present invention. The method includes the following processing.
  • step 201 the first area touched by the finger in the word selection state is detected.
  • step 202 the first region is expanded to a second region according to a preset pixel value.
  • step 203 the text content in the second area is identified.
  • step 204 word segmentation is performed according to the recognized text content to obtain a word segmentation result of the text content.
  • step 105 the word segmentation result is displayed for the user to select a word.
  • the word selection state refers to that the currently displayed application can be displayed on the interface.
  • the applications include, but are not limited to: browsers, readers, etc., including but not limited to: copying, searching, sharing, translating, and the like. For example, during the process of browsing a web page or reading a novel, a word is selected for searching.
  • the pixel when the first area is expanded to the second area according to a preset pixel value, the pixel may be centered on a pixel in the first area, and the preset pixel value is a radius. Obtain a circular range, and use the circular range as the enlarged second area.
  • the recognized text content is divided into a character string according to a preset policy, and the segmentation result is obtained.
  • the string is matched with the pre-stored thesaurus, and the result of the matching is used as the result of the word segmentation.
  • a word selection list including the word segmentation result is displayed around the first area for the user to select a word, or a word selection interface is popped up.
  • a word selection list including the word segmentation result is displayed on the word selection interface for the user to select a word.
  • a search list is further displayed on the word selection interface for the user to select a word for searching, and the search list includes search words related to words in the word selection list.
  • the keyword selected by the user in the word segmentation result is obtained, and the text focus is positioned to the keyword.
  • a word whose frequency of use is higher than a specified threshold is displayed for the user to select a word.
  • the above method provided by this embodiment can be performed, for example, by a client.
  • the process does not require the user to manually adjust using the adjustment bar, thereby reducing selection errors, due to corresponding
  • the word is automatically provided to the user, the user can directly select, realize intelligent word selection, and expand the first area touched by the user's finger to the second area for word segmentation, which expands the range of word selection and improves the precision of word selection. Provides a favorable guarantee for subsequent operations.
  • FIG. 3 is a flow chart showing a smart word selection method according to an embodiment of the present invention. As shown in Figure 3, the method includes the following processing.
  • step 301 a first area touched by the finger in the word selection state is detected.
  • the word selection state refers to a state in which the word content displayed on the interface can be selected in the currently running application. After the user makes a word selection, the corresponding operation can be performed on the selected word.
  • the applications include, but are not limited to, browsers, readers, etc., including but not limited to: copying, searching, sharing, translating, and the like. For example, select words for searching while browsing a web page or reading a novel.
  • the first area touched by the user's finger may be, for example, an area clicked by the user's finger.
  • step 302 the first area is expanded to a second area according to a preset pixel value.
  • a circular area is obtained with a predetermined pixel value as a center centering on one pixel in the first area, and the circular area is used as the enlarged second area.
  • the pixel point is, for example, a center point of a region that the user clicks.
  • a contact range that is, an area that the user clicks, and the area includes a plurality of pixels, and the area is selected.
  • the center point of the specified range is more accurate when it is identified as the center of the specified range.
  • any point other than the center point of the area may be selected as the center of the specified range, which is not specifically limited in this embodiment.
  • FIG. 4 shows a schematic diagram of identifying a touch area in accordance with an embodiment of the present invention.
  • the preset pixel value is 100px
  • the center 402 of the user's finger click area 401 is the center of the circle
  • a circular area 403 is obtained by using ⁇ as the radius, and the circular area is used as the second area.
  • the text content in the second area is identified.
  • the identified content may be a word, a phrase, a sentence or a paragraph, etc.
  • the pixel value in order to improve the precision of the word selection, the pixel value may be set larger, and at this time, the recognized The content will be more.
  • the pixel values In order to increase the speed of word selection, the pixel values may be set smaller, and at this time, the recognized content will be less, and the specific situation may be set as needed.
  • step 304 a word segmentation result of the text content is obtained according to the recognized text content.
  • the word segmentation calculation may be performed by the client, or the word segmentation calculation may be performed by the server.
  • the word segmentation calculation may be performed by the client, or the word segmentation calculation may be performed by the server.
  • the thesaurus needs to be pre-stored in the client.
  • the server performs the word segmentation calculation, the client does not need to store the thesaurus, and only needs to send the text content to the server and receive the word segmentation result returned by the server.
  • the recognized text content is divided into a character string according to a preset policy, and the divided character string is The pre-stored thesaurus is matched, and the matching result is used as the result of the word segmentation.
  • the word segmentation calculation refers to matching in the lexicon according to the specified strategy, and matching the successfully obtained word as a result of the word segmentation.
  • the vocabulary includes a large number of vocabularies for matching, and the vocabulary can also be updated periodically to improve the accuracy of the matching.
  • the specified policy has multiple types, including but not limited to: forward matching, reverse matching, maximum length matching, minimum length matching, and the like, which are not specifically limited in this embodiment.
  • the text content is "People's Republic of China", and a positive match can be obtained: “China”, “People”, “Republic”, “Chinese People”, “People's Republic”, etc.
  • Reverse matching can be obtained: “China”, “people”, “republic”, “CCP”, “Republic”, “People's Republic”, etc.
  • the minimum length matching can be obtained: “Chinese”.
  • the maximum length matching can be obtained: “People's Republic” or “Medium” People's Republic of China "Wait.
  • the word segmentation results may also be filtered, and a part of the word segments are selected from the word segmentation results as a final word segmentation result according to a certain rule.
  • the result of the word segmentation has 20 words, which are filtered to obtain the preferred 9 words as the result of the word segmentation.
  • step 305 a word list including the word segmentation result is displayed around the first area for the user to select a word.
  • an editing menu pops up for the user to select, and the editing menu provides buttons for various operations, such as copying, searching, sharing, and the like.
  • a button "smart selection” can be added to the editing menu popped up by the system.
  • the selection of the word selection list is triggered around the area.
  • the surrounding area may be the upper side, the lower side, the left side, the right side, and the like of the area, which is not specifically limited in this embodiment.
  • FIG. 5 shows a schematic diagram of an interface with an edit menu in accordance with an embodiment of the present invention.
  • Figure 6 shows a schematic diagram of an interface with a word selection list in accordance with an embodiment of the present invention.
  • the system pops up an edit menu that includes four buttons, which are newly added after "copy”, “search”, and “share”.
  • the button “smart selection”.
  • the displayed interface is as shown in Figure 6.
  • the word selection list is displayed above “Job”, including 9 word segmentation results: “Job”, “Steve Jobs”, “Apple”, “ Macs”, “Company”, “Macs Computer”, “Insufficient”, “Dreams at the Time” and “Applell", users can directly click on the keywords they need to select.
  • step 205 keywords selected by the user in the word segmentation result are obtained, and the text focus is located to the keyword.
  • the process does not require the user to manually adjust using the adjustment bar, thereby reducing selection errors, due to automatic Provide corresponding words, users can directly select, real Now the intelligent word selection, and the first area touched by the user's finger is expanded into the second area for word segmentation calculation, which expands the range of word selection, improves the precision of word selection, and provides favorable protection for subsequent operations.
  • FIG. 8 is a flow chart showing a smart word selection method according to still another embodiment of the present invention. As shown in Figure 8, the method includes the following processing.
  • step 801 a first area touched by the finger in the word selection state is detected.
  • the word selection state refers to a state in which the word content displayed on the interface can be selected in the currently running application. After the user selects a word, the corresponding action can be performed on the selected word.
  • the applications include, but are not limited to: browsers, readers, etc., including but not limited to: copying, searching, sharing, translating, and the like. For example, in the process of browsing a web page or reading a novel, a word is selected for searching.
  • the first area touched by the user's finger may be, for example, an area clicked by the user's finger.
  • the first region is expanded to a second region according to a preset pixel value.
  • a circular area is obtained with a predetermined pixel value as a center centering on one pixel in the first area, and the circular area is used as the enlarged second area.
  • the pixel point is, for example, a center point of a region that the user clicks.
  • a contact range that is, an area clicked by the user
  • the area includes a plurality of pixels, and the accuracy of the content recognized when the center point of the area is selected as the center of the specified range is higher.
  • any point other than the center point of the area may be selected as the center of the specified range, which is not specifically limited in this embodiment.
  • step 803 the text content in the second area is identified.
  • the identified content may be a word, a phrase, a sentence or a paragraph, etc.
  • the pixel value in order to improve the precision of the word selection, the pixel value may be set larger, and at this time, the recognized The content will be more.
  • the pixel values In order to increase the speed of word selection, the pixel values may be set smaller, and at this time, the recognized content will be less, and the specific situation may be set as needed.
  • step 804 the word segmentation result of the text content is obtained according to the recognized word content, and the search word is obtained by searching and matching according to the word segmentation result.
  • the word segmentation calculation may be performed by the client, or the word segmentation calculation may be performed by the server.
  • the thesaurus needs to be pre-stored in the client.
  • the server performs the word segmentation calculation, the client does not need to store the thesaurus, and only needs to send the text content to the server and receive the word segmentation result returned by the server.
  • the word segmentation result of the text content is obtained according to the recognized word content, the recognized text content is divided into a character string according to a preset policy, and the divided character string is The pre-stored thesaurus is matched, and the matching result is used as the result of the word segmentation.
  • the word segmentation calculation refers to matching in the lexicon according to the specified strategy, and matching the successfully obtained word as a result of the word segmentation.
  • the vocabulary includes a large number of vocabularies for matching, and the vocabulary can also be updated periodically to improve the accuracy of the matching.
  • the specified policy has multiple types, including but not limited to: forward matching, reverse matching, maximum length matching, minimum length matching, and the like, which are not specifically limited in this embodiment.
  • the word segmentation results may also be filtered, and a part of the word segments are selected from the word segmentation results as a final word segmentation result according to a certain rule.
  • the word segmentation result and the search term may be expressed in the form of a key-value pair, such as a word segmentation result as a key and a search word as a value.
  • a word selection interface pops up.
  • a word selection list including the word segmentation result is displayed on the word selection interface for the user to select a word, and the search list is displayed for later search, the search list including search words related to the words in the word selection list.
  • the method further includes: acquiring a keyword selected by the user in the word segmentation result, and positioning the text focus to the keyword.
  • the word selection list is a mandatory display content on the word selection interface
  • the search list is an optional display content, which can be set as needed.
  • the word selection list and the search list are displayed at the same time, the word selection list and the search list are arranged in an arbitrary manner, such as up and down, left and right, and the like.
  • Figure 9 shows a schematic diagram of a word selection interface in accordance with an embodiment of the present invention.
  • the system pops up a word selection interface 900, which includes a word selection list 901 and a search list 902.
  • the word selection list 901 is at the top and the search list 902 is at the bottom.
  • the word selection list 901 includes the results of each word segment returned by the server, and the user can directly select and click to complete the word selection.
  • the search list 902 includes various search terms returned by the server, and the user can directly select and click to trigger the corresponding search operation.
  • the process does not require the user to manually use the adjustment lever Adjustment, avoiding the selection mistakes, because the words are automatically provided, the user can directly select, realize the intelligent word selection, and expand the first area touched by the user's finger to the second area for word segmentation, which expands the range of word selection. Improve the accuracy of word selection and provide favorable protection for subsequent operations.
  • Figure 10 shows a schematic diagram of a smart word selection device in accordance with one embodiment of the present invention.
  • the intelligent word selection device 1000 includes a detection module 1001, an expansion module 1002, an identification module 1003, a word segmentation module 1004, and a display module 1005.
  • the detecting module 1001 is configured to detect a first area touched by the finger by the user in the word selection state.
  • the expansion module 1002 is for expanding the first area to the second area according to a preset pixel value.
  • the identification module 1003 is configured to identify the text content in the second area.
  • the word segmentation module 1004 is configured to perform segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content.
  • the display module 1005 is configured to display the word segmentation result for the user to select a word.
  • the expansion module 1002 is configured to obtain a circular area with a preset pixel value as a center centering on one pixel in the first area, and use the circular area as an enlarged area. The second area.
  • the word segmentation module 1004 includes a division unit and a matching unit.
  • the dividing unit is configured to divide the recognized text content into a character string according to a preset policy.
  • the matching unit is configured to match the character string obtained by dividing the dividing unit with a pre-stored vocabulary, and use the matching result as a word segmentation result.
  • the display module 1005 includes: a first display unit, configured to display a word selection list including the word segmentation result for the user to select a word around the first area; or, a second display unit, configured to: A word selection interface is popped up, and a word selection list including the word segmentation result is displayed on the word selection interface for the user to select a word.
  • the second display unit is further configured to: after the pop-up word selection interface, display a search list on the word selection interface for the user to select a word for searching, where the search list includes the selection Word-related search terms in the word list.
  • the apparatus 1000 further includes:
  • the positioning module 1006 is configured to: after the display module 1005 displays the word segmentation result for the user to select a word, obtain a keyword selected by the user in the word segmentation result, and locate the text focus to the keyword.
  • the display module 1005 is configured to display the frequency of use of the word segmentation result is higher than Specify a word of wide value for the user to choose a word.
  • the foregoing apparatus provided in this embodiment may perform the method provided in any one of the foregoing method embodiments.
  • the foregoing apparatus provided in this embodiment may 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, and the like, which is not specifically limited in this embodiment.
  • the process does not require the user to manually adjust using the adjustment bar, thereby avoiding the selection error, due to automatic Providing corresponding words, the user can directly select, realize intelligent word selection, and expand the first area touched by the user's finger to the second area for word segmentation, expand the range of word selection, and improve the precision of word selection for subsequent operations. Provides a favorable guarantee.
  • FIG. 12 is a diagram showing a smart word selection device in accordance with still another embodiment of the present invention.
  • smart word selection device 1200 includes a memory 1202, one or more processors 1201, and one or more applications 1203 stored on memory 1202 for execution by one or more processors 1201.
  • the application 1203 includes, for example, instructions for performing the steps in the foregoing method embodiments, and the detailed process is described in the method embodiments.
  • the foregoing apparatus provided in this embodiment may 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, and the like, which is not specifically limited in this embodiment.
  • the aforementioned memory 1202 includes, but is not limited to, various non-volatile memories, such as a USB flash drive, a removable hard disk, a read only memory (ROM), a random access memory (RAM), Erase Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash or other solid state memory technology, CD-ROM, Digital Versatile Disc (DVD), HD-DVD, Blu-ray (Blue- Ray ) or other optical storage device, tape, disk storage or other magnetic storage device, or any other medium that can be used to store the required information and that can be accessed by the computer.
  • various non-volatile memories such as a USB flash drive, a removable hard disk, a read only memory (ROM), a random access memory (RAM), Erase Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash or other solid state memory technology, CD-ROM, Digital Versatile Disc (DVD), HD-DVD, Blu-ray (Blue- Ray
  • the first area is expanded into a second area according to a preset pixel value, and the text in the second area is identified.
  • the process does not require the user to manually adjust using the adjustment bar, thereby avoiding the selection error, due to automatic Provide corresponding words, users can directly select, real Now the intelligent word selection, and the first area touched by the user's finger is expanded into the second area for word segmentation calculation, which expands the range of word selection, improves the precision of word selection, and provides favorable protection for subsequent operations.

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

An intelligent word selection method and device, the method comprising: detecting a first area touched in a word selection state; expanding the first area into a second area according to a preset pixel value; identifying the text in the second area; according to the identified text, conducting word segmentation calculation on the text to obtain a word segmentation result; and displaying the word segmentation result for a user to select words. The device comprises a detection module, an expansion module, an identification module, a word segmentation module and a display module. The present invention does not require a user to utilize an adjusting bar for manual adjustment, thus reducing selection errors, and automatically provides corresponding words for a user to directly choose from, thus realizing intelligent word selection, improving word selection precision, and facilitates subsequent operations.

Description

智能选词的方法和装置 本申请要求于 2013年 7月 5日提交中国专利局、申请号为 201310281857.0、 发明名称为 "智能选词的方法和装置" 的中国专利申请的优先权, 其全部内容 通过引用结合在本申请中。 技术领域  The present invention claims the priority of a Chinese patent application filed on July 5, 2013 by the Chinese Patent Office, the application number is 201310281857.0, and the invention is entitled "Intelligent Word Selection Method and Apparatus". This is incorporated herein by reference. Technical field
本发明涉及通信领域, 特别涉及一种智能选词的方法和装置。 背景技术  The present invention relates to the field of communications, and in particular, to a method and apparatus for intelligent word selection. Background technique
目前, 很多用户会在触摸屏手机、 触摸屏平板电脑等等之类的带触摸屏终 端上看小说或者阅读网页。 用户可能会需要选取一些文字作为关键词进行后续 的相关操作, 比如复制、 剪切、 搜索等。 通常, 在用户选取文字时, 需要用手 机系统提供的调节杆调整所选的文字内容。 当文字行间距较小的时候, 用调节 杆也难精准选取, 常常选取的内容过多或过少, 或者由于用户手指触摸的区域 过小, 可能会出现始终选取不上的情况。 发明内容  Currently, many users read novels or read web pages on touch screen terminals such as touch screen phones, touch screen tablets, and the like. Users may need to select some text as keywords for subsequent related operations, such as copying, cutting, searching, and so on. Usually, when the user selects text, the adjustment bar provided by the handheld system is required to adjust the selected text content. When the line spacing is small, it is difficult to select accurately with the adjustment lever. The content that is often selected is too much or too little, or because the area touched by the user's finger is too small, there may be cases where it is not always selected. Summary of the invention
为了解决现有技术的问题, 本发明实施例提供了智能选词的方法和装置。 一方面, 本发明提供了一种智能选词的方法。 该方法包括: 检测在选词状 态下被触摸的第一区域; 按照预设的像素值将所述第一区域扩大为第二区域; 识别所述第二区域中的文字内容; 根据识别出的所述文字内容进行分词计算得 到所述文字内容的分词结果; 显示所述分词结果供用户选词。  In order to solve the problems of the prior art, embodiments of the present invention provide a method and apparatus for intelligent word selection. In one aspect, the present invention provides a method of intelligent word selection. The method includes: detecting a first area touched in a word selection state; expanding the first area to a second area according to a preset pixel value; identifying a text content in the second area; The text content is subjected to word segmentation to obtain a word segmentation result of the text content; and the word segmentation result is displayed for the user to select a word.
另一方面, 本发明提供了一种智能选词的装置。 该装置包括: 检测模块, 用于检测在选词状态下被触摸的第一区域; 扩展模块, 用于按照预设的像素值 将所述第一区域扩大为第二区域; 识别模块, 用于识别所述第二区域中的文字 内容; 分词模块, 用于根据识别出的所述文字内容进行分词计算得到所述文字 内容的分词结果; 显示模块, 用于显示所述分词结果供用户选词。  In another aspect, the present invention provides an apparatus for intelligent word selection. The device includes: a detecting module, configured to detect a first area touched in a word selection state; an expansion module, configured to expand the first area to a second area according to a preset pixel value; Identifying the text content in the second area; a word segmentation module, configured to perform word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content; and a display module, configured to display the word segmentation result for the user to select a word .
再一方面, 本发明提供了一种智能选词的装置。 该装置包括: 存储器; 一 个或多个处理器; 存储在所述存储器上用来由所述一个或多个处理器来执行的 一个或多个程序, 所述一个或多个程序包括执行下列步骤的指令: 检测在选词 状态下被触摸的第一区域; 按照预设的像素值将所述第一区域扩大为第二区域; 识别所述第二区域中的文字内容; 根据识别出的所述文字内容进行分词计算得 到所述文字内容的分词结果; 显示所述分词结果供用户选词。 In still another aspect, the present invention provides an apparatus for intelligent word selection. The apparatus includes: a memory; one or more processors; stored on the memory for execution by the one or more processors One or more programs, the one or more programs including instructions to: detect a first region touched in a word selection state; expand the first region to a second region according to a preset pixel value Identifying the text content in the second area; performing 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 a word.
再一方面, 本发明提供了一种计算机可读存储介质, 存储由计算机系统执 行的一个或多个程序, 所述程序包括执行下列步骤的指令: 检测在选词状态下 被触摸的第一区域; 按照预设的像素值将所述第一区域扩大为第二区域; 识别 所述第二区域中的文字内容; 根据识别出的所述文字内容进行分词计算得到所 述文字内容的分词结果; 显示所述分词结果供用户选词。  In still another aspect, the present invention provides a computer readable storage medium storing one or more programs executed by a computer system, the program comprising instructions to: detect a first region touched in a word selection state And expanding the first area into a second area according to the preset pixel value; identifying the text content in the second area; performing word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content; The word segmentation result is displayed for the user to select a word.
本发明提供的技术方案带来的有益效果是: 通过检测用户在选词状态下手 指触摸的第一区域, 按照预设的像素值将所述第一区域扩大为第二区域, 识别 所述第二区域中的文字内容, 根据识别出的所述文字内容进行分词计算得到所 述文字内容的分词结果, 显示所述分词结果供用户选词, 该过程无需用户使用 调节杆进行手动调节, 减少了选取失误, 由于自动提供相应的词, 用户可以直 接进行选取, 实现了智能选词, 且将用户手指触摸的第一区域扩大为第二区域 进行分词计算, 扩大了选词范围, 提高了选词精度, 为后续操作提供了有利的 保障。 附图简要说明  The technical solution provided by the present invention has the beneficial effects of: by detecting a first area touched by a finger in a word selection state, expanding the first area to a second area according to a preset pixel value, and identifying the first The text content in the two regions is subjected to word segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content, and the word segmentation result is displayed for the user to select a word, and the process does not require the user to manually adjust the adjustment bar, thereby reducing By selecting the error, the user can directly select the word, realize the intelligent word selection, and expand the first area touched by the user's finger to the second area for word segmentation, which expands the range of the word selection and improves the word selection. Accuracy provides a favorable guarantee for subsequent operations. BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图 1示出了才艮据本发明一个实施例的智能选词装置的示意图。  1 shows a schematic diagram of a smart word selection device in accordance with one embodiment of the present invention.
图 2示出了才艮据本发明一个实施例的智能选词方法的流程示意图。  FIG. 2 is a flow chart showing a smart word selection method according to an embodiment of the present invention.
图 3示出了才艮据本发明另一个实施例的智能选词方法的流程示意图。  FIG. 3 is a flow chart showing a smart word selection method according to another embodiment of the present invention.
图 4示出了根据本发明一个实施例的对触摸区域进行识别的示意图。  4 shows a schematic diagram of identifying a touch area in accordance with one embodiment of the present invention.
图 5示出了根据本发明一个实施例的具有编辑菜单的界面的示意图。  Figure 5 shows a schematic diagram of an interface with an edit menu in accordance with one embodiment of the present invention.
图 6示出了根据本发明一个实施例的具有选词列表的界面的示意图。  Figure 6 shows a schematic diagram of an interface with a word selection list in accordance with one embodiment of the present invention.
图 7示出了根据本发明一个实施例的具有编辑菜单的界面的示意图。 图 8示出了才艮据本发明再一个实施例的智能选词方法的流程示意图。 Figure 7 shows a schematic diagram of an interface with an edit menu, in accordance with one embodiment of the present invention. FIG. 8 is a flow chart showing a smart word selection method according to still another embodiment of the present invention.
图 9示出了根据本发明一个实施例的选词界面的示意图。  Figure 9 shows a schematic diagram of a word selection interface in accordance with one embodiment of the present invention.
图 10示出了根据本发明一个实施例的智能选词装置的示意图。  Figure 10 shows a schematic diagram of a smart word selection device in accordance with one embodiment of the present invention.
图 11示出了才艮据本发明一个实施例的智能选词装置的示意图。  Figure 11 is a diagram showing a smart word selection device according to an embodiment of the present invention.
图 12示出了根据本发明再一个实施例的智能选词装置的示意图。 实施本发明的方式  Figure 12 is a diagram showing a smart word selection device in accordance with still another embodiment of the present invention. Mode for carrying out the invention
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明 实施方式作进一步地详细描述。  The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
图 1 示出了根据本发明一个实施例的智能选词装置的示意图。 该装置例如 是带触摸屏的移动终端 100。  FIG. 1 shows a schematic diagram of a smart word selection device in accordance with one embodiment of the present invention. The device is for example a mobile terminal 100 with a touch screen.
如图 1所示,移动终端 100可以包括 RF ( Radio Frequency,射频)电路 110、 包括有一个或一个以上计算机可读存储介质的存储器 120、 输入单元 130、 显示 单元 140、传感器 150、音频电路 160、 WiFi(wireless fidelity,无线保真)模块 170、 包括有一个或者一个以上处理核心的处理器 180、 以及电源 190等部件。 本领域 它可以包括比图示更多或更少的部件, 或者组合某些部件, 或者具有不同的部 件布置。  As shown in FIG. 1, the mobile terminal 100 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, and an audio circuit 160. A WiFi (wireless fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190 and the like. It may include more or fewer components than those illustrated, or some components may be combined, or have different component arrangements.
其中, RF电路 110可用于在收发消息或通话过程中, 接收和发送信号。 特 别地, 当收到来自基站的下行信息后, RF电路 110将其交由一个或者一个以上 处理器 180处理; 当收到上行数据时, RF电路 110将它发送给基站。 通常, RF 电路 110 包括但不限于天线、 至少一个放大器、 调谐器、 一个或多个振荡器、 用户身份模块(SIM )卡、 收发信机、 耦合器、 LNA ( Low Noise Amplifier, 低 噪声放大器)、 双工器等。 此外, RF电路 110还可以通过无线通信与网络和其 他设备通信。 所述无线通信可以使用任一通信标准或协议, 包括但不限于 GSM(Global System of Mobile communication, 全球移动通讯系统 )、 GPRS(General Packet Radio Service, 通用分组无线服务)、 CDMA(Code Division Multiple Access , 码分多址)、 WCDMA(Wideband Code Division Multiple Access, 宽带码分多址)、 LTE(Long Term Evolution,长期演进)、 电子邮件、 SMS(Short Messaging Service, 短消息服务)等。 存储器 120可用于存储软件程序以及模块, 处理器 180通过运行存储在存 储器 120 的软件程序以及模块, 从而执行各种功能应用以及数据处理。 存储器 120可主要包括程序存储区和数据存储区, 其中, 程序存储区可存储操作系统、 至少一个功能 (比如声音播放功能、 图像播放功能等) 所需的应用程序等; 数 据存储区可存储根据移动终端 100 的使用所创建的数据(比如音频数据、 电话 本等)等。 此外, 存储器 120 可以包括高速随机存取存储器, 还可以包括非易 失性存储器, 例如至少一个磁盘存储器件、 闪存器件、 或其他非易失性固态存 储器件。 相应地, 存储器 120还可以包括存储器控制器, 以提供处理器 180和 输入单元 130对存储器 120的访问。 The RF circuit 110 can be used to receive and transmit signals during a message or a call. In particular, upon receipt of downlink information from the base station, RF circuitry 110 hands it over to one or more processors 180; upon receipt of the upstream data, RF circuitry 110 transmits it to the base station. Generally, the RF circuit 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). , duplexer, etc. In addition, RF circuitry 110 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like. The memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the data storage area may be stored according to Data (such as audio data, phone book, etc.) created by the use of the mobile terminal 100. Moreover, memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
输入单元 130可用于接收输入的数字或字符信息, 以及产生与用户设置以 及功能控制有关的键盘、 鼠标、 操作杆、 光学或者轨迹球信号输入。 具体地, 输入单元 130可包括触敏表面 131以及其他输入设备 132。 触敏表面 131, 也称 为触摸显示屏或者触控板, 可收集用户在其上或附近的触摸操作 (比如用户使 用手指、 触笔等任何适合的物体或附件在触敏表面 131上或在触敏表面 131附 近的操作), 并根据预先设定的程式驱动相应的连接装置。  Input unit 130 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 130 can include touch-sensitive surface 131 as well as other input devices 132. Touch-sensitive surface 131, also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 131 or on the touch-sensitive surface 131 The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
可选的, 触敏表面 131可包括触摸检测装置和触摸控制器两个部分。 其中, 触摸检测装置检测用户的触摸方位, 检测触摸操作产生的触摸信号, 并将触摸 信号传送给触摸控制器。 触摸控制器从触摸检测装置上接收触摸信号, 将它转 换成触点坐标,再送给处理器 180,并能接收处理器 180发来的命令并加以执行。 此外, 可以釆用电阻式、 电容式、 红外线以及表面声波等多种类型的器件实现 触敏表面 131。 除了触敏表面 131, 输入单元 130还可以包括其他输入设备 132。 具体地, 其他输入设备 132可以包括但不限于物理键盘、 功能键(比如音量控 制按键、 开关按键等)、 轨迹球、 鼠标、 操作杆等中的一种或多种。  Alternatively, the touch-sensitive surface 131 may include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, detects a touch signal generated by the touch operation, and transmits the touch signal to the touch controller. The touch controller receives the touch signal from the touch detection device, converts it to contact coordinates, sends it to the processor 180, and receives the command from the processor 180 and executes it. In addition, the touch-sensitive surface 131 can be realized by various types of devices such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 can 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 buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元 140可用于显示由用户输入的信息或提供给用户的信息以及移动 终端 100 的各种图形用户接口, 这些图形用户接口可以由图形、 文本、 图标、 视频和其任意组合来构成。 显示单元 140可包括显示面板 141, 可选的, 可以釆 用 LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode, 有机发光二极管)等形式来配置显示面板 141。 进一步的, 触敏表面 131可覆盖 显示面板 141, 当触敏表面 131检测到在其上或附近的触摸操作后, 传送给处理 器 180以确定触摸操作的类型, 随后处理器 180根据触摸操作的类型在显示面 板 141上提供相应的视觉输出。 虽然在图 12中, 触敏表面 131与显示面板 141 是作为两个独立的部件来实现输入和输出功能, 但是在某些实施例中, 可以将 触敏表面 131与显示面板 141集成而实现输入和输出功能。 The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the mobile terminal 100, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141. Alternatively, 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 the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch operation, and then the processor 180 operates according to the touch operation. Type on the display surface A corresponding visual output is provided on the board 141. Although in FIG. 12, touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
移动终端 100还可包括至少一种传感器 150, 比如光传感器、运动传感器以 及其他传感器。 具体地, 光传感器可包括环境光传感器及接近传感器, 其中, 环境光传感器可根据环境光线的明暗来调节显示面板 141 的亮度, 接近传感器 可在移动终端 100移动到耳边时, 关闭显示面板 141和 /或背光。 作为运动传感 器的一种, 重力加速度传感器可检测各个方向上 (一般为三个方向, 分别为三 维坐标系中的 X轴、 y轴、 z轴)加速度的大小, 静止时可检测出移动终端重力 的大小及方向, 可用于识别移动终端姿态的应用 (比如横竖屏切换、 相关游戏、 磁力计姿态校准)、 振动识别相关功能(比如计步器、 敲击)等; 至于移动终端 The mobile terminal 100 can also include at least one type of sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile terminal 100 moves to the ear. And / or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the acceleration of each direction (generally three directions, respectively, the X-axis, y-axis, and z-axis in the three-dimensional coordinate system), and the gravity of the mobile terminal can be detected at rest. Size and direction, can be used to identify the attitude of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.;
100还可配置的陀螺仪、 气压计、湿度计、温度计、红外线传感器等其他传感器, 在此不再赘述。 100 other gyro, barometer, hygrometer, thermometer, infrared sensor and other sensors can be configured, and will not be described here.
音频电路 160、 扬声器 161, 传声器 162可提供用户与移动终端 100之间的 音频接口。 音频电路 160可将接收到的音频数据转换后的电信号, 传输到扬声 器 161, 由扬声器 161转换为声音信号输出。  The audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the mobile terminal 100. The audio circuit 160 can transmit the converted electric signal of the audio data to the speaker 161, and the speaker 161 converts it into a sound signal output.
另一方面, 传声器 162将收集的声音信号转换为电信号, 由音频电路 160 接收后转换为音频数据, 再将音频数据输出处理器 180处理后, 经 RF电路 110 以发送给比如另一移动终端, 或者将音频数据输出至存储器 120 以便进一步处 理。 音频电路 160还可能包括耳塞插孔, 以提供外设耳机与移动终端 100的通 信。  On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then processed by the audio data output processor 180, and then transmitted to the mobile terminal 110 via the RF circuit 110, for example, to another mobile terminal. Or, the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication between the peripheral earphone and the mobile terminal 100.
WiFi属于短距离无线传输技术, 为用户提供无线的宽带互联网访问, 移动 终端 100通过 WiFi模块 170可以帮助用户收发电子邮件、 浏览网页和访问流式 媒体等。 虽然图 12示出了 WiFi模块 170, 但是可以理解的是, 其并不属于移动 终端 100的必须构成, 完全可以根据需要在不改变发明的本质的范围内而省略。  WiFi is a short-range wireless transmission technology that provides users with wireless broadband Internet access. The mobile terminal 100 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170. Although FIG. 12 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the mobile terminal 100, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器 180是移动终端 100的控制中心, 利用各种接口和线路连接整个移 动终端的各个部分,通过运行或执行存储在存储器 120内的软件程序和 /或模块, 以及调用存储在存储器 120内的数据, 执行移动终端 100的各种功能和处理数 据, 从而对移动终端进行整体监控。 处理器 180可包括一个或多个处理核心。 处理器 180可集成应用处理器和调制解调处理器, 其中, 应用处理器主要处理 操作系统、 用户界面和应用程序等, 调制解调处理器主要处理无线通信。 可以 理解的是, 上述调制解调处理器也可以不集成到处理器 180中。 The processor 180 is a control center of the mobile terminal 100 that connects various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling stored in the memory 120. The data, performing various functions and processing data of the mobile terminal 100, thereby performing overall monitoring of the mobile terminal. Processor 180 can include one or more processing cores. The processor 180 can integrate an application processor and a modem processor, wherein the application processor mainly processes Operating systems, user interfaces, applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
移动终端 100还包括给各个部件供电的电源 190 (比如电池)。 电源 190可 以通过电源管理系统与处理器 180逻辑相连, 从而通过电源管理系统实现管理 充电、 放电、 以及功耗管理等功能。 电源 190还可以包括一个或一个以上的直 流或交流电源、 再充电系统、 电源故障检测电路、 电源转换器或者逆变器、 电 源状态指示器等任意组件。  The mobile terminal 100 also includes a power source 190 (such as a battery) that supplies power to the various components. The power supply 190 can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power management through a power management system. Power supply 190 may also include any 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.
尽管图 1未示出, 移动终端 100还可以包括摄像头、 蓝牙模块等, 在此不 再赘述。 具体在下面的各个实施例中, 移动终端的显示单元是触摸屏显示器, 下文不再——声明。  Although not shown in FIG. 1, the mobile terminal 100 may further include a camera, a Bluetooth module, and the like, which will not be described herein. In particular in the various embodiments below, the display unit of the mobile terminal is a touch screen display, which is no longer - declared.
图 2示出了根据本发明一个实施例的智能选词方法的流程示意图。 该方法 包括以下处理过程。  FIG. 2 is a flow chart showing a method for intelligent word selection according to an embodiment of the present invention. The method includes the following processing.
在步骤 201, 检测用户在选词状态下手指触摸的第一区域。 在步骤 202, 按 照预设的像素值将所述第一区域扩大为第二区域。 在步骤 203, 识别所述第二区 域中的文字内容。在步骤 204, 根据识别出的所述文字内容进行分词计算得到所 述文字内容的分词结果。 在步骤 105, 显示所述分词结果供用户选词。  In step 201, the first area touched by the finger in the word selection state is detected. At step 202, the first region is expanded to a second region according to a preset pixel value. At step 203, the text content in the second area is identified. In step 204, word segmentation is performed according to the recognized text content to obtain a word segmentation result of the text content. At step 105, the word segmentation result is displayed for the user to select a word.
本实施例中, 选词状态是指在当前正在运行的应用中, 可以对界面上显示 作。 所述应用包括但不限于: 浏览器、 阅读器等, 所述操作包括但不限于: 复 制、 搜索、 分享、 翻译等等。 例如, 在浏览网页或阅读小说的过程中选词以进 行搜索。  In this embodiment, the word selection state refers to that the currently displayed application can be displayed on the interface. The applications include, but are not limited to: browsers, readers, etc., including but not limited to: copying, searching, sharing, translating, and the like. For example, during the process of browsing a web page or reading a novel, a word is selected for searching.
根据一种实施方式, 在按照预设的像素值将所述第一区域扩大为第二区域 时, 可以以所述第一区域内的一个像素点为中心, 以预设的像素值为半径, 获 取一个圓形范围, 将所述圓形范围作为扩大后的第二区域。  According to an embodiment, when the first area is expanded to the second area according to a preset pixel value, the pixel may be centered on a pixel in the first area, and the preset pixel value is a radius. Obtain a circular range, and use the circular range as the enlarged second area.
根据一种实施方式, 在根据识别出的所述文字内容进行分词计算得到所述 文字内容的分词结果时, 按照预设的策略将识别出的所述文字内容划分为字符 串, 将划分得到的字符串与预先存储的词库进行匹配, 将匹配的结果作为分词 结果。  According to an embodiment, when the word segmentation result of the text content is obtained according to the recognized word content, the recognized text content is divided into a character string according to a preset policy, and the segmentation result is obtained. The string is matched with the pre-stored thesaurus, and the result of the matching is used as the result of the word segmentation.
根据一种实施方式, 在显示所述分词结果供用户选词时, 在所述第一区域 周围显示包括所述分词结果的选词列表供用户选词, 或者, 弹出选词界面, 在 所述选词界面上显示包括所述分词结果的选词列表供用户选词。 According to an embodiment, when the word segmentation result is displayed for the user to select a word, a word selection list including the word segmentation result is displayed around the first area for the user to select a word, or a word selection interface is popped up. A word selection list including the word segmentation result is displayed on the word selection interface for the user to select a word.
根据一种实施方式, 弹出选词界面之后, 在所述选词界面上还显示搜索列 表供用户选词进行搜索, 所述搜索列表包括与所述选词列表中的词相关的搜索 词。  According to an embodiment, after the word selection interface is popped up, a search list is further displayed on the word selection interface for the user to select a word for searching, and the search list includes search words related to words in the word selection list.
根据一种实施方式, 在显示所述分词结果供用户选词之后, 获取用户在所 述分词结果中选择的关键词, 将文字焦点定位到所述关键词。  According to an embodiment, after displaying the word segmentation result for the user to select a word, the keyword selected by the user in the word segmentation result is obtained, and the text focus is positioned to the keyword.
根据一种实施方式, 在显示所述分词结果供用户选词时, 显示所述分词结 果中使用频率高于指定阔值的词供用户选词。  According to an embodiment, when the word segmentation result is displayed for the user to select a word, a word whose frequency of use is higher than a specified threshold is displayed for the user to select a word.
本实施例提供的上述方法, 例如可以由客户端来执行。  The above method provided by this embodiment can be performed, for example, by a client.
本实施例提供的上述方法, 通过检测用户在选词状态下手指触摸的第一区 域, 按照预设的像素值将所述第一区域扩大为第二区域, 识别所述第二区域中 的文字内容, 根据识别出的所述文字内容进行分词计算得到所述文字内容的分 词结果, 显示所述分词结果供用户选词, 该过程无需用户使用调节杆进行手动 调节, 减少了选取失误, 由于相应的词是自动提供给用户, 用户可以直接进行 选取, 实现了智能选词, 且将用户手指触摸的第一区域扩大为第二区域进行分 词计算, 扩大了选词范围, 提高了选词精度, 为后续操作提供了有利的保障。  In the above method provided by the embodiment, by detecting a first area touched by a finger in a word selection state, the first area is expanded to a second area according to a preset pixel value, and the text in the second area is identified. Content, 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 a word, the process does not require the user to manually adjust using the adjustment bar, thereby reducing selection errors, due to corresponding The word is automatically provided to the user, the user can directly select, realize intelligent word selection, and expand the first area touched by the user's finger to the second area for word segmentation, which expands the range of word selection and improves the precision of word selection. Provides a favorable guarantee for subsequent operations.
图 3 示出了才艮据本发明一个实施例的智能选词方法的流程示意图。 如图 3 所示, 该方法包括以下处理过程。  FIG. 3 is a flow chart showing a smart word selection method according to an embodiment of the present invention. As shown in Figure 3, the method includes the following processing.
在步骤 301, 检测用户在选词状态下手指触摸的第一区域。  In step 301, a first area touched by the finger in the word selection state is detected.
在本实施例中, 所述选词状态是指在当前正在运行的应用中, 可以对界面 上显示的文字内容进行选词的状态。 在用户进行选词后可以对所选的词执行相 应的操作。 所述应用包括但不限于: 浏览器、 阅读器等, 所述操作包括但不限 于: 复制、 搜索、 分享、 翻译等等。 例如, 在浏览网页或阅读小说的过程中选 词以进行搜索。  In this embodiment, the word selection state refers to a state in which the word content displayed on the interface can be selected in the currently running application. After the user makes a word selection, the corresponding operation can be performed on the selected word. The applications include, but are not limited to, browsers, readers, etc., including but not limited to: copying, searching, sharing, translating, and the like. For example, select words for searching while browsing a web page or reading a novel.
用户手指触摸的第一区域例如可以为用户手指点击的区域。  The first area touched by the user's finger may be, for example, an area clicked by the user's finger.
在步骤 302, 按照预设的像素值将所述第一区域扩大为第二区域。 在该步骤 中, 以所述第一区域内的一个像素点为中心, 以预设的像素值为半径, 获取一 个圓形区域, 将该圓形区域作为扩大后的第二区域。  In step 302, the first area is expanded to a second area according to a preset pixel value. In this step, a circular area is obtained with a predetermined pixel value as a center centering on one pixel in the first area, and the circular area is used as the enlarged second area.
所述像素点例如为用户点击的区域的中心点。 通常, 用户手指点击屏幕时 会有一个接触范围, 即用户点击的区域, 该区域包括若干像素点, 选取该区域 的中心点作为指定范围的圓心时识别的内容准确率更高。 当然, 在其它实施方 式下, 也可以选取该区域的中心点以外的其它任意一点作为指定范围的圓心, 本实施例对此不做具体限定。 The pixel point is, for example, a center point of a region that the user clicks. Usually, when the user clicks on the screen, there is a contact range, that is, an area that the user clicks, and the area includes a plurality of pixels, and the area is selected. The center point of the specified range is more accurate when it is identified as the center of the specified range. Of course, in other embodiments, any point other than the center point of the area may be selected as the center of the specified range, which is not specifically limited in this embodiment.
图 4示出了根据本发明实施例的对触摸区域进行识别的示意图。  FIG. 4 shows a schematic diagram of identifying a touch area in accordance with an embodiment of the present invention.
例如, 参见图 4, 预设的像素值为 100px, 则以用户手指点击区域 401的中 心 402为圓心, 以 ΙΟΟρχ为半径获得一个圓形区域 403, 将该圓形区域作为第二 区域。  For example, referring to FIG. 4, the preset pixel value is 100px, and the center 402 of the user's finger click area 401 is the center of the circle, and a circular area 403 is obtained by using ΙΟΟρχ as the radius, and the circular area is used as the second area.
在步骤 303, 识别第二区域中的文字内容。  At step 303, the text content in the second area is identified.
本实施例中, 所述识别出的内容可以为一个词、 一个短语、 一句话或者一 个段落等等, 为了提高选词的精度可以将所述像素值设置得大一些, 此时, 识 别出的内容就会多一些。 为了提高选词的速度也可以将所述像素值设置得小一 些, 此时, 识别出的内容就会少一些, 具体情况可以根据需要设定。  In this embodiment, the identified content may be a word, a phrase, a sentence or a paragraph, etc., in order to improve the precision of the word selection, the pixel value may be set larger, and at this time, the recognized The content will be more. In order to increase the speed of word selection, the pixel values may be set smaller, and at this time, the recognized content will be less, and the specific situation may be set as needed.
在步骤 304,根据识别出的所述文字内容进行分词计算得到所述文字内容的 分词结果。  In step 304, a word segmentation result of the text content is obtained according to the recognized text content.
本实施例中, 可以由客户端来执行分词计算, 也可以由服务器来执行分词 计算。 当客户端执行分词计算时, 需要在客户端内预先存储词库。 当服务器执 行分词计算时, 无需客户端存储词库, 只需将所述文字内容发送给服务器并接 收服务器返回的分词结果即可。  In this embodiment, the word segmentation calculation may be performed by the client, or the word segmentation calculation may be performed by the server. When the client performs the word segmentation calculation, the thesaurus needs to be pre-stored in the client. When the server performs the word segmentation calculation, the client does not need to store the thesaurus, and only needs to send the text content to the server and receive the word segmentation result returned by the server.
具体地, 在根据识别出的所述文字内容进行分词计算得到所述文字内容的 分词结果时, 按照预设的策略将识别出的所述文字内容划分为字符串, 将划分 得到的字符串与预先存储的词库进行匹配, 将匹配的结果作为分词结果。  Specifically, when the word segmentation result of the text content is obtained according to the recognized word content, the recognized text content is divided into a character string according to a preset policy, and the divided character string is The pre-stored thesaurus is matched, and the matching result is used as the result of the word segmentation.
其中, 所述分词计算是指按照指定的策略在词库中进行匹配, 匹配成功得 到的词作为分词的结果。 该词库中包括大量的词汇以供匹配, 所述词库还可以 定期进行更新, 从而可以提高匹配的准确性。 所述指定的策略有多种, 包括但 不限于: 正向匹配、 逆向匹配、 最大长度匹配、 最小长度匹配等等, 本实施例 对此不做具体限定。  Wherein, the word segmentation calculation refers to matching in the lexicon according to the specified strategy, and matching the successfully obtained word as a result of the word segmentation. The vocabulary includes a large number of vocabularies for matching, and the vocabulary can also be updated periodically to improve the accuracy of the matching. The specified policy has multiple types, including but not limited to: forward matching, reverse matching, maximum length matching, minimum length matching, and the like, which are not specifically limited in this embodiment.
例如, 文字内容为 "中华人民共和国", 进行正向匹配可以得到: "中华"、 "人民"、 "共和国"、 "中华人民"、 "人民共和国" 等。 进行逆向匹配可以得到: "中国"、 "人民"、 "共和"、 "中共"、 "共和国"、 "人民共和国" 等。 进行最小 长度匹配可以得到: "中华"。进行最大长度匹配可以得到: "人民共和国 "或者 "中 华人民共和国"等等。 For example, the text content is "People's Republic of China", and a positive match can be obtained: "China", "People", "Republic", "Chinese People", "People's Republic", etc. Reverse matching can be obtained: "China", "people", "republic", "CCP", "Republic", "People's Republic", etc. The minimum length matching can be obtained: "Chinese". The maximum length matching can be obtained: "People's Republic" or "Medium" People's Republic of China "Wait.
通常, 在得到较多的分词结果时, 优选地, 还可以对分词结果进行过滤, 按照一定的规则从分词结果中选出一部分词作为最终分词结果。 例如, 分词的 结果有 20个词, 进行过滤后得到优选的 9个词作为分词结果。  Generally, when more word segmentation results are obtained, preferably, the word segmentation results may also be filtered, and a part of the word segments are selected from the word segmentation results as a final word segmentation result according to a certain rule. For example, the result of the word segmentation has 20 words, which are filtered to obtain the preferred 9 words as the result of the word segmentation.
在步骤 305,在所述第一区域周围显示包括所述分词结果的选词列表供用户 选词。  In step 305, a word list including the word segmentation result is displayed around the first area for the user to select a word.
通常, 在用户点击一个区域后, 系统会弹出一个编辑菜单供用户选择, 该 编辑菜单中提供有各种操作的按钮, 如复制、 搜索、 分享等等。  Usually, after the user clicks on an area, an editing menu pops up for the user to select, and the editing menu provides buttons for various operations, such as copying, searching, sharing, and the like.
本实施例中, 可以在系统弹出的编辑菜单中增加一个按钮 "智能选取", 当 用户点击该按钮时, 则触发在该区域周围显示所述选词列表, 通过查看该选词 列表, 用户可以方便地查看是否有自己需要的词。 所述周围可以为该区域的上 方、 下方、 左方、 右方等等, 本实施例对此不做具体限定。  In this embodiment, a button "smart selection" can be added to the editing menu popped up by the system. When the user clicks the button, the selection of the word selection list is triggered around the area. By viewing the word selection list, the user can It's easy to see if you have the words you need. The surrounding area may be the upper side, the lower side, the left side, the right side, and the like of the area, which is not specifically limited in this embodiment.
图 5示出了根据本发明实施例的具有编辑菜单的界面的示意图。 图 6示出 了根据本发明实施例的具有选词列表的界面的示意图。 如图 5 所示, 当用户点 击的区域为包含 "乔布" 两个字的区域时, 系统弹出的编辑菜单中包括四个按 钮, 在 "复制"、 "搜索"、 "分享"之后新增加了按钮 "智能选取"。 用户点击 "智 能选取" 按钮之后, 显示的界面如图 6所示, 在 "乔布" 上方显示选词列表, 其中包括 9个分词结果: "乔布"、 "乔布斯"、 "苹果"、 "Macs" , "公司"、 "Macs 电脑"、 "不足之处"、 "当时的梦想" 和 "Applell" , 用户可以直接点击需要选取 的关键词。  FIG. 5 shows a schematic diagram of an interface with an edit menu in accordance with an embodiment of the present invention. Figure 6 shows a schematic diagram of an interface with a word selection list in accordance with an embodiment of the present invention. As shown in Figure 5, when the area clicked by the user is an area containing the word "job", the system pops up an edit menu that includes four buttons, which are newly added after "copy", "search", and "share". The button "smart selection". After the user clicks the "smart selection" button, the displayed interface is as shown in Figure 6. The word selection list is displayed above "Job", including 9 word segmentation results: "Job", "Steve Jobs", "Apple", " Macs", "Company", "Macs Computer", "Insufficient", "Dreams at the Time" and "Applell", users can directly click on the keywords they need to select.
本实施例中, 在步骤 205之后, 获取用户在所述分词结果中选择的关键词, 将文字焦点定位到该关键词。  In this embodiment, after step 205, keywords selected by the user in the word segmentation result are obtained, and the text focus is located to the keyword.
在图 6的基础上, 如果用户在选词列表中点击了 "Macs" , 则将文字焦点定 位到该词上, 如图 7所示, 在 "Macs" 的上方显示有相应的操作按钮, 用户可 以点击相应的按钮执行相应的操作。  On the basis of Fig. 6, if the user clicks "Macs" in the word list, the text focus is positioned on the word, as shown in Fig. 7, the corresponding operation button is displayed above the "Macs", the user You can click the corresponding button to perform the corresponding operation.
本实施例提供的上述方法, 通过检测用户在选词状态下手指触摸的第一区 域, 按照预设的像素值将所述第一区域扩大为第二区域, 识别所述第二区域中 的文字内容, 根据识别出的所述文字内容进行分词计算得到所述文字内容的分 词结果, 显示所述分词结果供用户选词, 该过程无需用户使用调节杆进行手动 调节, 减少了选取失误, 由于自动提供相应的词, 用户可以直接进行选取, 实 现了智能选词, 且将用户手指触摸的第一区域扩大为第二区域进行分词计算, 扩大了选词范围, 提高了选词精度, 为后续操作提供了有利的保障。 In the above method provided by the embodiment, by detecting a first area touched by a finger in a word selection state, the first area is expanded to a second area according to a preset pixel value, and the text in the second area is identified. Content, 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 a word, the process does not require the user to manually adjust using the adjustment bar, thereby reducing selection errors, due to automatic Provide corresponding words, users can directly select, real Now the intelligent word selection, and the first area touched by the user's finger is expanded into the second area for word segmentation calculation, which expands the range of word selection, improves the precision of word selection, and provides favorable protection for subsequent operations.
图 8示出了才艮据本发明再一个实施例的智能选词方法的流程示意图。如图 8 所示, 该方法包括以下处理过程。  FIG. 8 is a flow chart showing a smart word selection method according to still another embodiment of the present invention. As shown in Figure 8, the method includes the following processing.
在步骤 801, 检测用户在选词状态下手指触摸的第一区域。  In step 801, a first area touched by the finger in the word selection state is detected.
本实施例中, 所述选词状态是指在当前正在运行的应用中, 可以对界面上 显示的文字内容进行选词的状态。 在用户进行选词后可以对所选的词执行相应 的操作。 所述应用包括但不限于: 浏览器、 阅读器等, 所述操作包括但不限于: 复制、 搜索、 分享、 翻译等等。 例如, 在浏览网页或阅读小说的过程中选词以 进行搜索。  In this embodiment, the word selection state refers to a state in which the word content displayed on the interface can be selected in the currently running application. After the user selects a word, the corresponding action can be performed on the selected word. The applications include, but are not limited to: browsers, readers, etc., including but not limited to: copying, searching, sharing, translating, and the like. For example, in the process of browsing a web page or reading a novel, a word is selected for searching.
用户手指触摸的第一区域例如可以为用户手指点击的区域。  The first area touched by the user's finger may be, for example, an area clicked by the user's finger.
在步骤 802, 按照预设的像素值将所述第一区域扩大为第二区域。 在该步骤 中, 以所述第一区域内的一个像素点为中心, 以预设的像素值为半径, 获取一 个圓形区域, 将该圓形区域作为扩大后的第二区域。  At step 802, the first region is expanded to a second region according to a preset pixel value. In this step, a circular area is obtained with a predetermined pixel value as a center centering on one pixel in the first area, and the circular area is used as the enlarged second area.
所述像素点例如为用户点击的区域的中心点。 通常, 用户手指点击屏幕时 会有一个接触范围, 即用户点击的区域, 该区域包括若干像素点, 选取该区域 的中心点作为指定范围的圓心时识别的内容准确率更高。 当然, 在其它实施方 式下, 也可以选取该区域的中心点以外的其它任意一点作为指定范围的圓心, 本实施例对此不做具体限定。  The pixel point is, for example, a center point of a region that the user clicks. Generally, when the user clicks on the screen, there is a contact range, that is, an area clicked by the user, the area includes a plurality of pixels, and the accuracy of the content recognized when the center point of the area is selected as the center of the specified 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 specified range, which is not specifically limited in this embodiment.
在步骤 803, 识别该第二区域中的文字内容。  In step 803, the text content in the second area is identified.
本实施例中, 所述识别出的内容可以为一个词、 一个短语、 一句话或者一 个段落等等, 为了提高选词的精度可以将所述像素值设置得大一些, 此时, 识 别出的内容就会多一些。 为了提高选词的速度也可以将所述像素值设置得小一 些, 此时, 识别出的内容就会少一些, 具体情况可以根据需要设定。  In this embodiment, the identified content may be a word, a phrase, a sentence or a paragraph, etc., in order to improve the precision of the word selection, the pixel value may be set larger, and at this time, the recognized The content will be more. In order to increase the speed of word selection, the pixel values may be set smaller, and at this time, the recognized content will be less, and the specific situation may be set as needed.
在步骤 804,根据识别出的所述文字内容进行分词计算得到所述文字内容的 分词结果, 并根据分词结果进行搜索匹配得到搜索词。  In step 804, the word segmentation result of the text content is obtained according to the recognized word content, and the search word is obtained by searching and matching according to the word segmentation result.
本实施例中, 可以由客户端来执行分词计算, 也可以由服务器来执行分词 计算。 当客户端执行分词计算时, 需要在客户端内预先存储词库。 当服务器执 行分词计算时, 无需客户端存储词库, 只需将所述文字内容发送给服务器并接 收服务器返回的分词结果即可。 具体地, 在根据识别出的所述文字内容进行分词计算得到所述文字内容的 分词结果时, 按照预设的策略将识别出的所述文字内容划分为字符串, 将划分 得到的字符串与预先存储的词库进行匹配, 将匹配的结果作为分词结果。 In this embodiment, the word segmentation calculation may be performed by the client, or the word segmentation calculation may be performed by the server. When the client performs the word segmentation calculation, the thesaurus needs to be pre-stored in the client. When the server performs the word segmentation calculation, the client does not need to store the thesaurus, and only needs to send the text content to the server and receive the word segmentation result returned by the server. Specifically, when the word segmentation result of the text content is obtained according to the recognized word content, the recognized text content is divided into a character string according to a preset policy, and the divided character string is The pre-stored thesaurus is matched, and the matching result is used as the result of the word segmentation.
其中, 所述分词计算是指按照指定的策略在词库中进行匹配, 匹配成功得 到的词作为分词的结果。 该词库中包括大量的词汇以供匹配, 所述词库还可以 定期进行更新, 从而可以提高匹配的准确性。 所述指定的策略有多种, 包括但 不限于: 正向匹配、 逆向匹配、 最大长度匹配、 最小长度匹配等等, 本实施例 对此不做具体限定。  Wherein, the word segmentation calculation refers to matching in the lexicon according to the specified strategy, and matching the successfully obtained word as a result of the word segmentation. The vocabulary includes a large number of vocabularies for matching, and the vocabulary can also be updated periodically to improve the accuracy of the matching. The specified policy has multiple types, including but not limited to: forward matching, reverse matching, maximum length matching, minimum length matching, and the like, which are not specifically limited in this embodiment.
通常, 在得到较多的分词结果时, 优选地, 还可以对分词结果进行过滤, 按照一定的规则从分词结果中选出一部分词作为最终分词结果。  Generally, when more word segmentation results are obtained, preferably, the word segmentation results may also be filtered, and a part of the word segments are selected from the word segmentation results as a final word segmentation result according to a certain rule.
具体地, 所述分词结果和搜索词可以用键-值对的形式来表示, 如分词结果 作为键(key ), 搜索词作为值( values )。  Specifically, the word segmentation result and the search term may be expressed in the form of a key-value pair, such as a word segmentation result as a key and a search word as a value.
在步骤 805, 弹出选词界面。  At step 805, a word selection interface pops up.
在步骤 806, 在选词界面上显示包括所述分词结果的选词列表供用户选词, 并且显示搜索列表供以后进行搜索, 该搜索列表包括与该选词列表中的词相关 的搜索词。  At step 806, a word selection list including the word segmentation result is displayed on the word selection interface for the user to select a word, and the search list is displayed for later search, the search list including search words related to the words in the word selection list.
本实施例中, 步骤 806之后, 还包括获取用户在所述分词结果中选择的关 键词, 将文字焦点定位到该关键词。  In this embodiment, after step 806, the method further includes: acquiring a keyword selected by the user in the word segmentation result, and positioning the text focus to the keyword.
本实施例中, 选词列表为选词界面上必选的显示内容, 搜索列表为可选的 显示内容, 可以根据需要设置。 当同时显示选词列表和搜索列表时, 选词界面 上的选词列表与搜索列表的排列方式不限, 如可以上下排列、 左右排列等等。  In this embodiment, the word selection list is a mandatory display content on the word selection interface, and the search list is an optional display content, which can be set as needed. When the word list and the search list are displayed at the same time, the word selection list and the search list are arranged in an arbitrary manner, such as up and down, left and right, and the like.
例如, 图 9示出了根据本发明实施例的选词界面的示意图。 参见图 9, 系统 弹出选词界面 900, 其中包括选词列表 901和搜索列表 902。 在图 9中, 选词列 表 901在上方, 搜索列表 902在下方。 选词列表 901中包括服务器返回的各个 分词结果, 用户可以直接选取并点击, 从而完成选词。 搜索列表 902 中包括服 务器返回的各个搜索词, 用户可以直接选取并点击, 从而触发相应的搜索操作。  For example, Figure 9 shows a schematic diagram of a word selection interface in accordance with an embodiment of the present invention. Referring to Figure 9, the system pops up a word selection interface 900, which includes a word selection list 901 and a search list 902. In Fig. 9, the word selection list 901 is at the top and the search list 902 is at the bottom. The word selection list 901 includes the results of each word segment returned by the server, and the user can directly select and click to complete the word selection. The search list 902 includes various search terms returned by the server, and the user can directly select and click to trigger the corresponding search operation.
本实施例提供的上述方法, 通过检测用户在选词状态下手指触摸的第一区 域, 按照预设的像素值将所述第一区域扩大为第二区域, 识别所述第二区域中 的文字内容, 根据识别出的所述文字内容进行分词计算得到所述文字内容的分 词结果, 显示所述分词结果供用户选词, 该过程无需用户使用调节杆进行手动 调节, 避免了选取失误, 由于自动提供相应的词, 用户可以直接进行选取, 实 现了智能选词, 且将用户手指触摸的第一区域扩大为第二区域进行分词计算, 扩大了选词范围, 提高了选词精度, 为后续操作提供了有利的保障。 In the above method provided by the embodiment, by detecting a first area touched by a finger in a word selection state, the first area is expanded to a second area according to a preset pixel value, and the text in the second area is identified. Content, 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 a word, the process does not require the user to manually use the adjustment lever Adjustment, avoiding the selection mistakes, because the words are automatically provided, the user can directly select, realize the intelligent word selection, and expand the first area touched by the user's finger to the second area for word segmentation, which expands the range of word selection. Improve the accuracy of word selection and provide favorable protection for subsequent operations.
相应地, 本发明提供了智能选词装置。 图 10示出了根据本发明一个实施例 的智能选词装置的示意图。  Accordingly, the present invention provides a smart word selection device. Figure 10 shows a schematic diagram of a smart word selection device in accordance with one embodiment of the present invention.
如图 10所示, 根据本发明一个实施例的智能选词装置 1000包括检测模块 1001、 扩展模块 1002、 识别模块 1003、 分词模块 1004、 显示模块 1005。 检测 模块 1001用于检测用户在选词状态下手指触摸的第一区域。 扩展模块 1002用 于按照预设的像素值将所述第一区域扩大为第二区域。 识别模块 1003用于识别 所述第二区域中的文字内容。 分词模块 1004用于根据识别出的所述文字内容进 行分词计算得到所述文字内容的分词结果。 显示模块 1005用于显示所述分词结 果供用户选词。  As shown in FIG. 10, the intelligent word selection device 1000 according to an embodiment of the present invention includes a detection module 1001, an expansion module 1002, an identification module 1003, a word segmentation module 1004, and a display module 1005. The detecting module 1001 is configured to detect a first area touched by the finger by the user in the word selection state. The expansion module 1002 is for expanding the first area to the second area according to a preset pixel value. The identification module 1003 is configured to identify the text content in the second area. The word segmentation module 1004 is configured to perform segmentation calculation according to the recognized text content to obtain a word segmentation result of the text content. The display module 1005 is configured to display the word segmentation result for the user to select a word.
在一种实施方式下, 扩展模块 1002用于以所述第一区域内的一个像素点为 中心, 以预设的像素值为半径, 获取一个圓形区域, 将所述圓形区域作为扩大 后的第二区域。  In an embodiment, the expansion module 1002 is configured to obtain a circular area with a preset pixel value as a center centering on one pixel in the first area, and use the circular area as an enlarged area. The second area.
在一种实施方式下, 分词模块 1004包括一个划分单元和一个匹配单元。 其 中, 划分单元用于按照预设的策略将识别出的所述文字内容划分为字符串。 匹 配单元用于将所述划分单元划分得到的字符串与预先存储的词库进行匹配, 将 匹配的结果作为分词结果。  In one embodiment, the word segmentation module 1004 includes a division unit and a matching unit. The dividing unit is configured to divide the recognized text content into a character string according to a preset policy. The matching unit is configured to match the character string obtained by dividing the dividing unit with a pre-stored vocabulary, and use the matching result as a word segmentation result.
在一种实施方式下, 显示模块 1005包括: 第一显示单元, 用于在所述第一 区域周围显示包括所述分词结果的选词列表供用户选词; 或者, 第二显示单元, 用于弹出选词界面, 在所述选词界面上显示包括所述分词结果的选词列表供用 户选词。  In an embodiment, the display module 1005 includes: a first display unit, configured to display a word selection list including the word segmentation result for the user to select a word around the first area; or, a second display unit, configured to: A word selection interface is popped up, and a word selection list including the word segmentation result is displayed on the word selection interface for the user to select a word.
在一种实施方式下, 所述第二显示单元还用于: 在弹出选词界面之后, 在 所述选词界面上显示搜索列表供用户选词进行搜索, 所述搜索列表包括与所述 选词列表中的词相关的搜索词。  In an embodiment, the second display unit is further configured to: after the pop-up word selection interface, display a search list on the word selection interface for the user to select a word for searching, where the search list includes the selection Word-related search terms in the word list.
在一种实施方式下, 参见图 11, 装置 1000还包括:  In one embodiment, referring to FIG. 11, the apparatus 1000 further includes:
定位模块 1006, 用于在显示模块 1005显示所述分词结果供用户选词之后, 获取用户在所述分词结果中选择的关键词, 将文字焦点定位到所述关键词。  The positioning module 1006 is configured to: after the display module 1005 displays the word segmentation result for the user to select a word, obtain a keyword selected by the user in the word segmentation result, and locate the text focus to the keyword.
在一种实施方式下, 显示模块 1005用于显示所述分词结果中使用频率高于 指定阔值的词供用户选词。 In an embodiment, the display module 1005 is configured to display the frequency of use of the word segmentation result is higher than Specify a word of wide value for the user to choose a word.
本实施例提供的上述装置可以执行上述任一方法实施例中提供的方法, 详 细过程见方法实施例中的描述, 此处不赘述。  The foregoing apparatus provided in this embodiment may perform the method provided in any one of the foregoing method embodiments. For details, refer to the description in the method embodiment, and details are not described herein.
本实施例提供的上述装置可以应用于触摸屏的移动终端中, 该移动终端包 括但不限于: 手机、 平板电脑等等, 本实施例对此不做具体限定。  The foregoing apparatus provided in this embodiment may 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, and the like, which is not specifically limited in this embodiment.
本实施例提供的上述装置, 通过检测用户在选词状态下手指触摸的第一区 域, 按照预设的像素值将所述第一区域扩大为第二区域, 识别所述第二区域中 的文字内容, 根据识别出的所述文字内容进行分词计算得到所述文字内容的分 词结果, 显示所述分词结果供用户选词, 该过程无需用户使用调节杆进行手动 调节, 避免了选取失误, 由于自动提供相应的词, 用户可以直接进行选取, 实 现了智能选词, 且将用户手指触摸的第一区域扩大为第二区域进行分词计算, 扩大了选词范围, 提高了选词精度, 为后续操作提供了有利的保障。  In the above apparatus provided by the embodiment, by detecting a first area touched by a finger in a word selection state, the first area is expanded into a second area according to a preset pixel value, and the text in the second area is identified. Content, 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 a word, the process does not require the user to manually adjust using the adjustment bar, thereby avoiding the selection error, due to automatic Providing corresponding words, the user can directly select, realize intelligent word selection, and expand the first area touched by the user's finger to the second area for word segmentation, expand the range of word selection, and improve the precision of word selection for subsequent operations. Provides a favorable guarantee.
图 12 示出了根据本发明再一个实施例的智能选词装置的示意图。 如图 12 所示, 智能选词装置 1200包括存储器 1202、 一个或多个处理器 1201 以及一 个或多个存储在存储器 1202上用来由一个或多个处理器 1201来执行的应用 程序 1203。 应用程序 1203例如包括执行前述方法实施例中各步骤的指令, 详细过程见方法实施例中的描述。  Figure 12 is a diagram showing a smart word selection device in accordance with still another embodiment of the present invention. As shown in FIG. 12, smart word selection device 1200 includes a memory 1202, one or more processors 1201, and one or more applications 1203 stored on memory 1202 for execution by one or more processors 1201. The application 1203 includes, for example, instructions for performing the steps in the foregoing method embodiments, and the detailed process is described in the method embodiments.
本实施例提供的上述装置可以应用于触摸屏的移动终端中, 该移动终端包 括但不限于: 手机、 平板电脑等等, 本实施例对此不做具体限定。  The foregoing apparatus provided in this embodiment may 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, and the like, which is not specifically limited in this embodiment.
本领域普通技术人员可以理解, 上述提到的存储器 1202包括但不限于各种 非易失性存储器, 例如, U盘、 移动硬盘、 只读存储器 (ROM )、 随机存取存 储器(RAM )、 可擦除可编程只读存储器(EPROM )、 电可擦可编程只读存储器 ( EEPROM )、 闪存或其他固态存储器技术、 CD-ROM、 数字多功能盘(DVD )、 HD-DVD、 蓝光(Blue-Ray )或其他光存储设备、 磁带、 磁盘存储或其他磁性存 储设备、 或能用于存储所需信息且可以由计算机访问的任何其他介质。  Those of ordinary skill in the art will appreciate that the aforementioned memory 1202 includes, but is not limited to, various non-volatile memories, such as a USB flash drive, a removable hard disk, a read only memory (ROM), a random access memory (RAM), Erase Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash or other solid state memory technology, CD-ROM, Digital Versatile Disc (DVD), HD-DVD, Blu-ray (Blue- Ray ) or other optical storage device, tape, disk storage or other magnetic storage device, or any other medium that can be used to store the required information and that can be accessed by the computer.
本实施例提供的上述装置, 通过检测用户在选词状态下手指触摸的第一区 域, 按照预设的像素值将所述第一区域扩大为第二区域, 识别所述第二区域中 的文字内容, 根据识别出的所述文字内容进行分词计算得到所述文字内容的分 词结果, 显示所述分词结果供用户选词, 该过程无需用户使用调节杆进行手动 调节, 避免了选取失误, 由于自动提供相应的词, 用户可以直接进行选取, 实 现了智能选词, 且将用户手指触摸的第一区域扩大为第二区域进行分词计算, 扩大了选词范围, 提高了选词精度, 为后续操作提供了有利的保障。 In the above apparatus provided by the embodiment, by detecting a first area touched by a finger in a word selection state, the first area is expanded into a second area according to a preset pixel value, and the text in the second area is identified. Content, 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 a word, the process does not require the user to manually adjust using the adjustment bar, thereby avoiding the selection error, due to automatic Provide corresponding words, users can directly select, real Now the intelligent word selection, and the first area touched by the user's finger is expanded into the second area for word segmentation calculation, which expands the range of word selection, improves the precision of word selection, and provides favorable protection for subsequent operations.
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的 精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的 保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims

权利要求书 claims
1、 一种智能选词的方法, 其特征在于, 所述方法包括: 1. A method of intelligent word selection, characterized in that the method includes:
检测在选词状态下被触摸的第一区域; Detect the first area touched in the word selection state;
按照预设的像素值将所述第一区域扩大为第二区域; Expand the first area into a second area according to a preset pixel value;
识别所述第二区域中的文字内容; Identify the text content in the second area;
根据识别出的所述文字内容进行分词计算得到所述文字内容的分词结果; 显示所述分词结果供用户选词。 Perform word segmentation calculation based on the identified text content to obtain a word segmentation result of the text content; display the word segmentation result for the user to select words.
2、 根据权利要求 1所述的方法, 其特征在于, 按照预设的像素值将所述第 一区域扩大为第二区域, 包括: 2. The method according to claim 1, characterized in that expanding the first area into a second area according to a preset pixel value includes:
以所述第一区域内的一个像素点为中心, 以预设的像素值为半径, 获取一 个圓形区域, 将所述圓形区域作为扩大后的第二区域。 With a pixel in the first area as the center and a preset pixel value as the radius, a circular area is obtained, and the circular area is used as the expanded second area.
3、 根据权利要求 1所述的方法, 其特征在于, 根据识别出的所述文字内容 进行分词计算得到所述文字内容的分词结果, 包括: 3. The method according to claim 1, characterized in that, performing word segmentation calculation based on the identified text content to obtain the word segmentation result of the text content, including:
按照预设的策略将识别出的所述文字内容划分为字符串; Divide the identified text content into strings according to a preset strategy;
将划分得到的字符串与预先存储的词库进行匹配, 将匹配的结果作为分词 结果。 Match the divided string with the pre-stored lexicon, and use the matching result as the word segmentation result.
4、 根据权利要求 1-3任一项所述的方法, 其特征在于, 显示所述分词结果 供用户选词, 包括: 4. The method according to any one of claims 1 to 3, characterized in that the word segmentation results are displayed for the user to select words, including:
在所述第一区域周围显示包括所述分词结果的选词列表供用户选词; 或者, 弹出选词界面, 在所述选词界面上显示包括所述分词结果的选词列表供用 户选词。 A word selection list including the word segmentation results is displayed around the first area for the user to select words; or, a word selection interface pops up, and a word selection list including the word segmentation results is displayed on the word selection interface for the user to select words. .
5、根据权利要求 4所述的方法, 其特征在于, 弹出选词界面之后, 还包括: 在所述选词界面上还显示搜索列表供用户选词进行搜索, 所述搜索列表包 括与所述选词列表中的词相关的搜索词。 5. The method according to claim 4, characterized in that, after popping up the word selection interface, it further includes: also displaying a search list on the word selection interface for users to select words for searching, the search list includes the following: Search terms related to the words in the word list.
6、 根据权利要求 1-3任一项所述的方法, 其特征在于, 显示所述分词结果 供用户选词之后, 还包括: 6. The method according to any one of claims 1-3, characterized in that, after displaying the word segmentation results for the user to select words, it further includes:
获取用户在所述分词结果中选择的关键词, 将文字焦点定位到所述关键词。 Obtain the keyword selected by the user in the word segmentation result, and position the text focus on the keyword.
7、 根据权利要求 1-3任一项所述的方法, 其特征在于, 所述显示所述分词 结果供用户选词, 包括: 显示所述分词结果中使用频率高于指定阔值的词供用户选词。 7. The method according to any one of claims 1 to 3, characterized in that displaying the word segmentation results for the user to select words includes: Display words in the word segmentation results that are used more frequently than a specified threshold for the user to select.
8、 一种智能选词的装置, 其特征在于, 所述装置包括: 8. A device for intelligent word selection, characterized in that the device includes:
检测模块, 用于检测在选词状态下被触摸的第一区域; A detection module, used to detect the first area that is touched in the word selection state;
扩展模块, 用于按照预设的像素值将所述第一区域扩大为第二区域; 识别模块, 用于识别所述第二区域中的文字内容; An expansion module, used to expand the first area into a second area according to a preset pixel value; An identification module, used to identify the text content in the second area;
分词模块, 用于根据识别出的所述文字内容进行分词计算得到所述文字内 容的分词结果; A word segmentation module, used to perform word segmentation calculations based on the identified text content to obtain the word segmentation results of the text content;
显示模块, 用于显示所述分词结果供用户选词。 A display module is used to display the word segmentation results for the user to select words.
9、 根据权利要求 8所述的装置, 其特征在于, 所述扩展模块用于: 以所述第一区域内的一个像素点为中心, 以预设的像素值为半径, 获取一 个圓形区域, 将所述圓形区域作为扩大后的第二区域。 9. The device according to claim 8, wherein the expansion module is configured to: use a pixel in the first area as the center and a preset pixel value as the radius to obtain a circular area. , using the circular area as the expanded second area.
10、 根据权利要求 8所述的装置, 其特征在于, 所述分词模块包括: 划分单元, 用于按照预设的策略将识别出的所述文字内容划分为字符串; 匹配单元, 用于将所述划分单元划分得到的字符串与预先存储的词库进行 匹配, 将匹配的结果作为分词结果。 10. The device according to claim 8, characterized in that the word segmentation module includes: a dividing unit, used to divide the recognized text content into strings according to a preset strategy; a matching unit, used to divide The character string divided by the dividing unit is matched with the pre-stored vocabulary library, and the matching result is used as the word segmentation result.
11、 根据权利要求 8-10任一项所述的装置, 其特征在于, 所述显示模块包 括: 11. The device according to any one of claims 8-10, characterized in that the display module includes:
第一显示单元, 用于在所述第一区域周围显示包括所述分词结果的选词列 表供用户选词; 或者, A first display unit, configured to display a word selection list including the word segmentation results around the first area for the user to select words; or,
第二显示单元, 用于弹出选词界面, 在所述选词界面上显示包括所述分词 结果的选词列表供用户选词。 The second display unit is used to pop up a word selection interface, and display a word selection list including the word segmentation results on the word selection interface for the user to select words.
12、根据权利要求 11所述的装置, 其特征在于, 所述第二显示单元还用于: 弹出选词界面之后, 在所述选词界面上显示搜索列表供用户选词进行搜索, 所述搜索列表包括与所述选词列表中的词相关的搜索词。 12. The device according to claim 11, wherein the second display unit is further configured to: after popping up the word selection interface, display a search list on the word selection interface for the user to select words for search, The search list includes search terms related to words in the word selection list.
13、 根据权利要求 8-10任一项所述的装置, 其特征在于, 所述装置还包括: 定位模块, 用于在所述显示模块显示所述分词结果供用户选词之后, 获取 用户在所述分词结果中选择的关键词, 将文字焦点定位到所述关键词。 13. The device according to any one of claims 8 to 10, characterized in that, the device further includes: a positioning module, configured to obtain the user's location after the display module displays the word segmentation results for the user to select words. The keyword selected in the word segmentation result is used to position the text focus on the keyword.
14、 根据权利要求 8-10任一项所述的装置, 其特征在于, 所述显示模块用 于: 14. The device according to any one of claims 8-10, characterized in that the display module is used for:
显示所述分词结果中使用频率高于指定阔值的词供用户选词。 Display words in the word segmentation results that are used more frequently than a specified threshold for the user to select.
15、 一种智能选词的装置, 其特征在于, 所述装置包括: 存储器; 一个或 多个处理器; 存储在所述存储器上用来由所述一个或多个处理器来执行的一个 或多个程序, 所述一个或多个程序包括执行下列步骤的指令: 15. A device for intelligent word selection, characterized in that the device includes: a memory; one or more processors; one or more programs stored on the memory for execution by the one or more processors A plurality of programs, the one or more programs including instructions to perform the following steps:
检测在选词状态下被触摸的第一区域; Detect the first area touched in the word selection state;
按照预设的像素值将所述第一区域扩大为第二区域; Expand the first area into a second area according to a preset pixel value;
识别所述第二区域中的文字内容; Identify the text content in the second area;
根据识别出的所述文字内容进行分词计算得到所述文字内容的分词结果; 显示所述分词结果供用户选词。 Perform word segmentation calculation based on the identified text content to obtain a word segmentation result of the text content; display the word segmentation result for the user to select words.
16、 一种计算机可读存储介质, 存储由计算机系统执行的一个或多个程序, 其特征在于, 所述程序包括执行下列步骤的指令: 16. A computer-readable storage medium that stores one or more programs executed by a computer system, characterized in that the program includes instructions for performing the following steps:
检测在选词状态下被触摸的第一区域; Detect the first area touched in the word selection state;
按照预设的像素值将所述第一区域扩大为第二区域; Expand the first area into a second area according to a preset pixel value;
识别所述第二区域中的文字内容; Identify the text content in the second area;
根据识别出的所述文字内容进行分词计算得到所述文字内容的分词结果; 显示所述分词结果供用户选词。 Perform word segmentation calculation based on the identified text content to obtain a word segmentation result of the text content; display the word segmentation result for the user to select words.
PCT/CN2014/081624 2013-07-05 2014-07-04 Intelligent word selection method and device WO2015000429A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310281857.0 2013-07-05
CN201310281857.0A CN104281394A (en) 2013-07-05 2013-07-05 Method and device for intelligently selecting words

Publications (1)

Publication Number Publication Date
WO2015000429A1 true WO2015000429A1 (en) 2015-01-08

Family

ID=52143121

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081624 WO2015000429A1 (en) 2013-07-05 2014-07-04 Intelligent word selection method and device

Country Status (2)

Country Link
CN (1) CN104281394A (en)
WO (1) WO2015000429A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325688A (en) * 2016-08-17 2017-01-11 北京锤子数码科技有限公司 Text processing method and device
US20180107359A1 (en) * 2016-10-18 2018-04-19 Smartisan Digital Co., Ltd. Text processing method and device
CN110069145A (en) * 2019-04-30 2019-07-30 努比亚技术有限公司 A kind of character input method, equipment and computer readable storage medium
CN110490953A (en) * 2019-07-25 2019-11-22 维沃移动通信有限公司 Text based image generating method, terminal device and medium
CN111142728A (en) * 2019-12-26 2020-05-12 腾讯科技(深圳)有限公司 Vehicle-mounted environment intelligent text processing method and device, electronic equipment and storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765815B (en) * 2015-04-03 2016-11-09 北京奇虎科技有限公司 A kind of method and apparatus identifying search keyword
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 kind of method and apparatus for choosing document content
CN106201255B (en) * 2016-06-30 2020-11-20 联想(北京)有限公司 Information processing method and electronic equipment
CN108763193A (en) * 2018-04-18 2018-11-06 Oppo广东移动通信有限公司 Literal processing method, device, mobile terminal and storage medium
CN108829686B (en) * 2018-05-30 2022-04-15 北京小米移动软件有限公司 Translation information display method, device, equipment and storage medium
CN109471539B (en) * 2018-10-23 2023-06-06 维沃移动通信有限公司 Input content modification method and mobile terminal
CN111723567B (en) * 2020-05-20 2024-06-11 支付宝(杭州)信息技术有限公司 Text selection data processing method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101131619A (en) * 2007-08-24 2008-02-27 黄晓凤 Method for implementing intelligent software keyboard input on screen of electronic equipments
CN101281592A (en) * 2008-05-09 2008-10-08 上海合合信息科技发展有限公司 Method for estreating words based on camera and character recognition technique
US20090299730A1 (en) * 2008-05-28 2009-12-03 Joh Jae-Min Mobile terminal and method for correcting text thereof
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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8756534B2 (en) * 2009-03-16 2014-06-17 Apple Inc. Methods and graphical user interfaces for editing on a multifunction device with a touch screen display

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101131619A (en) * 2007-08-24 2008-02-27 黄晓凤 Method for implementing intelligent software keyboard input on screen of electronic equipments
CN101281592A (en) * 2008-05-09 2008-10-08 上海合合信息科技发展有限公司 Method for estreating words based on camera and character recognition technique
US20090299730A1 (en) * 2008-05-28 2009-12-03 Joh Jae-Min Mobile terminal and method for correcting text thereof
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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325688A (en) * 2016-08-17 2017-01-11 北京锤子数码科技有限公司 Text processing method and device
US20180107359A1 (en) * 2016-10-18 2018-04-19 Smartisan Digital Co., Ltd. Text processing method and device
CN110069145A (en) * 2019-04-30 2019-07-30 努比亚技术有限公司 A kind of character input method, equipment and computer readable storage medium
CN110490953A (en) * 2019-07-25 2019-11-22 维沃移动通信有限公司 Text based image generating method, terminal device and medium
CN110490953B (en) * 2019-07-25 2023-04-07 维沃移动通信有限公司 Text-based image generation method, terminal device and medium
CN111142728A (en) * 2019-12-26 2020-05-12 腾讯科技(深圳)有限公司 Vehicle-mounted environment intelligent text processing method and device, electronic equipment and storage medium
CN111142728B (en) * 2019-12-26 2022-06-03 腾讯科技(深圳)有限公司 Vehicle-mounted environment intelligent text processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104281394A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
WO2015000429A1 (en) Intelligent word selection method and device
US11237724B2 (en) Mobile terminal and method for split screen control thereof, and computer readable storage medium
US10642483B2 (en) Quick screen splitting method, apparatus, and electronic device, display UI, and storage medium
RU2616536C2 (en) Method, device and terminal device to display messages
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
RU2621012C2 (en) Method, device and terminal equipment for processing gesture-based communication session
US10306044B2 (en) Method and apparatus for preventing screen off during automatic response system service in electronic device
WO2015000430A1 (en) Intelligent word selection method and device
KR101600999B1 (en) Method, apparatus and terminal device, program and storage medium for selecting character
WO2016119580A1 (en) Method, device and terminal for starting voice input function of terminal
US11115517B2 (en) Method and apparatus for preventing screen off during automatic response system service in electronic device
CN103543913A (en) Terminal device operation method and device, and terminal device
WO2015062372A1 (en) Method and apparatus for selecting objects
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
US9798713B2 (en) Method for configuring application template, method for launching application template, and mobile terminal device
US20170064352A1 (en) Method and system for collecting statistics on streaming media data, and related apparatus
WO2017012423A1 (en) Method and terminal for displaying instant message
WO2017215635A1 (en) Sound effect processing method and mobile terminal
CN104281568B (en) Paraphrasing display method and paraphrasing display device
CN107885718B (en) Semantic determination method and device
WO2017128986A1 (en) Selection method, device and storage medium for multimedia menu item
WO2015074387A1 (en) Sliding operation response method, apparatus and terminal device
WO2015109992A1 (en) Information retrieval method, apparatus and system
US20150089370A1 (en) Method and device for playing media data on a terminal
WO2015043239A1 (en) Method and device for playing media data on a terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14820219

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.05.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14820219

Country of ref document: EP

Kind code of ref document: A1