WO2015035793A1 - 一种文本编辑方法、装置及服务器 - Google Patents

一种文本编辑方法、装置及服务器 Download PDF

Info

Publication number
WO2015035793A1
WO2015035793A1 PCT/CN2014/076840 CN2014076840W WO2015035793A1 WO 2015035793 A1 WO2015035793 A1 WO 2015035793A1 CN 2014076840 W CN2014076840 W CN 2014076840W WO 2015035793 A1 WO2015035793 A1 WO 2015035793A1
Authority
WO
WIPO (PCT)
Prior art keywords
word
replaced
text
block
word block
Prior art date
Application number
PCT/CN2014/076840
Other languages
English (en)
French (fr)
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 WO2015035793A1 publication Critical patent/WO2015035793A1/zh
Priority to US14/960,733 priority Critical patent/US20160092421A1/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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a text editing method, apparatus, and server. Background technique
  • the editing operation of the text content is cumbersome. For example, to delete a word or a sentence in the text, it is necessary to first move the finger to find the focus, and then click the delete button; for example, To select the content in the text, you need to click on the location you want to select on the screen, the prompt box appears, click the operation mode, and then the user moves the selection interval to select the content in the text.
  • the inventors of the present invention found that the existing text editing method performs text editing in units of "words", that is, using a finger to perform cursor positioning when editing text. . For the user, the finger spacing is small, the text spacing is small, resulting in inconvenient operation and reduced user experience. Summary of the invention
  • a text editing method, apparatus, and server are provided to solve the technical problem that the cursor positioning of the edited text is inaccurate in the prior art, and the user experience is reduced.
  • the first aspect provides a text editing method, the method comprising:
  • the dividing the content in the text to be edited into a word block comprises: following a idiom, a common word, and/or a semantic and pragmatic similarity Sexually divides the content in the text to be edited into chunks.
  • the determining the to-be-replaced word block in the word block includes:
  • the word block to be replaced in the word block is determined according to a replacement operation instruction received by the user.
  • the acquiring a candidate word block that is similar to the to-be-replaced word block Generate a list of candidate lexical chunks, including:
  • the displaying the candidate word block list includes:
  • the candidate word block list is displayed in text form below the word block to be replaced.
  • the method further includes:
  • the replacement text is replaced with the to-be-replaced word block in the word block to complete text editing.
  • the second aspect provides a text editing apparatus, comprising: [28] a first obtaining unit, configured to acquire text to be edited; [29] a dividing unit, configured to divide content in the text to be edited into a vocabulary block; [30] a determining unit, configured to determine a block of words to be replaced in the lexical block; [31] a second obtaining unit, configured to obtain a candidate vocabulary block similar to the vocabulary to be replaced;
  • a generating unit configured to generate a candidate word block list according to the candidate word block acquired by the second acquiring unit
  • a display unit configured to display the candidate word block list
  • an editing unit configured to replace the selected candidate word block with the to-be-replaced word block when the operation instruction of the candidate word block in the candidate word block list is selected by the user, and complete the text editing.
  • the segmentation unit is specifically configured to divide content in the text to be edited into idioms according to idioms, and/or semantic and pragmatic similarities. Word block.
  • the determining unit is specifically configured to determine the word according to a replacement operation instruction that receives the user.
  • the block of words to be replaced in the block is specifically configured to determine the word according to a replacement operation instruction that receives the user.
  • the block of words to be replaced in the block is specifically configured to determine the word according to a replacement operation instruction that receives the user.
  • the block of words to be replaced in the block is specifically configured to determine the word according to a replacement operation instruction that receives the user.
  • the block of words to be replaced in the block is specifically configured to determine the word according to a replacement operation instruction that receives the user.
  • the block of words to be replaced in the block is specifically configured to determine the word according to a replacement operation instruction that receives the user.
  • the block of words to be replaced in the block is specifically configured to determine the word according to a replacement operation instruction that receives the user.
  • the block of words to be replaced in the block is specifically configured to determine the word according to a replacement operation instruction that receives the user.
  • the second obtaining unit is specifically configured to search for a candidate word block similar to the to-be-replaced word block from the lexical library;
  • the generating unit is specifically configured to arrange the queried candidate word blocks together to generate a candidate word block list.
  • the display unit is specifically configured to be used in the The list of candidate word blocks is displayed in text below the replacement word block.
  • the method further includes:
  • a receiving unit configured to receive, by the second acquiring unit, a replacement word input by the user if the candidate word block similar to the word block to be replaced is not acquired;
  • a replacement unit configured to replace the replacement text in the word block to be replaced, and complete text editing.
  • the method further includes:
  • a storage unit connected to the second obtaining unit, for storing a plurality of word blocks, wherein the word blocks are used for calculating the semantics and pragmatic similarity of the training text set in units of blocks.
  • the third aspect provides a text editing apparatus, comprising:
  • a similarity calculation unit configured to calculate a semantic and a pragmatic similarity of the training text set in units of blocks, to obtain a word block
  • a storage unit configured to store the lexical block calculated by the similarity calculation unit
  • a user interface unit configured to acquire a text to be edited by the user, and divide the content in the text to be edited into lexical blocks Determining a block of words to be replaced in the lexical block
  • a candidate search unit configured to find a candidate word block similar to the to-be-replaced word block, generate a candidate word block list, and display the candidate word block list;
  • the user interface unit is further configured to: when the operation instruction of the candidate word block in the candidate word block list displayed by the user is obtained, replace the selected candidate word block with the word block to be replaced. Complete text editing.
  • the user interface unit is further configured to: when the candidate search unit does not find a candidate word block that is similar to the to-be-replaced word block, receive The replacement text input by the user; and replacing the replacement text with the word block to be replaced in the word block to complete the text editing.
  • the fourth aspect provides a server, comprising: [54] a lexical library for storing a lexical block, the lexical chunk being calculated in units of blocks according to semantics and pragmatic similarity of the training text set of;
  • transceiver for obtaining text to be edited
  • a processor configured to divide content in the text to be edited into a word block, and determine a block to be replaced in the word block;
  • the transceiver is further configured to acquire and Candidate blocks of similar terms to be replaced;
  • the processor is further configured to generate a candidate word block list according to the candidate word block acquired by the transceiver, and display the candidate word block list;
  • the transceiver is further configured to receive an operation instruction of a candidate word block in the candidate word block list displayed by a user;
  • the processor is further configured to: when the transceiver receives the operation instruction, replace the selected candidate word block with a word block to be replaced, and complete text editing. [61] In a first possible implementation of the fourth aspect,
  • the transceiver is further configured to: when the candidate search unit does not find a candidate word block that is similar to the to-be-replaced word block, receive the replacement text input by the user;
  • the processor is further configured to replace the replacement text in the word block to be replaced, and complete text editing.
  • the text to be edited is divided into a plurality of word blocks, the word block to be replaced is determined, a candidate word block list of the word block to be replaced is obtained, and the candidate is selected.
  • the lexical list is displayed to the user, so that when the user-selected operation instruction is received, the selected candidate vocabulary is automatically replaced with the vocabulary to be replaced. That is to say, the embodiment of the present invention locates the text content to be edited in units of blocks, and solves the technical problem that the cursor positioning is inaccurate with the finger when editing the text in the prior art, resulting in inconvenient user operation. , improved user experience.
  • FIG. 1 is a flowchart of a text editing method according to an embodiment of the present invention.
  • 2A is a schematic diagram of a divided word block in a text to be edited displayed in different colors at the same time according to an embodiment of the present invention
  • 2B is a schematic diagram showing a divided word block in a text to be edited simultaneously displayed in one color according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a candidate vocabulary list for displaying a word to be replaced in an edit text according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a text editing apparatus according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of another text editing apparatus according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention. detailed description
  • FIG. 1 is a flowchart of a text editing method according to an embodiment of the present invention, where the method includes:
  • Step 101 Obtain the text to be edited
  • the server obtains the text to be edited by the user through the human-computer interaction interface, which may also be referred to as pending text.
  • the content in the text to be edited for example: I have a meeting at 3 o'clock this afternoon, can't pick you up, of course, not limited to this.
  • Step 102 segment the content in the text to be edited into a word block; [78] in this step, the server divides the content in the text to be edited into a word block, and a segmentation manner is, according to the habit Words, common words and/or semantic and pragmatic similarities divide the content in the text to be edited into chunks, for example, "I have a meeting at 3 o'clock this afternoon, can't pick you up” into multiple words Blocks, respectively: I, 3 o'clock this afternoon, there will be, can't, go, pick you up, of course, not limited to this kind of split, but also other ways of splitting, for example, split into: I, today , 3 pm, there will be, can't, go, pick you up.
  • the divided vocabulary blocks can be displayed in the same color at the same time for the user to select; or can be displayed in different colors at the same time for the user to select.
  • FIG. 2A is a schematic diagram showing the divided word blocks in the text to be edited simultaneously displayed in different colors in the embodiment of the present invention
  • FIG. 2B is a schematic diagram of the text to be edited in the embodiment of the present invention
  • the following blocks are displayed in a single color at the same time; however, in Figures 2A and 2B, the different colors are displayed in the size of the gray block.
  • Step 103 Determine a block of words to be replaced in the word block
  • the word block to be replaced in the word block is determined according to the replacement operation instruction received by the user, that is, the server receives the replacement operation instruction input by the user through the man-machine interface, and then according to the replacement operation The instruction determines a block of words to be replaced in the block of words.
  • Step 104 Obtain a candidate word block similar to the to-be-replaced word block, and generate a candidate word block list;
  • the server searches for a candidate word block in the word block library that is similar to the to-be-replaced word block; and arranges the queryed candidate word blocks together. A list of candidate word blocks is generated.
  • the plurality of word blocks stored in the lexical inventory are calculated in units of blocks according to the semantics and pragmatic similarity of the training text set, and the plurality of word blocks constitute a lexical library.
  • the candidate blocks that find "have a meeting” are: candidate blocks with meetings, classes, busy, and inconvenient.
  • the candidate block for "3 PM today” is: All day, this week, this month, the most recent and always candidate block. Then, the candidate word blocks that are checked into each of the blocks to be replaced are arranged together to generate a list of candidate word blocks.
  • Step 105 Display the candidate word block list
  • a display mode is: displaying the candidate word block list in a text manner below the word block to be replaced, as specifically shown in FIG. 3,
  • FIG. 3 is a schematic diagram of an embodiment of the present invention. A schematic diagram showing a list of candidate vocabulary words to be replaced in the edit text.
  • a candidate vocabulary list of the words "I am 3 pm today" is displayed, and the candidate vocabulary list includes: This week, this month, recently and always, as shown in Figure 3.
  • the display mode is not limited to the text display mode, and may be other display modes, which are not limited in this embodiment.
  • a "candidate operation” and a "candidate text block” from a block to be replaced or a plurality of consecutive blocks to be replaced may be displayed by the user.
  • Step 106 When the operation instruction of the candidate word block in the candidate word block list displayed by the user is obtained, the selected candidate word block is replaced with the word block to be replaced, and the text editing is completed.
  • the method may further include: if the word to be replaced is not acquired Block-like candidate word blocks receive the replacement text input by the user, and replace the replacement text with the word block to be replaced in the word block to complete the text editing.
  • the server receives an operation instruction of the candidate word block in the candidate word block list displayed by the user through the human-machine exchange interface, for example, receiving an operation instruction of “all day”, the selected candidate word Replace the block with the block to be replaced and complete the text editing. Of course, you can also display the edited text.
  • the text to be edited is divided into a plurality of word blocks, the word block to be replaced is determined, the candidate word block list of the word block to be replaced is obtained, and the candidate word block list is displayed to the user.
  • the embodiment of the present invention locates the text content to be edited in units of blocks, and solves the technical problem that the cursor positioning is inaccurate with the finger when editing the text in the prior art, resulting in inconvenient user operation. , improved user experience.
  • the embodiment of the present invention locates the text content to be edited in units of blocks, reduces user input operations, and improves text input speed, thereby improving text editing efficiency.
  • an embodiment of the present invention further provides a text editing apparatus, and a schematic structural diagram thereof is shown in FIG. 4.
  • the apparatus includes: a first acquiring unit 41, a dividing unit 42, and a determining unit 43, a second obtaining unit 44, a generating unit 45, a display unit 46 and an editing unit 47, wherein
  • the first obtaining unit 41 is configured to acquire text to be edited; [99] the dividing unit 42 is configured to divide the content in the text to be edited into a word block; specifically, according to the idiom, And/or semantic and pragmatic similarity to segment the content in the text to be edited into chunks of words;
  • the determining unit 43 is configured to determine a block of words to be replaced in the block of words; and specifically for determining a block of words to be replaced in the block of words according to a replacement operation instruction that receives the user.
  • the second obtaining unit 44 is configured to obtain a candidate word block similar to the to-be-replaced word block; specifically, searching for a candidate word block similar to the to-be-replaced word block from the word block library; ;
  • the generating unit 45 is configured to generate a candidate word block list according to the candidate word block acquired by the second acquiring unit, and specifically configured to arrange the queryed candidate word blocks together to generate a candidate word block list. .
  • the display unit 46 is configured to display the candidate word block list; specifically, the candidate word block list is displayed in a text manner below the to-be-replaced word block.
  • the editing unit 47 is configured to: when the operation instruction of the candidate word block in the candidate word block list is selected by the user, replace the selected candidate word block with the word block to be replaced, and complete the text editing. .
  • the device may further include: a receiving unit and a replacing unit, where the receiving unit is configured to Receiving, by the second obtaining unit, the candidate word block similar to the word block to be replaced, receiving the replacement text input by the user; the replacing unit, configured to replace the replacement text with the to-be-replaced in the word block Word block, complete text editing.
  • the device may further include: a storage unit, connected to the second obtaining unit, configured to store multiple A lexical block, which is used to calculate the semantics and pragmatic similarity of the training text set in units of blocks.
  • the device may be integrated in a server of the terminal, or may be integrated on the mobile terminal, such as a mobile phone.
  • An embodiment of the present invention further provides a text editing apparatus, which is shown in FIG. 5.
  • the text editing apparatus includes: a similarity calculation unit 51, a storage unit 52, a user interface unit 53, and a candidate search unit 54. , among them,
  • the similarity calculation unit 51 is configured to calculate semantics and pragmatic similarity of the training text set in units of blocks to obtain a word block;
  • the storage unit 52 is configured to store the word block calculated by the similarity calculation unit; the storage unit may also be referred to as a lexical library.
  • the user interface unit 53 is configured to acquire a text to be edited by a user, divide the content in the text to be edited into a word block, and determine a word block to be replaced in the word block;
  • the candidate searching unit 54 is configured to find a candidate word block similar to the to-be-replaced word block, generate a candidate word block list, and display the candidate word block list; [114] the user interface unit And when the operation instruction of the candidate word block in the candidate word block list displayed by the user is obtained, the selected candidate word block is replaced with the word block to be replaced, and the text editing is completed.
  • the embodiment is based on the foregoing embodiment, where the user interface unit is further configured to: find, in the candidate search unit, the word to be replaced When a block of similar candidate blocks is used, Receiving replacement text input by the user; and replacing the replacement text with the word block to be replaced in the word block to complete text editing.
  • the device may be integrated in a server of the terminal, or may be integrated on the mobile terminal, such as a terminal such as a mobile phone.
  • the embodiment of the present invention further provides a server.
  • the structure of the server is as shown in FIG. 6.
  • the server includes: a lexical library 61, a transceiver 62, and a processor 63, where
  • the lexical library 61 is configured to store a lexical block, and the vocabulary is calculated in units of blocks according to semantics and pragmatic similarity of the training text set;
  • the transceiver 62 is configured to obtain text to be edited
  • the processor 63 is configured to divide content in the text to be edited into word blocks, and determine a word block to be replaced in the word block;
  • the transceiver 62 is further configured to acquire a candidate word block similar to the to-be-replaced word block;
  • the processor 63 is further configured to generate a candidate word block list according to the candidate word block acquired by the transceiver, and display the candidate word block list;
  • the transceiver 62 is further configured to receive an operation instruction of the candidate word block in the candidate word block list displayed by the user;
  • the processor 63 is further configured to: when the transceiver receives the operation instruction. , the selected candidate block is replaced with the block to be replaced, and the text is edited.
  • the transceiver is further configured to: when the candidate search unit does not find a candidate word block that is similar to the to-be-replaced word block, receive the replacement text input by the user;
  • the processor is further configured to replace the block of words in the word block with the replacement text to complete text editing.
  • the server device may be integrated on the terminal, or may be integrated on the mobile terminal, such as a mobile phone.
  • the terminal may be any one of the following, and may be static or mobile.
  • the static terminal may specifically include, a mobile station, and a subscriber unit. Unit) or station, etc.
  • the mobile terminal may specifically include a cellular phone, a personal digital assistant (PDA), a modem, a wireless communication device, a handheld device, a laptop (laptop) Computer)
  • PDA personal digital assistant
  • a cordless phone or a wireless local loop (WLL) station, etc. may be distributed throughout the wireless network.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases the former is more Good implementation.
  • the technical solution of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.

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)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Machine Translation (AREA)

Abstract

本发明实施例公开了一种文本编辑方法、装置及服务器,所述方法包括:获取待编辑文本;将所述待编辑文本中的内容分割成词块;确定所述词块中的待替换词块;获取到与所述待替换词块相似的候选词块,生成候选词块列表;显示所述候选词块列表;在获取到用户选中显示的所述候选词块列表中的候选词块的操作指令时,将选中的所述候选词块替换为待替换词块,完成文本编辑。本发明实施例解决了现有技术中以字为单位,导致编辑文本的光标定位不准确的技术问题,提升了用户体验。

Description

一种文本编辑方法、 装置及服务器 本发明要求于 2013年 9月 11日提交中国专利局、申请号为 201310412377. 3、 发明名称为 "一种文本编辑方法、 装置及服务器"的中国专利申请的优先权, 其全 部内容通过引用结合在本发明中。 技术领域
[01] 本发明涉及终端技术领域, 特别涉及一种文本编辑方法、 装置及服务器。 背景技术
[02] 随着移动电子设备的飞速发展, 人们越来越多的使用触摸屏幕进行文字输入和 文字编辑。 除了撰写新的文本内容, 还可以对已有的文本内容进行二次编辑。
[03] 但是, 现有技术中, 对文本内容的编辑操作比较繁琐, 比如, 要删除文本中的 某个字或某句话, 就需要先移动手指找到焦点, 再点击删除按钮; 再比如, 要选择文 本中的内容, 就需要点击屏幕上要选择的位置, 出现提示框, 点选操作方式, 再用户 手指移动选择区间, 从而选中文本中的内容。 [04] 在对现有技术的研究和实践过程中, 本发明的发明人发现, 现有的文本编辑方 式是以 "字"为单位进行文本编辑的, 即在编辑文本时用手指进行光标定位。 这对用 户来说, 由于手指较粗, 文字间距又小, 导致操作不便, 同时也降低了用户体验。 发明内容
[05] 本发明实施例中提供了一种文本编辑方法、装置及服务器, 以解决现有技术中, 以字为单位, 导致编辑文本的光标定位不准确的技术问题, 降低了用户体验。
[06] 为了解决上述技术问题, 本发明实施例公开了如下技术方案:
[07] 第一方面提供了一种文本编辑方法, 所述方法包括:
[08] 获取待编辑文本;
[09] 将所述待编辑文本中的内容分割成词块; [10] 确定所述词块中的待替换词块;
[11] 获取到与所述待替换词块相似的候选词块, 生成候选词块列表; [12] 显示所述候选词块列表;
[13] 在获取到用户选中显示的所述候选词块列表中的候选词块的操作指令时, 将选 中的所述候选词块替换为待替换词块, 完成文本编辑。
[14] 在第一方面的第一种可能的实现方式中, 所述将所述待编辑文本中的内容分割 成词块, 包括: 按照习惯用语、 常用词语和 /或语义和语用的相似性将所述待编辑文 本中的内容分割成词块。
[15] 结合第一方面或第一方面的第一种可能的实现方式, 在第二种可能的实现方式 中, 所述确定所述词块中的待替换词块, 包括:
[16] 按照接收到用户的替换操作指令确定所述词块中的待替换词块。
[17] 结合第一方面或第一方面的第一种或第二种可能的实现方式, 在第三种可能的 实现方式中,所述获取与所述待替换词块相似的候选词块,生成候选词块列表,包括:
[18] 从词块库中查找与所述待替换词块相似的候选词块; [19] 将查询到的所述候选词块排列在一起, 生成候选词块列表。
[20] 结合第一方面或第一方面的第一种或第二种或第三种可能的实现方式, 在第四 种可能的实现方式中, 所述显示所述候选词块列表, 包括:
[21] 在所述待替换词块的下方以文本方式显示所述候选词块列表。
[22] 结合第一方面或第一方面的第一种或第二种或第三种或第四种可能的实现方 式, 在第五种可能的实现方式中, 还包括:
[23] 如果没有获取到与所述待替换词块相似的候选词块, 则接收用户输入的替换文 本;
[24] 将所述替换文本替换所述词块中的待替换词块, 完成文本编辑。
[25] 结合第一方面或第一方面的第一种或第二种或第三种或第四种或第五种可能的 实现方式, 在第六种可能的实现方式中, 其特征在于, 还包括:
[26] 以块为单位计算训练文本集的语义和语用的相似度, 得到对应的词块, 所述词 块组成词块库。 [27] 第二方面提供了一种文本编辑装置, 包括: [28] 第一获取单元, 用于获取待编辑文本; [29] 分割单元, 用于将所述待编辑文本中的内容分割成词块; [30] 确定单元, 用于确定所述词块中的待替换词块; [31] 第二获取单元, 用于获取到与所述待替换词块相似的候选词块;
[32] 生成单元, 用于根据所述第二获取单元获取的候选词块生成候选词块列表; [33] 显示单元, 用于显示所述候选词块列表;
[34] 编辑单元, 用于在获取到用户选中所述候选词块列表中的候选词块的操作指令 时, 将选中的所述候选词块替换为待替换词块, 完成文本编辑。 [35] 在第二方面的第一种可能的实现方式中, 所述分割单元, 具体用于按照习惯用 语、 和 /或语义和语用的相似性将所述待编辑文本中的内容分割成词块。
[36] 结合第二方面或第二方面的第一种可能的实现方式, 在第二种可能的实现方式 中,所述确定单元, 具体用于按照接收到用户的替换操作指令确定所述词块中的待替 换词块。 [37] 结合第二方面或第二方面的第一种或第二种可能的实现方式, 在第三种可能的 实现方式中,
[38] 所述第二获取单元, 具体用于从词块库中查找到与所述待替换词块相似的候选 词块;
[39] 所述生成单元, 具体用于将查询到的所述候选词块排列在一起, 生成候选词块 列表。
[40] 结合第二方面或第二面的第一种或第二种或第三种可能的实现方式, 在第四种 可能的实现方式中,所述显示单元, 具体用于在所述待替换词块的下方以文本方式显 示所述候选词块列表。
[41] 结合第二方面或第二方面的第一种或第二种或第三种或第四种可能的实现方 式, 在第五种可能的实现方式中, 还包括:
[42] 接收单元, 用于所述第二获取单元如果没有获取到与所述待替换词块相似的候 选词块, 则接收用户输入的替换文本; [43] 替换单元, 用于将所述替换文本替换所述词块中的待替换词块, 完成文本编辑。
[44] 结合第二方面或第二方面的第一种或第二种或第三种或第四种或第五种可能的 实现方式, 在第六种可能的实现方式中, 还包括:
[45] 存储单元, 与所述第二获取单元连接, 用于存储多个词块, 所述词块是用于以 块为单位按照训练文本集的语义和语用的相似度进行计算的。
[46] 第三方面提供了一种文本编辑装置, 包括:
[47] 相似度计算单元, 用于以块为单位计算训练文本集的语义和语用的相似度, 得 到词块;
[48] 存储单元, 用于存储所述相似度计算单元计算后的词块; [49] 用户接口单元, 用于获取用户的待编辑文本, 将所述待编辑文本中的内容分割 成词块, 确定所述词块中的待替换词块;
[50] 候选查找单元, 用于查找到与所述待替换词块相似的候选词块, 生成候选词块 列表, 并显示所述候选词块列表;
[51] 所述用户接口单元, 还用于在获取到用户选中显示的所述候选词块列表中的候 选词块的操作指令时, 将选中的所述候选词块替换为待替换词块, 完成文本编辑。
[52] 在第三方面的第一种可能的实现方式中, 所述用户接口单元, 还用于在所述候 选查找单元没有查找到与所述待替换词块相似的候选词块时,接收用户输入的替换文 本; 并将所述替换文本替换所述词块中的待替换词块, 完成文本编辑。
[53] 第四方面提供了一种服务器, 包括: [54] 词块库, 用于存储词块, 所述词块是以块为单位依据训练文本集的语义和语用 的相似度进行计算的;
[55] 收发器, 用于获取待编辑文本;
[56] 处理器, 用于将所述待编辑文本中的内容分割成词块, 确定所述词块中的待替 换词块; [57] 所述收发器, 还用于获取到与所述待替换词块相似的候选词块;
[58] 所述处理器, 还用于根据所述收发器获取的候选词块生成候选词块列表, 并显 示所述候选词块列表; [59] 所述收发器, 还用于接收用户选中显示的所述候选词块列表中的候选词块的操 作指令;
[60] 所述处理器, 还用于在所述收发器接收到所述操作指令时, 将选中的所述候选 词块替换为待替换词块, 完成文本编辑。 [61] 在第四方面的第一种可能的实现方式中,
[62] 所述收发器, 还用于在所述候选查找单元没有查找到与所述待替换词块相似的 候选词块时, 接收用户输入的替换文本;
[63] 所述处理器, 还用于将所述替换文本替换所述词块中的待替换词块, 完成文本 编辑。 [64] 由上述技术方案可知, 本发明实施例中, 将待编辑文本分割成多个词块, 确定 需要替换的词块, 获取要替换的词块的候选词块列表, 并将所述候选词块列表显示给 用户, 以便于在接收到用户通选中操作指令时,将选中的候选词块自动替换要替换的 词块。 也就是说, 本发明实施例以块为单位来定位需要编辑的文本内容, 解决了现有 技术中, 以字为单位在编辑文本时用手指进行光标定位不准确, 导致用户操作不便的 技术问题, 提高了用户体验。 附图说明
[65] 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一 些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根 据这些附图获得其他的附图。
[66] 图 1为本发明实施例提供的一种文本编辑方法的流程图;
[67] 图 2A为本发明实施例中待编辑文本中的分割后的词块同时以不同颜色显示的 示意图;
[68] 图 2B 为本发明实施例中待编辑文本中的分割后的词块同时以一种颜色显示的 示意图;
[69] 图 3为本发明实施例提供的一种在编辑文本中显示待替换词的候选词块列表的 示意图;
[70] 图 4为本发明实施例提供的一种文本编辑装置的结构示意图; [71] 图 5为本发明实施例提供的一种文本编辑装置另一结构示意图; [72] 图 6为本发明实施例提供的一种服务器的结构示意图。 具体实施方式
[73] 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整的描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施 例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。
[74] 请参阅图 1, 图 1为本发明实施例提供的一种文本编辑方法的流程图,所述方法 包括:
[75] 步骤 101 : 获取待编辑文本;
[76] 服务器通过人机交互界面获取用户输入的待编辑文本,也可以称为待处理文本。 其中, 待编辑文本中的内容, 比如为: 我今天下午 3点有会, 不能去接你等, 当然并 不限于此。
[77] 步骤 102: 将所述待编辑文本中的内容分割成词块; [78] 该步骤中, 服务器将所述待编辑文本中的内容分割成词块, 一种分割方式为, 按照习惯用语、 常用词语和 /或语义和语用的相似性将所述待编辑文本中的内容分割 成词块, 比如, 将 "我今天下午 3点有会, 不能去接你"分割成多个词块, 分别为: 我, 今天下午 3点, 有会, 不能, 去, 接你等, 当然, 并不限于此这种分割方式, 还 可以是其他分割方式, 再比如, 分割为: 我, 今天, 下午 3点, 有会, 不能, 去, 接 你等。
[79] 其中, 在该实施例中, 分割后的词块, 可以同时用同一种颜色显示出来, 供用 户选择; 也可以同时用不同的颜色显示出来供用户选择。 具体如图 2A和图 2B, 其 中, 图 2A为本发明实施例中待编辑文本中的分割后的词块同时以不同颜色显示的示 意图; 图 2B为本发明实施例中待编辑文本中的分割后的词块同时以一种颜色显示的 示意图; 但在该图 2A和图 2B中, 不同颜色均以灰色块的大小来显示。
[80] 步骤 103 : 确定所述词块中的待替换词块;
[81] 该步骤中, 按照接收到用户的替换操作指令确定所述词块中的待替换词块, 也 就是说,服务器通过人机界面接收用户输入的替换操作指令,然后根据所述替换操作 指令确定所述词块中的待替换词块。
[82] 结合上述例子, 假如, 服务器接收到用户想替换 "有会"词块, 或者, 想替换 "今天下午 3点"等词块的指令, 则服务器就将所述 "有会"或者 "今天下午 3点" 设定为待替换词块。 [83] 假设本实施例将 "今天下午 3 点"设定为待替换词块, 其显示给用户的示意图 还请参阅图 2B, 在图 2B中, 还以块为单位显示了待替换词块(即今天下午 3点)的 编辑文本示例。
[84] 步骤 104: 获取与所述待替换词块相似的候选词块, 生成候选词块列表;
[85] 该步骤中, 在上述步骤确定待替换词块后, 服务器查找词块库中与所述待替换 词块相似的候选词块; 并将查询到的所述候选词块排列在一起, 生成候选词块列表。
[86] 其中, 词块库存储的多个词块, 是以块为单位按照训练文本集的语义和语用的 相似度进行计算的, 所述多个词块组成词块库。
[87] 比如, 从词块库中, 查找到 "有会" 的候选词块为: 开会、 有课、 很忙、 不方 便等候选词块。 再比如, 查找到 "今天下午 3点" 的候选词块为: 全天, 本周, 这 个月, 最近和一直等候选词块。然后, 将查抄到每个待替换词块的虽有候选词块排列 在一起, 生成候选词块列表。
[88] 步骤 105 : 显示所述候选词块列表;
[89] 该步骤中, 一种显示方式为: 在所述待替换词块的下方以文本方式显示所述候 选词块列表, 具体如图 3所述, 图 3为本发明实施例提供的一种在编辑文本中显示待 替换词的候选词块列表的示意图, 在该实施例中, 显示待替换词 "我今天下午 3点" 的候选词块列表, 所述候选词块列表包括: 全天, 本周, 这个月, 最近和一直, 具体 如图 3所示。
[90] 其中, 显示方式并不限于文本显示方式, 还可以是其他显示方式, 本实施例不 作限制。 [91] 本发明实施例中, 可以显示用户点击的一个从待替换词块或连续的多个待替换 词块的 "候选操作"和 "候选文本块"。
[92] 步骤 106:在获取到用户选中显示的所述候选词块列表中的候选词块的操作指令 时, 将选中的所述候选词块替换为待替换词块, 完成文本编辑。 [93] 可选的, 在该实施例中, 为了防止词块库中没有与所述待替换词块相似的候选 词块, 所述方法还可以包括: 如果没有获取到与所述待替换词块相似的候选词块, 则 接收用户输入的替换文本, 并将所述替换文本替换所述词块中的待替换词块, 完成文 本编辑。 [94] 服务器通过人机交换界面接收到用户选中显示的所述候选词块列表中的候选词 块的操作指令时, 比如, 接收到 "全天"的操作指令, 将选中的所述候选词块替换为 待替换词块, 完成文本编辑。 当然, 还可以显示编辑后的文本。
[95] 本发明实施例中, 将待编辑文本分割成多个词块, 确定需要替换的词块, 获取 要替换的词块的候选词块列表, 并将所述候选词块列表显示给用户, 以便于在接收到 用户通选中操作指令时, 将选中的候选词块自动替换要替换的词块。 也就是说, 本发 明实施例以块为单位来定位需要编辑的文本内容,解决了现有技术中, 以字为单位在 编辑文本时用手指进行光标定位不准确, 导致用户操作不便的技术问题,提高了用户 体验。
[96] 另外, 本发明实施例以块为单位来定位需要编辑的文本内容, 减少用户输入操 作, 提高文本输入速度, 从而提高了文本编辑效率。
[97] 基于上述方法的实现过程, 本发明实施例还提供一种文本编辑装置, 其结构示 意图如图 4所示, 所述装置包括: 第一获取单元 41, 分割单元 42, 确定单元 43, 第 二获取单元 44, 生成单元 45, 显示单元 46和编辑单元 47, 其中,
[98] 所述第一获取单元 41, 用于获取待编辑文本; [99] 所述分割单元 42, 用于将所述待编辑文本中的内容分割成词块; 具体用于按照 习惯用语、 和 /或语义和语用的相似性将所述待编辑文本中的内容分割成词块;
[100]所述确定单元 43, 用于确定所述词块中的待替换词块; 具体用于按照接收到用 户的替换操作指令确定所述词块中的待替换词块。
[101]所述第二获取单元 44, 用于获取到与所述待替换词块相似的候选词块; 具体用 于从词块库中查找到与所述待替换词块相似的候选词块;
[102]所述生成单元 45, 用于根据所述第二获取单元获取的候选词块生成候选词块列 表; 具体用于将查询到的所述候选词块排列在一起, 生成候选词块列表。
[103]所述显示单元 46, 用于显示所述候选词块列表; 具体用于在所述待替换词块的 下方以文本方式显示所述候选词块列表。 [104]所述编辑单元 47, 用于在获取到用户选中所述候选词块列表中的候选词块的操 作指令时, 将选中的所述候选词块替换为待替换词块, 完成文本编辑。
[105]可选的, 在另一实施例中, 该是实施例在上述实施例的基础上, 所述装置还可 以包括: 接收单元和替换单元, 其中, 所述接收单元, 用于所述第二获取单元如果没 有获取到与所述待替换词块相似的候选词块, 则接收用户输入的替换文本; 所述替换 单元, 用于将所述替换文本替换所述词块中的待替换词块, 完成文本编辑。
[106]可选的, 在另一实施例中, 该是实施例在上述实施例的基础上, 所述装置还可 以包括: 存储单元, 与所述第二获取单元连接, 用于存储多个词块, 所述词块是用于 以块为单位按照训练文本集的语义和语用的相似度进行计算的。 [107]可选的, 所述装置可以集成在终端的服务器中, 也可以集成在移动终端上, 比 如手机等。
[108]所述装置中各个单元的功能和作用的实现过程, 详见上述方法中对应步骤的实 现过程。
[109]本发明实施例还提供一种文本编辑装置, 其结构示意图如图 5所示, 所述文本 编辑装置包括: 相似度计算单元 51, 存储单元 52, 用户接口单元 53和候选查找单元 54, 其中,
[110]所述相似度计算单元 51, 用于以块为单位计算训练文本集的语义和语用的相似 度, 得到词块;
[111]存储单元 52, 用于存储所述相似度计算单元计算后的词块; 所述存储单元也可 以称为词块库。
[112]所述用户接口单元 53, 用于获取用户的待编辑文本, 将所述待编辑文本中的内 容分割成词块, 确定所述词块中的待替换词块;
[113]所述候选查找单元 54, 用于查找到与所述待替换词块相似的候选词块, 生成候 选词块列表, 并显示所述候选词块列表; [114]所述用户接口单元 53, 还用于在获取到用户选中显示的所述候选词块列表中的 候选词块的操作指令时, 将选中的所述候选词块替换为待替换词块, 完成文本编辑。
[115]可选的, 在另一实施例中, 该是实施例在上述实施例的基础上, 所述用户接口 单元, 还用于在所述候选查找单元没有查找到与所述待替换词块相似的候选词块时, 接收用户输入的替换文本; 并将所述替换文本替换所述词块中的待替换词块, 完成文 本编辑。
[116]可选的, 所述装置可以集成在终端的服务器中, 也可以集成在移动终端上, 比 如手机等终端。
[117]所述装置中各个单元的功能和作用的实现过程, 详见上述方法中对应步骤的实 现过程。
[118]相应的, 本发明实施例还提供一种服务器, 其结构示意图如图 6所示, 所述服 务器包括: 词块库 61、 收发器 62和处理器 63, 其中,
[119]所述词块库 61, 用于存储词块, 所述词块是以块为单位依据训练文本集的语义 和语用的相似度进行计算的;
[120]所述收发器 62, 用于获取待编辑文本;
[121]所述处理器 63, 用于将所述待编辑文本中的内容分割成词块, 确定所述词块中 的待替换词块;
[122]所述收发器 62, 还用于获取与所述待替换词块相似的候选词块;
[123]所述处理器 63, 还用于根据所述收发器获取的候选词块生成候选词块列表, 并 显示所述候选词块列表;
[124]所述收发器 62, 还用于接收用户选中显示的所述候选词块列表中的候选词块的 操作指令;
[125]所述处理器 63,还用于在所述收发器接收到所述操作指令时。,将选中的所述候 选词块替换为待替换词块, 完成文本编辑。
[126]可选的, 所述收发器, 还用于在所述候选查找单元没有查找到与所述待替换词 块相似的候选词块时, 接收用户输入的替换文本;
[127]所述处理器, 还用于将所述替换文本替换所述词块中的待替换词块, 完成文本 编辑。
[128]可选的, 所述服务器装置可以集成在终端上, 也可以集成在移动终端上, 比如 手机等。
[129]所述服务器中各个单元的功能和作用的实现过程, 详见上述方法中对应步骤的 实现过程。
[130]在本发明实施例中, 所述终端可以为以下任意一种, 可以是静态的, 也可以是 移动的, 静止的终端具体可以包括为、移动台(mobile station )、用户单元(subscriber unit) 或站台 (station) 等, 移动的终端具体可以包括蜂窝电话 (cellular phone ) 个 人数字助理 (PDA, personal digital assistant ) 调制解调器 (modem), 无线通信设 备、手持设备(handheld)、笔记本电脑 (laptop computer ) 无绳电话 (cordless phone) 或无线本地环路 (WLL, wireless local loop) 台等, 上述 UE可以分布于整个无线网 络中。
[131]需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅仅用来将一个 实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作 之间存在任何这种实际的关系或者顺序。 而且, 术语"包括"、 "包含 "或者其任何其他 变体意在涵盖非排他性的包含, 从而使得包括一系列要素的过程、 方法、物品或者设 备不仅包括那些要素, 而且还包括没有明确列出的其他要素, 或者是还包括为这种过 程、 方法、 物品或者设备所固有的要素。 在没有更多限制的情况下, 由语句"包括一 个 ... ... "限定的要素, 并不排除在包括所述要素的过程、 方法、 物品或者设备中还存 在另外的相同要素。
[132]通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发明可借 助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件,但很多情况下前 者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术 做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储 介质中, 如 R0M/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备(可 以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例或者实施例的某 些部分所述的方法。
[133]以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普通技术 人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润饰, 这些改进和 润饰也应视为本发明的保护范围。

Claims

权 利 要 求
1、 一种文本编辑方法, 其特征在于, 包括:
获取待编辑文本;
将所述待编辑文本中的内容分割成词块;
确定所述词块中的待替换词块;
获取到与所述待替换词块相似的候选词块, 生成候选词块列表;
显示所述候选词块列表;
在获取到用户选中显示的所述候选词块列表中的候选词块的操作指令时,将 选中的所述候选词块替换为待替换词块, 完成文本编辑。
2、 根据权利要求 1所述的方法, 其特征在于, 所述将所述待编辑文本中的 内容分割成词块, 包括: 按照习惯用语、 常用词语和 /或语义和语用的相似性将 所述待编辑文本中的内容分割成词块。
3、 根据权利要求 1所述的方法, 其特征在于, 所述确定所述词块中的待替 换词块, 包括:
按照接收到用户的替换操作指令确定所述词块中的待替换词块。
4、 根据权利要求 1所述的方法, 其特征在于, 所述获取与所述待替换词块 相似的候选词块, 生成候选词块列表, 包括:
从词块库中查找与所述待替换词块相似的候选词块;
将查询到的所述候选词块排列在一起, 生成候选词块列表。
5、 根据权利要求 1所述的方法, 其特征在于, 所述显示所述候选词块列表, 包括:
在所述待替换词块的下方以文本方式显示所述候选词块列表。
6、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 还包括: 如果没有获取到与所述待替换词块相似的候选词块,则接收用户输入的替换 文本;
将所述替换文本替换所述词块中的待替换词块, 完成文本编辑。
7、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 还包括: 以块为单位计算训练文本集的语义和语用的相似度, 得到对应的词块, 所述 词块组成词块库。
8、 一种文本编辑装置, 其特征在于, 包括:
第一获取单元, 用于获取待编辑文本;
分割单元, 用于将所述待编辑文本中的内容分割成词块;
确定单元, 用于确定所述词块中的待替换词块;
第二获取单元, 用于获取到与所述待替换词块相似的候选词块;
生成单元, 用于根据所述第二获取单元获取的候选词块生成候选词块列表; 显示单元, 用于显示所述候选词块列表;
编辑单元,用于在获取到用户选中所述候选词块列表中的候选词块的操作指 令时, 将选中的所述候选词块替换为待替换词块, 完成文本编辑。
9、 根据权利要求 8所述的装置, 其特征在于, 所述分割单元, 具体用于按 照习惯用语、和 /或语义和语用的相似性将所述待编辑文本中的内容分割成词块。
10、 根据权利要求 8所述的装置, 其特征在于, 所述确定单元, 具体用于按 照接收到用户的替换操作指令确定所述词块中的待替换词块。
11、 根据权利要求 8所述的装置, 其特征在于,
所述第二获取单元,具体用于从词块库中查找到与所述待替换词块相似的候 选词块;
所述生成单元, 具体用于将查询到的所述候选词块排列在一起, 生成候选词 块列表。
12、 根据权利要求 8所述的装置, 其特征在于, 所述显示单元, 具体用于在 所述待替换词块的下方以文本方式显示所述候选词块列表。
13、 根据权利要求 8至 12任一项所述的装置, 其特征在于, 还包括: 接收单元,用于所述第二获取单元如果没有获取到与所述待替换词块相似的 候选词块, 则接收用户输入的替换文本; 替换单元, 用于将所述替换文本替换所述词块中的待替换词块, 完成文本编 辑。
14、 根据权利要求 8至 12任一项所述的装置, 其特征在于, 还包括: 存储单元, 与所述第二获取单元连接, 用于存储多个词块, 所述词块是用于 以块为单位按照训练文本集的语义和语用的相似度进行计算的。
15、 一种文本编辑装置, 其特征在于, 包括:
相似度计算单元, 用于以块为单位计算训练文本集的语义和语用的相似度, 得到词块;
存储单元, 用于存储所述相似度计算单元计算后的词块;
用户接口单元, 用于获取用户的待编辑文本, 将所述待编辑文本中的内容分 割成词块, 确定所述词块中的待替换词块;
候选查找单元, 用于查找到与所述待替换词块相似的候选词块, 生成候选词 块列表, 并显示所述候选词块列表;
所述用户接口单元,还用于在获取到用户选中显示的所述候选词块列表中的 候选词块的操作指令时, 将选中的所述候选词块替换为待替换词块, 完成文本编 辑。
16、 根据权利要求 15所述的装置, 其特征在于, 所述用户接口单元, 还用 于在所述候选查找单元没有查找到与所述待替换词块相似的候选词块时,接收用 户输入的替换文本; 并将所述替换文本替换所述词块中的待替换词块, 完成文本 编辑。
17、 一种服务器, 其特征在于, 包括:
词块库, 用于存储词块, 所述词块是以块为单位依据训练文本集的语义和语 用的相似度进行计算的;
收发器, 用于获取待编辑文本;
处理器, 用于将所述待编辑文本中的内容分割成词块, 确定所述词块中的待 替换词块;
所述收发器, 还用于获取到与所述待替换词块相似的候选词块;
所述处理器, 还用于根据所述收发器获取的候选词块生成候选词块列表, 并 显示所述候选词块列表;
所述收发器,还用于接收用户选中显示的所述候选词块列表中的候选词块的 操作指令;
所述处理器, 还用于在所述收发器接收到所述操作指令时, 将选中的所述候 选词块替换为待替换词块, 完成文本编辑。
18、 根据权利要求 17所述的服务器, 其特征在于,
所述收发器,还用于在所述候选查找单元没有查找到与所述待替换词块相似 的候选词块时, 接收用户输入的替换文本;
所述处理器, 还用于将所述替换文本替换所述词块中的待替换词块, 完成文 本编辑。
PCT/CN2014/076840 2013-09-11 2014-05-06 一种文本编辑方法、装置及服务器 WO2015035793A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/960,733 US20160092421A1 (en) 2013-09-11 2015-12-07 Text Editing Method and Apparatus, and Server

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310412377.3A CN104424168A (zh) 2013-09-11 2013-09-11 一种文本编辑方法、装置及服务器
CN201310412377.3 2013-09-11

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/960,733 Continuation US20160092421A1 (en) 2013-09-11 2015-12-07 Text Editing Method and Apparatus, and Server

Publications (1)

Publication Number Publication Date
WO2015035793A1 true WO2015035793A1 (zh) 2015-03-19

Family

ID=52665018

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076840 WO2015035793A1 (zh) 2013-09-11 2014-05-06 一种文本编辑方法、装置及服务器

Country Status (3)

Country Link
US (1) US20160092421A1 (zh)
CN (1) CN104424168A (zh)
WO (1) WO2015035793A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697291A (zh) * 2018-12-29 2019-04-30 北京百度网讯科技有限公司 文本的语义段落识别方法和装置
CN111026714A (zh) * 2019-11-07 2020-04-17 维沃移动通信有限公司 一种重命名方法及电子设备

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608064A (zh) * 2015-11-24 2016-05-25 小米科技有限责任公司 字符替换方法及装置
CN105700813A (zh) * 2016-02-26 2016-06-22 深圳市金立通信设备有限公司 一种信息处理方法及终端
CN107153652B (zh) * 2016-03-03 2020-10-30 创新先进技术有限公司 将目标字符串转化为规范化字符串的方法及装置
CN108664201B (zh) * 2017-03-29 2021-12-28 北京搜狗科技发展有限公司 一种文本编辑方法、装置及电子设备
CN110852098B (zh) * 2019-10-24 2023-05-30 深圳市元征科技股份有限公司 一种数据修正方法及电子设备和存储介质
CN111832248A (zh) * 2020-07-27 2020-10-27 科大讯飞股份有限公司 文本规整方法、装置、电子设备和存储介质
JP7273439B1 (ja) 2022-09-09 2023-05-15 Dcアーキテクト株式会社 情報処理システム、情報処理方法及びプログラム

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1896920A (zh) * 2005-06-28 2007-01-17 阿瓦雅技术公司 用于自动完成合成字符的方法和设备
CN101137954A (zh) * 2005-03-11 2008-03-05 索尼爱立信移动通讯有限公司 用于预设文本编辑的方法和装置
CN102541282A (zh) * 2010-12-25 2012-07-04 上海量明科技发展有限公司 利用图标移动对已完成词汇再编辑的方法、装置及系统

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6789231B1 (en) * 1999-10-05 2004-09-07 Microsoft Corporation Method and system for providing alternatives for text derived from stochastic input sources
US7149970B1 (en) * 2000-06-23 2006-12-12 Microsoft Corporation Method and system for filtering and selecting from a candidate list generated by a stochastic input method
CN101183281B (zh) * 2007-12-26 2011-04-13 腾讯科技(深圳)有限公司 一种输入法中候选词的相关词输入的方法及系统
CN101196792A (zh) * 2007-12-28 2008-06-11 宇龙计算机通信科技(深圳)有限公司 一种文档自动校正方法和装置
CN101369216B (zh) * 2008-09-25 2012-06-06 腾讯科技(深圳)有限公司 文字输入方法和文字输入系统
CN100555203C (zh) * 2008-09-26 2009-10-28 腾讯科技(深圳)有限公司 修正已输入文字的系统及方法
US8782556B2 (en) * 2010-02-12 2014-07-15 Microsoft Corporation User-centric soft keyboard predictive technologies
KR101842457B1 (ko) * 2011-03-09 2018-03-27 엘지전자 주식회사 이동 단말기 및 그의 텍스트 커서 운용방법
CN102789504A (zh) * 2012-07-19 2012-11-21 姜赢 一种基于xml规则的中文语法校正方法与系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137954A (zh) * 2005-03-11 2008-03-05 索尼爱立信移动通讯有限公司 用于预设文本编辑的方法和装置
CN1896920A (zh) * 2005-06-28 2007-01-17 阿瓦雅技术公司 用于自动完成合成字符的方法和设备
CN102541282A (zh) * 2010-12-25 2012-07-04 上海量明科技发展有限公司 利用图标移动对已完成词汇再编辑的方法、装置及系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697291A (zh) * 2018-12-29 2019-04-30 北京百度网讯科技有限公司 文本的语义段落识别方法和装置
CN109697291B (zh) * 2018-12-29 2023-04-18 北京百度网讯科技有限公司 文本的语义段落识别方法和装置
CN111026714A (zh) * 2019-11-07 2020-04-17 维沃移动通信有限公司 一种重命名方法及电子设备

Also Published As

Publication number Publication date
CN104424168A (zh) 2015-03-18
US20160092421A1 (en) 2016-03-31

Similar Documents

Publication Publication Date Title
WO2015035793A1 (zh) 一种文本编辑方法、装置及服务器
US10923118B2 (en) Speech recognition based audio input and editing method and terminal device
CA2633959C (en) Mobile device retrieval and navigation
KR102281224B1 (ko) 텍스트 편집 방법, 장치 및 전자 기기
CN108541310B (zh) 一种显示候选词的方法、装置及图形用户界面
US20140236986A1 (en) Natural language document search
JP6211543B2 (ja) タッチ端末におけるテキスト検索のための方法及び装置
WO2014025705A2 (en) Search result ranking and presentation
CN113268498A (zh) 业务推荐方法和具有智能助手的装置
JP5140759B2 (ja) 通信端末装置及びこれを用いた通信システム
US11048736B2 (en) Filtering search results using smart tags
KR100725520B1 (ko) 문자입력횟수 적응 다중 입력창을 이용한 검색방법 및 그장치
US20150154682A1 (en) Enriching product catalog with search keywords
EP3387556B1 (en) Providing automated hashtag suggestions to categorize communication
US20150089420A1 (en) Information processing apparatus, and information processing method
JP2008305385A (ja) 文字入力装置、サーバ装置、辞書ダウンロードシステム、変換候補語句の提示方法、情報処理方法、プログラム
CN102999639B (zh) 一种基于语音识别字符索引的查找方法及系统
US11068853B2 (en) Providing calendar utility to capture calendar event
CN101777067A (zh) 一种用于移动通讯设备终端的网页内容识别管理系统
WO2022184013A1 (zh) 一种文档的编辑方法、装置、设备及存储介质
JP5778558B2 (ja) 情報通信装置
KR102327790B1 (ko) 정보 처리 방법, 장치 및 저장 매체
CN103020306A (zh) 一种基于手势识别字符索引的查找方法及系统
US10423706B2 (en) Method and device for selecting information
CN106126661B (zh) 歌手封面的显示方法及装置

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: 14843275

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14843275

Country of ref document: EP

Kind code of ref document: A1