WO2023174101A1 - 一种文本编辑方法、装置、电子设备和存储介质 - Google Patents

一种文本编辑方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2023174101A1
WO2023174101A1 PCT/CN2023/080082 CN2023080082W WO2023174101A1 WO 2023174101 A1 WO2023174101 A1 WO 2023174101A1 CN 2023080082 W CN2023080082 W CN 2023080082W WO 2023174101 A1 WO2023174101 A1 WO 2023174101A1
Authority
WO
WIPO (PCT)
Prior art keywords
word
target
description information
meaning
information
Prior art date
Application number
PCT/CN2023/080082
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 WO2023174101A1 publication Critical patent/WO2023174101A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/134Hyperlinking
    • 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/35Clustering; Classification
    • G06F16/358Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present disclosure relates to the field of information technology, and in particular, to a text editing method, device, electronic device and storage medium.
  • internal links In order to improve the efficiency of users in retrieving and consulting information, some terms will be associated with internal links (referred to as "internal links").
  • the terms associated with internal links can be called internal link words.
  • embodiments of the present disclosure provide a text editing method, device, electronic device and storage medium, which realizes the purpose of quickly adding internal links to polysemy words in text content, and has Help improve editing efficiency.
  • embodiments of the present disclosure provide a text editing method, which method includes:
  • the internal link adding interface When adding an internal link to a target word in the text content, the internal link adding interface is displayed, and the target word is a polysemy word;
  • the first description information of the meaning word corresponding to the target word is displayed on the internal link adding interface, and the first description information is used to characterize the characteristic information that distinguishes the meaning word from other meaning words;
  • the second description information of the target meaning word is displayed on the internal link adding interface; wherein the target meaning word is one of the meaning words, and the second The information amount of the description information is greater than the information amount of the first description information.
  • embodiments of the present disclosure also provide a text editing device, which includes:
  • the first display module is used to display the internal link adding interface when adding an internal link to a target word in the text content, and the target word is a polysemy word;
  • the first display module is used to display the first description information of the meaning word corresponding to the target word on the internal link adding interface.
  • the first description information is used to represent the characteristic information that distinguishes the meaning word from other meaning words. ;
  • the second display module is configured to display the second description information of the target meaning word on the internal link adding interface in response to the triggering operation of the target meaning word; wherein the target meaning word is one of the target meaning words.
  • the information amount of the second description information is greater than the information amount of the first description information.
  • embodiments of the present disclosure also provide an electronic device, where the electronic device includes:
  • processors one or more processors
  • a storage device for storing one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the text editing method as described above.
  • embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the text editing method as described above is implemented.
  • the technical solution provided by the embodiments of the present disclosure has at least the following advantages:
  • the text editing method provided by the embodiment of the present disclosure by preferentially displaying the first description information of multiple meaning words corresponding to the target word on the internal link adding interface, can facilitate the user to determine the current meaning word from the multiple meaning words based on the first description information. If the meaning of the meaning word cannot be determined more accurately based on the first description information, the second description information of the triggered meaning word can be displayed on the internal link adding interface by triggering the meaning word. , the information amount of the second description information is greater than the information amount of the first description information, so the specific meaning of the definition word can be continued to be determined based on the second description information.
  • the purpose of quickly adding internal links to polysemy words in text content is achieved, which helps improve editing efficiency.
  • Figure 1 is a flow chart of a text editing method in an embodiment of the present disclosure
  • Figure 2 is a schematic diagram of an internal link adding interface in an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of an internal link adding interface in an embodiment of the present disclosure
  • Figure 4 is a schematic diagram of a floating layer in an embodiment of the present disclosure.
  • Figure 5 is a schematic structural diagram of a text editing device in an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
  • the term “include” and its variations are open-ended, ie, “including but not limited to.”
  • the term “based on” means “based at least in part on.”
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; and the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the description below.
  • Figure 1 is a flow chart of a text editing method in an embodiment of the present disclosure.
  • the method can be executed by a text editing device, which can be implemented in software and/or hardware, and which can be configured in an electronic device.
  • the method specifically includes the following steps:
  • Step 110 When adding an internal link to a target word in the text content, the internal link adding interface is displayed, and the target word is a polysemy word.
  • polysemy refers to words that have different meanings in different application scenarios (or in different contexts).
  • the color of the grass is green in the context of describing the natural environment means a description of the color of the grass, but in other contexts it means the name of a novel.
  • the target word is the name of a character. Due to the problem of duplicate names, the same name corresponds to different characters, that is, the same name has multiple meanings and is a polysemy. For example, the target word is "Zhang San", and "Zhang San” may correspond to multiple meanings, one of which means an athlete, and the other means a singer. Therefore, when adding internal links to polysemy words, it is necessary to fully consider the text content of the target word, or the context of the target word, in order to achieve the purpose of accurately adding internal links to the target word.
  • Step 120 Display the first description information of the meaning word corresponding to the target word on the internal link adding interface.
  • the first description information is used to characterize the characteristic information that distinguishes the meaning word from other meaning words.
  • one or more meaning words corresponding to the target word are one or more meanings corresponding to the target word.
  • the target word is "Zhang San”
  • the athlete Zhang San is one corresponding to the target word - "Zhang San”.
  • the meaning word, singer Zhang San is another meaning word corresponding to the target word-"Zhang San”.
  • FIG. 2 In order to facilitate users to view the specific meanings of semantic words and improve the efficiency and accuracy of internal link editing, for example, refer to the schematic diagram of an internal link adding interface as shown in Figure 2, which displays the target word (named "Zhang San”). ” for example) the first description information 210 corresponding to one or more meaning words.
  • the first description information is used to characterize the characteristic information of the corresponding sense word that is different from other sense words.
  • the target word is "Zhang San”
  • "athlete” is the first description information of the one sense word corresponding to the target word "Zhang San”.
  • "Singer” is the characteristic information of the first descriptive information of another meaning word, and different meanings of the target word are distinguished through this characteristic information.
  • the internal link adding interface also displays an internal link adding control 200. If the user can determine the meaning word that matches the current text content by browsing the first description information of one or more meaning words, the internal link adding control can be triggered to achieve Internal links added.
  • the current text content in order to facilitate the user to find target semantic words that match the current text content as quickly as possible, can be combined with the semantic words that are more similar to the current text content to be displayed in a higher position. specific, so The first description information of the one or more semantic words is displayed sequentially on the internal link adding interface in order from high to low based on the similarity between the one or more semantic words and the text content.
  • semantic analysis is performed on the context of the target word according to its position in the text content to obtain semantic results; candidate meanings corresponding to the target word are retrieved from a preset database words; determine a first number of sense words from the candidate sense words according to the semantic results, the semantics of the candidate sense words, and the historical views of the candidate sense words; and add the first number of sense words into A second number of semantic words is determined as the semantic words corresponding to the target word, wherein the first number is greater than the second number.
  • meaning words that are similar in semantics to the target word context and/or meaning words with higher historical views are displayed on the internal link adding interface, so that users can quickly determine the appropriate meaning words for adding internal links. .
  • one or more meaning words corresponding to the target word and the first description information and the second description information corresponding to the one or more meaning words are stored in a preset database in advance, and one or more words can be retrieved based on the target word. Multiple meaning words and corresponding first description information and second description information.
  • the first description information and the second description information of the meaning word corresponding to the target word can also be determined in the following manner:
  • target word as a search keyword, obtain multiple encyclopedia contents corresponding to the target word; extract the first description information and/or the meaning words corresponding to the target word from the multiple encyclopedia contents through preset rules. or secondary descriptive information.
  • Extracting the first description information and/or the second description information of the meaning word corresponding to the target word from the plurality of encyclopedia contents through preset rules includes:
  • the information of the second preset encyclopedia module (such as the character experience module) is determined as the second description information of the corresponding synonym word;
  • sub-information is extracted from the information displayed in different encyclopedia modules of the target encyclopedia content, and splicing is performed based on the extracted sub-information to obtain the first description information and/or the second description information of the corresponding synonymous word, wherein:
  • the second description information includes the first description information, and the first description information includes an amount of sub-information less than the amount of sub-information included in the second description information.
  • the latest meaning words can be provided to the user, which helps to improve the efficiency and accuracy of internal link editing.
  • Step 130 In response to the triggering operation for the target meaning word, display the second description information of the target meaning word on the internal link adding interface; wherein the target meaning word is one of the meaning words, so describing the second description information The amount of information is greater than the amount of information of the first description information.
  • second description information with a larger amount of information can be further obtained to determine the more specific meaning of the definition word and one or more words based on the second description information.
  • the difference between individual meaning words so as to find the meaning words that match the current text content, and achieve the purpose of adding internal links to the target words.
  • the second description information of the target semantic word is displayed on the internal link adding interface, including :
  • the second description information of the target meaning word is overlayed in the form of a floating layer or a card on the internal link adding interface, wherein, The overlay area of the floating layer or card and the internal link adding interface is a different area from the area where the first description information of the semantic word is located. That is, the user only needs to hover the mouse pointer over the target meaning word to bring up the floating layer or card that displays the second description information without clicking on the target meaning word, thereby simplifying interactive operations and improving interaction efficiency.
  • the triggering operation for the target meaning word can also be to click on the target meaning word, or to speak the target meaning word with voice, or to move the target meaning word through some gestures (such as sliding). meaning words to trigger.
  • the internal link adding interface in which the first description information 210 of one or more meaning words corresponding to the target word is displayed, and the internal link adding interface also displays the For the target word 220, when the user controls the mouse pointer to hover over the target semantic word "singer", a floating layer 230 is displayed, and the second description information 231 corresponding to the target semantic word "singer" is displayed in the floating layer 230.
  • the target word 232, the image 233 of the singer Zhang San and the first description information 234 are also displayed.
  • the operation of adding an internal link to the target word can be completed by triggering the "add control" 200 displayed in the internal link adding interface.
  • the method also includes:
  • a link association is established between the target meaning word and the target word, so that when the target word in the text content is operated, the target is displayed.
  • the second description information corresponding to the meaning word.
  • the target word is displayed differently from other words in the text content to prompt that the target word has added content.
  • Chain word For example, a target word with an internal link added is underlined, but other words in the text content other than the target word that have not been added with an internal link are not underlined. line to distinguish the target word from other words, so as to guide users to view the internal links of the target word and improve the user's interactive experience.
  • the method further includes:
  • the second description information corresponding to the target meaning word is displayed in the form of a floating layer or a card, so that the user can learn the target by browsing the second description information.
  • the specific meaning of the word By controlling the mouse pointer to hover over the target word in the text content, you can call up the internal link of the target word without clicking on the target word in the text content.
  • This interactive method makes the user's operation more convenient and the interactive experience more convenient. good.
  • the method further includes:
  • the floating layer or card In response to the operation of the mouse pointer leaving the target word or moving out of the floating layer or card displaying the second description information, the floating layer or card is closed.
  • the floating layer In other words, if the second description information is displayed in the form of a floating layer, when the user controls the mouse pointer to leave the target word or moves out of the floating layer, the floating layer will be automatically canceled; if the second description information is displayed in the form of a card, when the user When the mouse pointer leaves the target word or moves out of the card, the card will be automatically canceled. There is no need for the user to click on an area outside the target word or outside the floating layer or outside the card to cancel the floating layer or card, which simplifies the user's interactive operations and improves the interactive experience.
  • the time when the mouse pointer leaves the target word or moves out of the floating layer or card can be timed.
  • the timing reaches a threshold, the floating layer or card can be closed or Card operation, thereby improving interaction stability and avoiding frequent interface jumps.
  • closing the floating layer includes:
  • the duration of the mouse pointer leaving the target word or moving out of the floating layer is timed. If the duration is greater than a duration threshold and the mouse pointer If the moving speed is less than the speed threshold, the floating layer is closed.
  • the display space occupied by the floating layer should be as small as possible.
  • the second description information can be displayed based on a preset floating layer template.
  • the method further includes: in response to an operation of clicking the target word in the text content, from the text The page where the content is located is switched to a target page, and the third description information associated with the target semantic word is displayed on the target page, and the information amount of the third description information is greater than the information amount of the second description information. That is, by clicking on the target word in the text content, you can jump to a new page and display more detailed description information about the target word on the new page, instead of first clicking on the target word in the text content. Display the floating layer of the second description information, and then click further on the target word in the floating layer to jump to a new page.
  • the jump path provided by the embodiment of the present disclosure is relatively convenient and is conducive to improving interaction efficiency and experience.
  • the method further includes:
  • the internal link adding interface is displayed.
  • FIG. 4 refers to the schematic interface diagram of a floating layer when editing the added internal link of the target word in the text content as shown in Figure 4, which includes the target word (taking Zhang San as an example) 410.
  • the user determines whether the currently added internal link meaning word matches the text content of the target word by browsing the first description information 420, the second description information 430 and the image 440. If it is determined that it does not match, the user can cancel the currently added word through the cancel control 450.
  • the link relationship between the internal link meaning word and the target word, or the internal link adding interface is called up by changing the control 460, and the internal link is re-added for the target word based on the internal link adding interface.
  • the text editing method provided by the embodiment of the present disclosure by preferentially displaying the first description information of multiple meaning words corresponding to the target word on the internal link adding interface, can facilitate the user to determine the current meaning word from the multiple meaning words based on the first description information. If the meaning of the meaning word cannot be determined more accurately based on the first description information, the second description information of the triggered meaning word can be displayed on the internal link adding interface by triggering the meaning word. , the information amount of the second description information is greater than the information amount of the first description information, so the specific meaning of the definition word can be continued to be determined based on the second description information.
  • the purpose of quickly adding internal links to polysemy words in text content is achieved, which helps improve editing efficiency.
  • FIG. 5 is a schematic structural diagram of a text editing device in an embodiment of the present disclosure. As shown in Figure 5, this text editing installation The device specifically includes: a first display module 510, a first display module 520 and a second display module 530.
  • the first display module 510 is used to display the internal link adding interface when adding an internal link to a target word in the text content, and the target word is a polysemous word; the first display module 520 is used to add an internal link to the internal link.
  • the interface displays the first description information of the meaning word corresponding to the target word.
  • the first description information is used to characterize the characteristic information that distinguishes the meaning word from other meaning words.
  • the second display module 530 is used to respond to the target word.
  • the triggering operation of the meaning word displays the second description information of the target meaning word on the internal link adding interface; wherein the target meaning word is one of the meaning words, and the information of the second description information
  • the amount is greater than the information amount of the first description information.
  • the text editing device further includes: an analysis module, used to perform semantic analysis on the context of the target word according to the position of the target word in the text content, and obtain semantic results; a retrieval module, for retrieving candidate semantic words that have a corresponding relationship with the target word from a preset database; a first determination module for retrieving candidate semantic words based on the semantic results, the semantics of the candidate semantic words, and the historical views of the candidate semantic words Determine a first number of sense words from the candidate sense words; a second determination module, configured to determine a second number of sense words among the first number of sense words as sense words corresponding to the target word, wherein , the first quantity is greater than the second quantity.
  • an analysis module used to perform semantic analysis on the context of the target word according to the position of the target word in the text content, and obtain semantic results
  • a retrieval module for retrieving candidate semantic words that have a corresponding relationship with the target word from a preset database
  • a first determination module for retrieving candidate semantic words based on the semantic results, the semantic
  • the text editing device further includes: an acquisition module, used to use the target word as a search keyword to acquire multiple encyclopedia contents corresponding to the target word; and an extraction module, used to obtain the content from multiple encyclopedias corresponding to the target word through preset rules.
  • the first description information and/or the second description information of the meaning word corresponding to the target word are extracted from the plurality of encyclopedia contents.
  • the extraction module is specifically configured to: determine the information of the first preset encyclopedia module of the target encyclopedia content displayed in the plurality of encyclopedia contents as the first description information corresponding to the synonym word;
  • sub-information is extracted from the information displayed in different encyclopedia modules of the target encyclopedia content, and splicing is performed based on the extracted sub-information to obtain the first description information and/or the second description information of the corresponding synonymous word, wherein:
  • the second description information includes the first description information, and the first description information includes an amount of sub-information less than the amount of sub-information included in the second description information.
  • the second display module 530 is specifically configured to: in response to the operation of hovering the mouse pointer on the first description information of the target semantic word, add an interface overlay to the internal link in the form of a floating layer or a card.
  • the second description information of the target meaning word is displayed, wherein the overlay area of the floating layer or card and the internal link adding interface is a different area from the area where the first description information of the meaning word is located.
  • the target word and an adding control are also displayed on the internal link adding interface;
  • the text editing device further includes: a creation module, configured to respond to a triggering operation acting on the adding control.
  • a link association is established between the target meaning word and the target word, so that when operating on the target word in the text content, the second description information corresponding to the target meaning word is displayed.
  • the target word after establishing a link association between the target meaning word and the target word, the target word is displayed in the text content differently from other words to prompt that the target word is added. Words with internal links.
  • the text editing device further includes: a second display module, configured to display the target in the form of a floating layer or a card in response to an operation of hovering the mouse pointer over the target word in the text content.
  • the second description information corresponding to the meaning word.
  • the text editing device further includes: a third display module, configured to display the added internal link in the form of a floating layer or card when editing the added internal link of the target word in the text content.
  • the second description information corresponding to the target meaning word, the cancellation control and the change control is used to cancel the link association between the target meaning word and the target word in response to the trigger operation acting on the cancellation control,
  • the second description information corresponding to the target meaning word is not displayed;
  • a change module is configured to display the target word in response to the trigger operation acting on the change control.
  • the internal link adding interface is described above.
  • the text editing device further includes: a switching module, configured to switch from the page where the text content is located to a target page in response to an operation of clicking the target word in the text content.
  • the third description information associated with the target semantic word is displayed, and the information amount of the third description information is greater than the information amount of the second description information.
  • the first description information of the semantic words is displayed sequentially on the internal link adding interface in order from high to low based on the similarity between the semantic words and the text content.
  • the text editing device provided by the embodiments of the present disclosure can execute the steps in the text editing method provided by the method embodiments of the present disclosure.
  • the execution steps and beneficial effects will not be described in detail here.
  • FIG. 6 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
  • the electronic device 600 in the embodiment of the present disclosure may include, but is not limited to, mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals ( Mobile terminals such as vehicle navigation terminals), wearable electronic devices, etc., and fixed terminals such as digital TVs, desktop computers, smart home devices, etc.
  • the electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 600 may include a processing device (eg, central processing unit, graphics processor, etc.) 601, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608.
  • the program in the memory (RAM) 603 performs various appropriate actions and processes to implement the methods of the embodiments described in the present disclosure.
  • various programs and data required for the operation of the electronic device 600 are also stored.
  • the processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604.
  • An input/output (I/O) interface 605 is also connected to bus 604.
  • input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration
  • An output device 607 such as a computer
  • storage device 608 including a magnetic tape, a hard disk, etc.
  • text editing device 609 may allow the electronic device 600 to perform wireless or wired text editing with other devices to exchange data.
  • FIG. 6 illustrates electronic device 600 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, the computer program including program code for executing the method shown in the flowchart, thereby achieving the above the method described.
  • the computer program may be downloaded and installed from the network through the text editing device 609, or installed from the storage device 608, or installed from the ROM 602.
  • the processing device 601 the above functions defined in the method of the embodiment of the present disclosure are performed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmd read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. use.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
  • the client and server can use any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) for text editing, and can interact with digital files in any form or medium.
  • HTTP HyperText Transfer Protocol
  • Data text editing e.g., text editing network
  • text editing networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future R&D network.
  • LAN local area networks
  • WAN wide area networks
  • the Internet e.g., the Internet
  • peer-to-peer networks e.g., ad hoc peer-to-peer networks
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device executes the above-mentioned one or more programs.
  • an internal link adding interface When adding an internal link to a target word in the text content, an internal link adding interface is displayed, and the target word is a polysemy word; the first description information of the meaning word corresponding to the target word is displayed on the internal link adding interface, and the internal link adding interface is displayed.
  • the first description information is used to characterize the characteristic information that distinguishes the meaning word from other meaning words; in response to the triggering operation for the target meaning word, display the second description information of the target meaning word on the internal link adding interface; Wherein, the target semantic word is one of the semantic words, and the information amount of the second description information is greater than the information amount of the first description information.
  • the electronic device when one or more of the above programs are executed by the electronic device, the electronic device may also perform other steps described in the above embodiments.
  • Computer program code for performing operations of the present disclosure may be written in one or more programming languages, including, but not limited to, device-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C” or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through the Internet). ).
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as an Internet service provider through the Internet.
  • each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure can be implemented in software or hardware. Among them, the name of a unit does not constitute a limitation on the unit itself under certain circumstances.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM portable compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.
  • the present disclosure provides a text editing method, including: when adding an internal link to a target word in the text content, displaying an internal link adding interface, and the target word is a polysemy word; The inner link added boundary The first description information of the meaning word corresponding to the target word is displayed, and the first description information is used to characterize the characteristic information of the meaning word that is different from other meaning words; in response to the triggering operation for the target meaning word, in the The second description information of the target meaning word is displayed on the internal link adding interface; wherein the target meaning word is one of the meaning words, and the amount of information of the second description information is greater than the first description information amount of information.
  • the method before the internal link adding interface displays the first description information of the meaning word corresponding to the target word , the method further includes: performing semantic analysis on the context of the target word according to the position of the target word in the text content, and obtaining semantic results; retrieving from a preset database the words corresponding to the target word.
  • Candidate semantic words determine a first number of semantic words from the candidate semantic words according to the semantic results, the semantics of the candidate semantic words, and the historical views of the candidate semantic words; and combine the first number of semantic words
  • the second number of sense words in the word is determined as the sense words corresponding to the target word, wherein the first number is greater than the second number.
  • the method before the internal link adding interface displays the first description information of the meaning word corresponding to the target word , the method further includes: using the target word as a search keyword, obtaining multiple encyclopedia contents corresponding to the target word; extracting the meaning words corresponding to the target word from the multiple encyclopedia contents through preset rules first description information and/or second description information.
  • the semantic words corresponding to the target word are extracted from the plurality of encyclopedia contents through preset rules.
  • the first description information and/or the second description information include: determining the information of the first preset encyclopedia module of the target encyclopedia content displayed in the plurality of encyclopedia contents as the first description information corresponding to the synonymous word; and/or, Determine the information displayed in the second preset encyclopedia module of the target encyclopedia content as the second description information of the corresponding synonym word; or, respectively extract sub-information from the information displayed in different encyclopedia modules of the target encyclopedia content,
  • the first description information and/or the second description information of the corresponding synonym word are obtained by splicing based on the extracted sub-information, wherein the second description information includes the first description information, and the first description information includes The amount of sub-information is less than the amount of sub-information included in the second description information.
  • the target in response to a triggering operation for a target semantic word, is displayed on the internal link adding interface.
  • the second description information of the meaning word includes: in response to the operation of hovering the mouse pointer on the first description information of the target meaning word, adding an interface overlay to the internal link to display the target in the form of a floating layer or card.
  • the second description information of the meaning word wherein the overlay area of the floating layer or card and the internal link adding interface is a different area from the area where the first description information of the meaning word is located. area.
  • the target word and adding control are also displayed on the internal link adding interface; the method further includes : In response to the trigger operation acting on the add control, establish a link association between the target meaning word and the target word, so that when operating on the target word in the text content, the The second descriptive information corresponding to the target semantic word.
  • the target after establishing a link association between the target meaning word and the target word, the target The word is displayed differently from other words in the text content to prompt that the target word is a word with an internal link added; the method also includes: responding to the mouse pointer hovering over the target word in the text content The operation displays the second description information corresponding to the target semantic word in the form of a floating layer or a card.
  • the method after establishing a link association between the target meaning word and the target word, the method It also includes: when editing the added internal link of the target word in the text content, displaying the second description information, cancel control and change control corresponding to the target meaning word in the form of a floating layer or card; responding; Based on the trigger operation acting on the cancel control, cancel the link association between the target meaning word and the target word, so that when operating on the target word in the text content, the target is not displayed Second description information corresponding to the semantic word; in response to a trigger operation acting on the change control, display the internal link adding interface.
  • the method after establishing a link association between the target meaning word and the target word, the method It also includes: in response to an operation of clicking the target word in the text content, switching from the page where the text content is located to a target page, and displaying third description information associated with the target meaning word on the target page, the The information amount of the third description information is greater than the information amount of the second description information.
  • the first description information of the meaning word is added to the internal link interface based on the meaning word respectively and the The similarity of the text content is displayed in order from high to low.
  • the present disclosure provides a text editing device, including: a first display module configured to display an internal link adding interface when adding an internal link to a target word in the text content, so The target word is a polysemy word; the first display module is used to display the first description information of the meaning word corresponding to the target word on the internal link adding interface, so The first description information is used to characterize the characteristic information that distinguishes the meaning word from other meaning words; the second display module is used to display the target on the internal link adding interface in response to a trigger operation for the target meaning word.
  • the second description information of the meaning word wherein the target meaning word is one of the meaning words, and the information amount of the second description information is greater than the information amount of the first description information.
  • the present disclosure provides an electronic device, including:
  • processors one or more processors
  • Memory used to store one or more programs
  • the one or more processors are caused to implement any of the text editing methods provided by this disclosure.
  • the present disclosure provides a computer-readable storage medium having a computer program stored thereon.
  • the program is executed by a processor, the text editing as described in any one provided by the present disclosure is implemented. method.
  • Embodiments of the present disclosure also provide a computer program product.
  • the computer program product includes a computer program or instructions. When the computer program or instructions are executed by a processor, the text editing method as described above is implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种文本编辑方法、装置、电子设备和存储介质,该方法包括:在针对文本内容中的目标词添加内链时,显示内链添加界面,所述目标词为多义词(110);在所述内链添加界面展示所述目标词对应的义项词的第一描述信息,所述第一描述信息用于表征所述义项词区别于其它义项词的特征信息(120);响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息;其中,所述目标义项词为所述义项词中的一个,所述第二描述信息的信息量大于所述第一描述信息的信息量(130)。

Description

一种文本编辑方法、装置、电子设备和存储介质
本公开要求于2022年03月18日提交的,申请名称为“一种文本编辑方法、装置、电子设备和存储介质”的、中国专利申请号为“202210269588.5”的优先权,该中国专利申请的全部内容通过引用结合在本公开中。
技术领域
本公开涉及信息技术领域,尤其涉及一种文本编辑方法、装置、电子设备和存储介质。
背景技术
随着互联网的普及,每天有大量的信息通过网络传播,因此一种通过电子百科全书记录信息的方式应运而生。人们可以对已有信息或者即时产生的信息进行梳理和积累,以不断完善电子百科全书,有利于人们进行信息检索与查阅。
为了提高用户检索、查阅信息的效率,会对一些词条关联内部链接(简称为“内链”),关联有内链的词条可称为内链词,用户在遇到感兴趣的内链词时,可通过点击该内链词跳转至关联的页面,以查阅关于该内链词的更多信息。
然而,在针对多义词的词条添加内链时,相关的内链添加方法可能会出现关联至错误内链的情况,导致词条在一些具体场景下的真正含义无法被正确诠释。
发明内容
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开实施例提供了一种文本编辑方法、装置、电子设备和存储介质,实现了针对文本内容中的多义词快捷添加内链的目的,有助于提升编辑效率。
第一方面,本公开实施例提供了一种文本编辑方法,该方法包括:
在针对文本内容中的目标词添加内链时,显示内链添加界面,所述目标词为多义词;
在所述内链添加界面展示所述目标词对应的义项词的第一描述信息,所述第一描述信息用于表征所述义项词区别于其它义项词的特征信息;
响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息;其中,所述目标义项词为所述义项词中的一个,所述第二描述信息的信息量大于所述第一描述信息的信息量。
第二方面,本公开实施例还提供了一种文本编辑装置,该装置包括:
第一显示模块,用于在针对文本内容中的目标词添加内链时,显示内链添加界面,所述目标词为多义词;
第一展示模块,用于在所述内链添加界面展示所述目标词对应的义项词的第一描述信息,所述第一描述信息用于表征所述义项词区别于其它义项词的特征信息;
第二展示模块,用于响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息;其中,所述目标义项词为所述义项词中的一个,所述第二描述信息的信息量大于所述第一描述信息的信息量。
第三方面,本公开实施例还提供了一种电子设备,所述电子设备包括:
一个或多个处理器;
存储装置,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上所述的文本编辑方法。
第四方面,本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上所述的文本编辑方法。
本公开实施例提供的技术方案与相关技术相比至少具有如下优点:
本公开实施例提供的文本编辑方法,通过优先在内链添加界面展示目标词对应的多个义项词的第一描述信息,可方便用户基于第一描述信息从多个义项词中确定与当前的文本内容相匹配的一个,若基于第一描述信息仍无法较准确地确定义项词的含义,则可通过针对义项词的触发操作,在内链添加界面上展示被触发义项词的第二描述信息,第二描述信息的信息量大于第一描述信息的信息量,因此可基于第二描述信息继续确定义项词的具体含义。实现了针对文本内容中的多义词快捷添加内链的目的,有助于提升编辑效率。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。
图1为本公开实施例中的一种文本编辑方法的流程图;
图2为本公开实施例中的一种内链添加界面的示意图;
图3为本公开实施例中的一种内链添加界面的示意图;
图4为本公开实施例中的一种浮层的示意图;
图5为本公开实施例中的一种文本编辑装置的结构示意图;
图6为本公开实施例中的一种电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行以及并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
图1为本公开实施例中的一种文本编辑方法的流程图。该方法可以由文本编辑装置执行,该装置可以采用软件和/或硬件的方式实现,该装置可配置于电子设备中。
如图1所示,该方法具体包括如下步骤:
步骤110、在针对文本内容中的目标词添加内链时,显示内链添加界面,所述目标词为多义词。
其中,多义词指在不同应用场景下(或者说是不同上下文中)具有不同含义的词。例如“草色青青”在描述自然环境的上下文中其表达的含义是对小草颜色的描述,而在其它上下文中其表达的含义可能是一部小说的名称。
再例如目标词为一人物的名字,由于重名问题的存在,同一名字对应的人物不同,即同一名字有多种含义,是多义词。例如目标词为“张三”,“张三”可能对应多种含义,其中一种含义表示一运动员,另一种含义则表示一歌手。因此,在针对多义词添加内链时,需要充分考虑目标词所在的文本内容,或者说是目标词的上下文,以实现为目标词准确添加内链的目的。
在一些示例中,可先针对文本内容中的目标词进行选中操作,然后通过操作“内链添加控件”触发内链添加指令,进而调起内链添加界面。
步骤120、在所述内链添加界面展示所述目标词对应的义项词的第一描述信息,所述第一描述信息用于表征所述义项词区别于其它义项词的特征信息。
其中,所述目标词对应的一个或多个义项词为目标词对应的一种或多种含义,例如目标词为“张三”,运动员张三为目标词-“张三”对应的一种义项词,歌手张三为目标词-“张三”对应的另一种义项词。
为了方便用户查看义项词的具体含义,提高内链编辑效率和准确度,示例性的,参考如图2所示的一种内链添加界面的示意图,其中展示有目标词(以姓名“张三”为例)对应的一个或多个义项词的第一描述信息210。所述第一描述信息用于表征对应义项词区别于其它义项词的特征信息,例如目标词为“张三”,“运动员”为目标词“张三”对应的一义项词的第一描述信息的特征信息,“歌手”为另一义项词的第一描述信息的特征信息,通过该特征信息对目标词的不同含义进行区分。通过在内链添加界面展示用于区分不同义项词的第一描述信息,可使用户较快捷地确定与当前文本内容匹配的义项词,进而提高内链编辑效率和准确度。
在内链添加界面还展示有内链添加控件200,若用户通过浏览一个或多个义项词的第一描述信息可以确定与当前文本内容匹配的义项词,则可通过触发内链添加控件,实现内链添加。
在一些实施方式中,为了便于用户尽快找到与当前文本内容匹配的目标义项词,可结合当前文本内容,将与当前文本内容的相似度较高的义项词展示在较靠前的位置。具体的,所 述一个或多个义项词的第一描述信息在所述内链添加界面基于一个或多个义项词分别与所述文本内容的相似度从高到低的顺序进行依次显示。
在一些示例中,根据所述目标词在所述文本内容中的位置,对所述目标词的上下文进行语义分析,获得语义结果;从预设数据库检索与所述目标词存在对应关系的候选义项词;根据所述语义结果、所述候选义项词的语义以及所述候选义项词的历史浏览量从所述候选义项词中确定第一数量的义项词;将所述第一数量的义项词中第二数量的义项词确定为所述目标词对应的义项词,其中,所述第一数量大于所述第二数量。概括性的,将与目标词上下文的语义较相似的义项词和/或历史浏览量较高的义项词展示在内链添加界面,以使用户较快地确定出合适的义项词进行内链添加。需要说明的是,目标词对应的一个或多个义项词以及一个或多个义项词对应的第一描述信息和第二描述信息预先被存储在预设数据库,可基于目标词进行检索获得一个或多个义项词以及对应的第一描述信息和第二描述信息。
在一些实施方式中,还可以通过如下方式确定目标词对应的义项词的第一描述信息和第二描述信息:
以所述目标词为搜索关键词,获取所述目标词对应的多个百科内容;通过预设规则从所述多个百科内容中提取所述目标词对应的义项词的第一描述信息和/或第二描述信息。
所述通过预设规则从所述多个百科内容中提取所述目标词对应的义项词的第一描述信息和/或第二描述信息,包括:
将显示在所述多个百科内容中目标百科内容第一预设百科模块(例如摘要模块)的信息确定为对应义项词的第一描述信息;和/或,将显示在所述目标百科内容第二预设百科模块(例如人物经历模块)的信息确定为所述对应义项词的第二描述信息;
或者,分别从显示在所述目标百科内容不同百科模块的信息中提取子信息,基于提取的子信息进行拼接获得所述对应义项词的第一描述信息和/或第二描述信息,其中,所述第二描述信息包括所述第一描述信息,所述第一描述信息包括的子信息量少于所述第二描述信息包括的子信息量。
通过实时地从百科内容获取目标词的一个或多个义项词,可达到将最新的义项词提供给用户,有助于提升内链编辑效率和准确度。
步骤130、响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息;其中,所述目标义项词为所述义项词中的一个,所述第二描述信息的 信息量大于所述第一描述信息的信息量。
具体的,若基于第一描述信息无法较准确地确定义项词的具体含义,可进一步获取信息量较大的第二描述信息,以基于第二描述信息确定义项词的更具体含义以及一个或多个义项词之间的区别,从而找到与当前文本内容匹配的义项词,实现针对目标词添加内链的目的。
在一些示例中,为了进一步简化用户的交互操作,提高交互效率,所述响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息,包括:
响应于将鼠标指针悬停在所述目标义项词的第一描述信息的操作,在所述内链添加界面叠加以浮层或卡片的形式显示所述目标义项词的第二描述信息,其中,所述浮层或卡片与所述内链添加界面的叠加区域与所述义项词的第一描述信息所在区域为不同的区域。即用户仅需将鼠标指针悬停在目标义项词即可调起显示第二描述信息的浮层或卡片,而无需点击目标义项词,达到了简化交互操作、提升交互效率的目的。
可以理解的是,针对目标义项词的触发操作除了控制鼠标悬停在目标义项词之外,还可以是点击目标义项词,或者语音说出目标义项词,或者通过一些手势(例如滑动)对目标义项词进行触发。
示例性的,参考如图3所示的一种内链添加界面的示意图,其中展示有目标词对应的一个或多个义项词的第一描述信息210,在内链添加界面还展示有所述目标词220,当用户控制鼠标指针悬停在目标义项词“歌手”时,显示浮层230,在浮层230中展示目标义项词“歌手”对应的第二描述信息231,在浮层230中还展示有目标词232、歌手张三的图像233以及所述第一描述信息234。
若通过浏览第二描述信息确定目标义项词即为与当前文本内容匹配的义项词,则可通过触发在内链添加界面中展示的“添加控件”200完成针对目标词添加内链的操作。
概括性的,所述方法还包括:
响应于作用在所述添加控件的触发操作,将所述目标义项词与所述目标词之间建立链接关联,以在针对所述文本内容中的所述目标词进行操作时,显示所述目标义项词对应的第二描述信息。
进一步的,所述将所述目标义项词与所述目标词之间建立链接关联之后,所述目标词在所述文本内容中区别于其它词进行显示,以提示所述目标词为添加有内链的词。例如在添加有内链的目标词下加下划线,而文本内容中除目标词之外的其它没有添加内链的词没有下划 线,以将目标词与其它词进行区分,从而达到引导用户查看目标词的内链的目的,提升用户的交互体验。
在一些实施方式中,所述方法还包括:
响应于鼠标指针悬停在所述文本内容中所述目标词的操作,以浮层或卡片的形式显示所述目标义项词对应的第二描述信息,以使用户通过浏览第二描述信息获知目标词的具体含义。通过控制鼠标指针悬停在文本内容中的目标词即可调出目标词的内链,而不需要针对文本内容中的目标词进行点击,该种交互方式使得用户的操作更加便捷,交互体验更好。
进一步的,在一些实施方式中,所述方法还包括:
响应于鼠标指针离开所述目标词或移出显示有第二描述信息的浮层或卡片的操作,关闭所述浮层或卡片。换言之,如果第二描述信息是以浮层的形式显示的,当用户控制鼠标指针离开目标词或者移出浮层时,自动取消浮层;如果第二描述信息是以卡片的形式显示的,当用户控制鼠标指针离开目标词或者移出卡片时,自动取消卡片。而不需要用户额外点击目标词之外或者浮层之外或者卡片之外某区域时才能取消浮层或者卡片,简化了用户的交互操作,提升了交互体验。
在一些实施方式中,为了避免由于误触鼠标导致浮层或卡片消失,可对鼠标指针离开目标词或者移出浮层或卡片的时间进行计时,当计时时长达到阈值时,再执行关闭浮层或卡片的操作,从而提高交互稳定性,避免频繁跳转界面。
示例性的,响应于鼠标指针离开所述目标词或移出浮层的操作,关闭所述浮层,包括:
响应于鼠标指针离开所述目标词或移出所述浮层的操作,对鼠标指针离开所述目标词或移出所述浮层的时长进行计时,若所述时长大于时长阈值且所述鼠标指针的移动速度小于速度阈值,则关闭所述浮层。
进一步的,为了减小浮层对其周围文本内容的遮挡,浮层占据的展示空间应尽量小,具体的,可基于预设浮层模板显示第二描述信息。
在一些实施方式中,在将所述目标义项词与所述目标词之间建立链接关联之后,所述方法还包括:响应于点击所述文本内容中所述目标词的操作,从所述文本内容所在页面切换至目标页面,在所述目标页面显示所述目标义项词关联的第三描述信息,所述第三描述信息的信息量大于所述第二描述信息的信息量。即通过点击文本内容中的目标词即可跳转至新的页面,在新的页面显示关于目标词更详细的描述信息,而不是先点击文本内容中的目标词调起 显示第二描述信息的浮层,然后进一步点击浮层中的目标词才能跳转至新的页面。本公开实施例提供的跳转路径比较便捷,有利于提升交互效率和体验。
在一些实施方式中,在将所述目标义项词与所述目标词之间建立链接关联之后,所述方法还包括:
在针对所述文本内容中所述目标词的已添加内链进行编辑时,以浮层或卡片的形式显示所述目标义项词对应的第二描述信息、取消控件和更改控件;响应于作用在所述取消控件的触发操作,取消所述目标义项词与所述目标词之间的链接关联,以在针对所述文本内容中的所述目标词进行操作时,不显示所述目标义项词对应的第二描述信息;
响应于作用在所述更改控件的触发操作,显示所述内链添加界面。
示例性的,参考如图4所示的一种在针对所述文本内容中所述目标词的已添加内链进行编辑时的浮层的界面示意图,其中包括目标词(以张三为例)410、已添加内链的义项词的第一描述信息420、第二描述信息430、目标词对应的图像440、取消控件450和更改控件460。用户通过浏览第一描述信息420、第二描述信息430以及图像440确定当前已添加的内链义项词是否与目标词所在文本内容相匹配,如果确定不匹配,可通过取消控件450取消当前已添加的内链义项词与目标词之间的链接关系,或者通过更改控件460调起内链添加界面,基于内链添加界面针对目标词重新添加内链。
在针对文本内容中目标词的已添加内链进行编辑时,可通过控制鼠标指针悬停在文本内容中的目标词的方式调起如图4所示的浮层,进而通过该浮层对已添加内链进行编辑。通过控制鼠标指针悬停在文本内容中的目标词的方式调起如图4所示的浮层,可简化用户的交互操作,提升用户的交互体验;通过在浮层展示已添加内链的第一描述信息和第二描述信息,可帮助用户较高效地确定当前已添加内链是否准确。
本公开实施例提供的文本编辑方法,通过优先在内链添加界面展示目标词对应的多个义项词的第一描述信息,可方便用户基于第一描述信息从多个义项词中确定与当前的文本内容相匹配的一个,若基于第一描述信息仍无法较准确地确定义项词的含义,则可通过针对义项词的触发操作,在内链添加界面上展示被触发义项词的第二描述信息,第二描述信息的信息量大于第一描述信息的信息量,因此可基于第二描述信息继续确定义项词的具体含义。实现了针对文本内容中的多义词快捷添加内链的目的,有助于提升编辑效率。
图5为本公开实施例中的一种文本编辑装置的结构示意图。如图5所示,该文本编辑装 置具体包括:第一显示模块510、第一展示模块520和第二展示模块530。
其中,第一显示模块510,用于在针对文本内容中的目标词添加内链时,显示内链添加界面,所述目标词为多义词;第一展示模块520,用于在所述内链添加界面展示所述目标词对应的义项词的第一描述信息,所述第一描述信息用于表征所述义项词区别于其它义项词的特征信息;第二展示模块530,用于响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息;其中,所述目标义项词为所述义项词中的一个,所述第二描述信息的信息量大于所述第一描述信息的信息量。
在一些示例中,所述文本编辑装置还包括:分析模块,用于根据所述目标词在所述文本内容中的位置,对所述目标词的上下文进行语义分析,获得语义结果;检索模块,用于从预设数据库检索与所述目标词存在对应关系的候选义项词;第一确定模块,用于根据所述语义结果、所述候选义项词的语义以及所述候选义项词的历史浏览量从所述候选义项词中确定第一数量的义项词;第二确定模块,用于将所述第一数量的义项词中第二数量的义项词确定为所述目标词对应的义项词,其中,所述第一数量大于所述第二数量。
在一些示例中,所述文本编辑装置还包括:获取模块,用于以所述目标词为搜索关键词,获取所述目标词对应的多个百科内容;提取模块,用于通过预设规则从所述多个百科内容中提取所述目标词对应的义项词的第一描述信息和/或第二描述信息。
所述提取模块具体用于:将显示在所述多个百科内容中目标百科内容第一预设百科模块的信息确定为对应义项词的第一描述信息;
和/或,将显示在所述目标百科内容第二预设百科模块的信息确定为所述对应义项词的第二描述信息;
或者,分别从显示在所述目标百科内容不同百科模块的信息中提取子信息,基于提取的子信息进行拼接获得所述对应义项词的第一描述信息和/或第二描述信息,其中,所述第二描述信息包括所述第一描述信息,所述第一描述信息包括的子信息量少于所述第二描述信息包括的子信息量。
在一些示例中,第二展示模块530具体用于:响应于将鼠标指针悬停在所述目标义项词的第一描述信息的操作,在所述内链添加界面叠加以浮层或卡片的形式显示所述目标义项词的第二描述信息,其中,所述浮层或卡片与所述内链添加界面的叠加区域与所述义项词的第一描述信息所在区域为不同的区域。
在一些示例中,在所述内链添加界面还展示有所述目标词和添加控件;所述文本编辑装置还包括:建立模块,用于响应于作用在所述添加控件的触发操作,将所述目标义项词与所述目标词之间建立链接关联,以在针对所述文本内容中的所述目标词进行操作时,显示所述目标义项词对应的第二描述信息。
在一些示例中,所述将所述目标义项词与所述目标词之间建立链接关联之后,所述目标词在所述文本内容中区别于其它词进行显示,以提示所述目标词为添加有内链的词。
在一些示例中,所述文本编辑装置还包括:第二显示模块,用于响应于鼠标指针悬停在所述文本内容中所述目标词的操作,以浮层或卡片的形式显示所述目标义项词对应的第二描述信息。
在一些示例中,所述文本编辑装置还包括:第三显示模块,用于在针对所述文本内容中所述目标词的已添加内链进行编辑时,以浮层或卡片的形式显示所述目标义项词对应的第二描述信息、取消控件和更改控件;取消模块,用于响应于作用在所述取消控件的触发操作,取消所述目标义项词与所述目标词之间的链接关联,以在针对所述文本内容中的所述目标词进行操作时,不显示所述目标义项词对应的第二描述信息;更改模块,用于响应于作用在所述更改控件的触发操作,显示所述内链添加界面。
在一些示例中,所述文本编辑装置还包括:切换模块,用于响应于点击所述文本内容中所述目标词的操作,从所述文本内容所在页面切换至目标页面,在所述目标页面显示所述目标义项词关联的第三描述信息,所述第三描述信息的信息量大于所述第二描述信息的信息量。
在一些示例中,所述义项词的第一描述信息在所述内链添加界面基于义项词分别与所述文本内容的相似度从高到低的顺序进行依次显示。
本公开实施例提供的文本编辑装置,可执行本公开方法实施例所提供的文本编辑方法中的步骤,具备执行步骤和有益效果此处不再赘述。
图6为本公开实施例中的一种电子设备的结构示意图。下面具体参考图6,其示出了适于用来实现本公开实施例中的电子设备600的结构示意图。本公开实施例中的电子设备600可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)、可穿戴电子设备等等的移动终端以及诸如数字TV、台式计算机、智能家居设备等等的固定终端。 图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理以实现如本公开所述的实施例的方法。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及文本编辑装置609。文本编辑装置609可以允许电子设备600与其他设备进行无线或有线文本编辑以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码,从而实现如上所述的方法。在这样的实施例中,该计算机程序可以通过文本编辑装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使 用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行文本编辑,并且可以与任意形式或介质的数字数据文本编辑(例如,文本编辑网络)互连。文本编辑网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:
在针对文本内容中的目标词添加内链时,显示内链添加界面,所述目标词为多义词;在所述内链添加界面展示所述目标词对应的义项词的第一描述信息,所述第一描述信息用于表征所述义项词区别于其它义项词的特征信息;响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息;其中,所述目标义项词为所述义项词中的一个,所述第二描述信息的信息量大于所述第一描述信息的信息量。
在一些示例中,当上述一个或者多个程序被该电子设备执行时,该电子设备还可以执行上述实施例所述的其他步骤。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向设备的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及 远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,本公开提供了一种文本编辑方法,包括:在针对文本内容中的目标词添加内链时,显示内链添加界面,所述目标词为多义词;在所述内链添加界 面展示所述目标词对应的义项词的第一描述信息,所述第一描述信息用于表征所述义项词区别于其它义项词的特征信息;响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息;其中,所述目标义项词为所述义项词中的一个,所述第二描述信息的信息量大于所述第一描述信息的信息量。
根据本公开的一个或多个实施例,在本公开提供的文本编辑方法中,在一些示例中,所述在所述内链添加界面展示所述目标词对应的义项词的第一描述信息之前,所述方法还包括:根据所述目标词在所述文本内容中的位置,对所述目标词的上下文进行语义分析,获得语义结果;从预设数据库检索与所述目标词存在对应关系的候选义项词;根据所述语义结果、所述候选义项词的语义以及所述候选义项词的历史浏览量从所述候选义项词中确定第一数量的义项词;将所述第一数量的义项词中第二数量的义项词确定为所述目标词对应的义项词,其中,所述第一数量大于所述第二数量。
根据本公开的一个或多个实施例,在本公开提供的文本编辑方法中,在一些示例中,所述在所述内链添加界面展示所述目标词对应的义项词的第一描述信息之前,所述方法还包括:以所述目标词为搜索关键词,获取所述目标词对应的多个百科内容;通过预设规则从所述多个百科内容中提取所述目标词对应的义项词的第一描述信息和/或第二描述信息。
根据本公开的一个或多个实施例,在本公开提供的文本编辑方法中,在一些示例中,所述通过预设规则从所述多个百科内容中提取所述目标词对应的义项词的第一描述信息和/或第二描述信息,包括:将显示在所述多个百科内容中目标百科内容第一预设百科模块的信息确定为对应义项词的第一描述信息;和/或,将显示在所述目标百科内容第二预设百科模块的信息确定为所述对应义项词的第二描述信息;或者,分别从显示在所述目标百科内容不同百科模块的信息中提取子信息,基于提取的子信息进行拼接获得所述对应义项词的第一描述信息和/或第二描述信息,其中,所述第二描述信息包括所述第一描述信息,所述第一描述信息包括的子信息量少于所述第二描述信息包括的子信息量。
根据本公开的一个或多个实施例,在本公开提供的文本编辑方法中,在一些示例中,所述响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息,包括:响应于将鼠标指针悬停在所述目标义项词的第一描述信息的操作,在所述内链添加界面叠加以浮层或卡片的形式显示所述目标义项词的第二描述信息,其中,所述浮层或卡片与所述内链添加界面的叠加区域与所述义项词的第一描述信息所在区域为不同的区 域。
根据本公开的一个或多个实施例,在本公开提供的文本编辑方法中,在一些示例中的,在所述内链添加界面还展示有所述目标词和添加控件;所述方法还包括:响应于作用在所述添加控件的触发操作,将所述目标义项词与所述目标词之间建立链接关联,以在针对所述文本内容中的所述目标词进行操作时,显示所述目标义项词对应的第二描述信息。
根据本公开的一个或多个实施例,在本公开提供的文本编辑方法中,在一些示例中的,所述将所述目标义项词与所述目标词之间建立链接关联之后,所述目标词在所述文本内容中区别于其它词进行显示,以提示所述目标词为添加有内链的词;所述方法还包括:响应于鼠标指针悬停在所述文本内容中所述目标词的操作,以浮层或卡片的形式显示所述目标义项词对应的第二描述信息。
根据本公开的一个或多个实施例,在本公开提供的文本编辑方法中,在一些示例中的,所述将所述目标义项词与所述目标词之间建立链接关联之后,所述方法还包括:在针对所述文本内容中所述目标词的已添加内链进行编辑时,以浮层或卡片的形式显示所述目标义项词对应的第二描述信息、取消控件和更改控件;响应于作用在所述取消控件的触发操作,取消所述目标义项词与所述目标词之间的链接关联,以在针对所述文本内容中的所述目标词进行操作时,不显示所述目标义项词对应的第二描述信息;响应于作用在所述更改控件的触发操作,显示所述内链添加界面。
根据本公开的一个或多个实施例,在本公开提供的文本编辑方法中,在一些示例中的,所述将所述目标义项词与所述目标词之间建立链接关联之后,所述方法还包括:响应于点击所述文本内容中所述目标词的操作,从所述文本内容所在页面切换至目标页面,在所述目标页面显示所述目标义项词关联的第三描述信息,所述第三描述信息的信息量大于所述第二描述信息的信息量。
根据本公开的一个或多个实施例,在本公开提供的文本编辑方法中,在一些示例中的,所述义项词的第一描述信息在所述内链添加界面基于义项词分别与所述文本内容的相似度从高到低的顺序进行依次显示。
根据本公开的一个或多个实施例,本公开提供了一种文本编辑装置,包括:第一显示模块,用于在针对文本内容中的目标词添加内链时,显示内链添加界面,所述目标词为多义词;第一展示模块,用于在所述内链添加界面展示所述目标词对应的义项词的第一描述信息,所 述第一描述信息用于表征所述义项词区别于其它义项词的特征信息;第二展示模块,用于响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息;其中,所述目标义项词为所述义项词中的一个,所述第二描述信息的信息量大于所述第一描述信息的信息量。
根据本公开的一个或多个实施例,本公开提供了一种电子设备,包括:
一个或多个处理器;
存储器,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开提供的任一所述的文本编辑方法。
根据本公开的一个或多个实施例,本公开提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开提供的任一所述的文本编辑方法。
本公开实施例还提供了一种计算机程序产品,该计算机程序产品包括计算机程序或指令,该计算机程序或指令被处理器执行时实现如上所述的文本编辑方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (14)

  1. 一种文本编辑方法,其包括:
    在针对文本内容中的目标词添加内链时,显示内链添加界面,所述目标词为多义词;
    在所述内链添加界面展示所述目标词对应的义项词的第一描述信息,所述第一描述信息用于表征所述义项词区别于其它义项词的特征信息;
    响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息;其中,所述目标义项词为所述义项词中的一个,所述第二描述信息的信息量大于所述第一描述信息的信息量。
  2. 根据权利要求1所述的方法,其中,所述在所述内链添加界面展示所述目标词对应的义项词的第一描述信息之前,所述方法还包括:
    根据所述目标词在所述文本内容中的位置,对所述目标词的上下文进行语义分析,获得语义结果;
    从预设数据库检索与所述目标词存在对应关系的候选义项词;
    根据所述语义结果、所述候选义项词的语义以及所述候选义项词的历史浏览量从所述候选义项词中确定第一数量的义项词;
    将所述第一数量的义项词中第二数量的义项词确定为所述目标词对应的义项词,其中,所述第一数量大于所述第二数量。
  3. 根据权利要求1所述的方法,其中,所述在所述内链添加界面展示所述目标词对应的义项词的第一描述信息之前,所述方法还包括:
    以所述目标词为搜索关键词,获取所述目标词对应的多个百科内容;
    通过预设规则从所述多个百科内容中提取所述目标词对应的义项词的第一描述信息和/或第二描述信息。
  4. 根据权利要求3所述的方法,其中,所述通过预设规则从所述多个百科内容中提取所述目标词对应的义项词的第一描述信息和/或第二描述信息,包括:
    将显示在所述多个百科内容中目标百科内容第一预设百科模块的信息确定为对应义项词的第一描述信息;
    和/或,将显示在所述目标百科内容第二预设百科模块的信息确定为所述对应义项词的第二描述信息;
    或者,分别从显示在所述目标百科内容不同百科模块的信息中提取子信息,基于提取的子信息进行拼接获得所述对应义项词的第一描述信息和/或第二描述信息,其中,所述第二描述信息包括所述第一描述信息,所述第一描述信息包括的子信息量少于所述第二描述信息包括的子信息量。
  5. 根据权利要求1所述的方法,其中,所述响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息,包括:
    响应于将鼠标指针悬停在所述目标义项词的第一描述信息的操作,在所述内链添加界面叠加以浮层或卡片的形式显示所述目标义项词的第二描述信息,其中,所述浮层或卡片与所述内链添加界面的叠加区域与所述义项词的第一描述信息所在区域为不同的区域。
  6. 根据权利要求5所述的方法,其中,在所述内链添加界面还展示有所述目标词和添加控件;
    所述方法还包括:
    响应于作用在所述添加控件的触发操作,将所述目标义项词与所述目标词之间建立链接关联,以在针对所述文本内容中的所述目标词进行操作时,显示所述目标义项词对应的第二描述信息。
  7. 根据权利要求6所述的方法,其中,所述将所述目标义项词与所述目标词之间建立链接关联之后,所述目标词在所述文本内容中区别于其它词进行显示,以提示所述目标词为添加有内链的词;
    所述方法还包括:
    响应于鼠标指针悬停在所述文本内容中所述目标词的操作,以浮层或卡片的形式显示所述目标义项词对应的第二描述信息。
  8. 根据权利要求6所述的方法,其中,所述将所述目标义项词与所述目标词之间建立链接关联之后,所述方法还包括:
    在针对所述文本内容中所述目标词的已添加内链进行编辑时,以浮层或卡片的形式显示所述目标义项词对应的第二描述信息、取消控件和更改控件;
    响应于作用在所述取消控件的触发操作,取消所述目标义项词与所述目标词之间的链接关联,以在针对所述文本内容中的所述目标词进行操作时,不显示所述目标义项词对应的第二描述信息;
    响应于作用在所述更改控件的触发操作,显示所述内链添加界面。
  9. 根据权利要求6所述的方法,其中,所述将所述目标义项词与所述目标词之间建立链接关联之后,所述方法还包括:
    响应于点击所述文本内容中所述目标词的操作,从所述文本内容所在页面切换至目标页面,在所述目标页面显示所述目标义项词关联的第三描述信息,所述第三描述信息的信息量大于所述第二描述信息的信息量。
  10. 根据权利要求1所述的方法,其中,所述义项词的第一描述信息在所述内链添加界面基于义项词分别与所述文本内容的相似度从高到低的顺序进行依次显示。
  11. 一种文本编辑装置,其包括:
    第一显示模块,用于在针对文本内容中的目标词添加内链时,显示内链添加界面,所述目标词为多义词;
    第一展示模块,用于在所述内链添加界面展示所述目标词对应的义项词的第一描述信息,所述第一描述信息用于表征所述义项词区别于其它义项词的特征信息;
    第二展示模块,用于响应于针对目标义项词的触发操作,在所述内链添加界面上展示所述目标义项词的第二描述信息;其中,所述目标义项词为所述义项词中的一个,所述第二描述信息的信息量大于所述第一描述信息的信息量。
  12. 一种电子设备,其中,所述电子设备包括:
    一个或多个处理器;
    存储装置,用于存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-10中任一项所述的方法。
  13. 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-10中任一项所述的方法。
  14. 一种计算机程序产品,其中,该计算机程序产品包括计算机程序或指令,该计算机程序或指令被处理器执行时实现如上权利要求1-10中任一项所述的文本编辑方法。
PCT/CN2023/080082 2022-03-18 2023-03-07 一种文本编辑方法、装置、电子设备和存储介质 WO2023174101A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210269588.5 2022-03-18
CN202210269588.5A CN114757146A (zh) 2022-03-18 2022-03-18 一种文本编辑方法、装置、电子设备和存储介质

Publications (1)

Publication Number Publication Date
WO2023174101A1 true WO2023174101A1 (zh) 2023-09-21

Family

ID=82327731

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/080082 WO2023174101A1 (zh) 2022-03-18 2023-03-07 一种文本编辑方法、装置、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN114757146A (zh)
WO (1) WO2023174101A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114757146A (zh) * 2022-03-18 2022-07-15 北京字节跳动网络技术有限公司 一种文本编辑方法、装置、电子设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314454A (zh) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 自动添加内链的方法及系统
US20150046783A1 (en) * 2013-08-12 2015-02-12 Kobo Incorporated Presenting an aggregation of annotated terms in ebook
CN112507715A (zh) * 2020-11-30 2021-03-16 北京百度网讯科技有限公司 确定实体之间关联关系的方法、装置、设备和存储介质
CN113111647A (zh) * 2021-04-06 2021-07-13 北京字跳网络技术有限公司 信息的处理方法、装置、终端和存储介质
CN114757146A (zh) * 2022-03-18 2022-07-15 北京字节跳动网络技术有限公司 一种文本编辑方法、装置、电子设备和存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110929507B (zh) * 2018-08-31 2023-07-21 中国移动通信有限公司研究院 一种文本信息处理的方法、装置及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314454A (zh) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 自动添加内链的方法及系统
US20150046783A1 (en) * 2013-08-12 2015-02-12 Kobo Incorporated Presenting an aggregation of annotated terms in ebook
CN112507715A (zh) * 2020-11-30 2021-03-16 北京百度网讯科技有限公司 确定实体之间关联关系的方法、装置、设备和存储介质
CN113111647A (zh) * 2021-04-06 2021-07-13 北京字跳网络技术有限公司 信息的处理方法、装置、终端和存储介质
CN114757146A (zh) * 2022-03-18 2022-07-15 北京字节跳动网络技术有限公司 一种文本编辑方法、装置、电子设备和存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "How to add internal links to Baidu Encyclopedia - Baidu Experience", 22 December 2014 (2014-12-22), XP093091051, Retrieved from the Internet <URL:https://jingyan.baidu.com/article/6079ad0e8aa99528ff86db3d.html> *

Also Published As

Publication number Publication date
CN114757146A (zh) 2022-07-15

Similar Documents

Publication Publication Date Title
WO2020247282A1 (en) User interface for machine language model creation
US9519703B2 (en) Refining search results for a compound search query
US10845950B2 (en) Web browser extension
US10083004B2 (en) Using voice-based web navigation to conserve cellular data
US10970324B2 (en) System for generation of automated response follow-up
US11526575B2 (en) Web browser with enhanced history classification
US11645450B2 (en) Annotation editor with graph
WO2023279843A1 (zh) 内容搜索方法、装置、设备和存储介质
US10229187B2 (en) System for determination of automated response follow-up
WO2022247562A1 (zh) 多模态数据检索方法、装置、介质及电子设备
WO2023240943A1 (zh) 生成数字人的方法、模型的训练方法、装置、设备和介质
WO2023174101A1 (zh) 一种文本编辑方法、装置、电子设备和存储介质
WO2020242570A1 (en) A proximity information retrieval boost method for medical knowledge question answering systems
WO2021190129A1 (zh) 页面处理方法、装置、电子设备及计算机可读存储介质
WO2023016349A1 (zh) 一种文本输入方法、装置、电子设备和存储介质
WO2022184034A1 (zh) 一种文档处理方法、装置、设备和介质
RU2654789C2 (ru) Способ (варианты) и электронное устройство (варианты) обработки речевого запроса пользователя
US20190347068A1 (en) Personal history recall
US20190227634A1 (en) Contextual gesture-based image searching
WO2022161122A1 (zh) 一种会议纪要的处理方法、装置、设备及介质
WO2024001578A1 (zh) 书籍信息处理方法、装置、设备和存储介质
WO2016204391A1 (ko) 검색 서비스 제공 장치, 방법, 및 컴퓨터 프로그램
WO2022184013A1 (zh) 一种文档的编辑方法、装置、设备及存储介质
US11748436B2 (en) Web smart exploration and management in browser
US11379507B2 (en) Enhanced item development using automated knowledgebase search

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

Country of ref document: EP

Kind code of ref document: A1