Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment," another embodiment "means" at least one additional embodiment, "and" some embodiments "means" at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
In order to solve the problem of untimely creation of encyclopedia vocabulary entries in the related art, an embodiment of the present disclosure provides a processing method of encyclopedia vocabulary entries, and the method is described below with reference to specific embodiments.
Fig. 1 is a flow chart of a processing method of encyclopedia vocabulary entries provided in an embodiment of the present disclosure, where the method may be performed by a processing apparatus of encyclopedia vocabulary entries, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 1, the method includes:
and step 101, displaying a target content page.
The target content page may be any page including text content, in this embodiment of the present disclosure, an instant messaging session page or a cloud document page is taken as an example, that is, the target content page may include text content in an instant messaging session or text content in a cloud document, where the text content in the instant messaging session may be text content in a process that a user chat with another user, and the cloud document may be a document that can be accessed through a browser.
Specifically, the processing device of the encyclopedia entry may display the target content page in response to a display trigger operation of the user on the target content page.
Step 102, highlighting target words in the target content page.
The target words may be words in the target content page, where encyclopedia entries may need to be created, may be mined from a plurality of words included in text content in the target content page, and the number of target words may be one or more, and is not particularly limited.
After the target content page is displayed, the processing device of the encyclopedic entry can highlight the target word in the target content page so as to realize the prompt of creating the encyclopedic entry, and a user can quickly know that the target word has the requirement of creating the encyclopedic entry. Here, the target word highlighting may be to display the target word in a first style, which is different from a display style of other text in the text content of the target content page, and may specifically include various styles, for example, the first style may be highlighting, bolding, adding an underline, and the like.
The target content page in the embodiment of the disclosure takes an instant messaging session page or a cloud document page as an example, that is, if a text content includes a target word that may need to create encyclopedia entries in the process of chatting between a user and other users, a highlighting operation may be performed on the target word, or if the text content of a cloud document includes a target word that may need to create encyclopedia entries when the user browses a certain cloud document, a highlighting operation may also be performed on the target word.
And step 103, responding to the triggering operation of the target word, displaying a term editing interface, and creating the encyclopedic term of the target word based on the term editing interface.
The triggering operation may include a gesture control operation (e.g., click, long press, double click, etc.), a voice control operation, or an expression control operation, etc., to which the disclosed embodiments are not limited. The entry editing interface can be an interface for editing the content of the encyclopedia entry, the editing operation can comprise operations such as adding, deleting and modifying, the entry editing interface can comprise a plurality of editing controls, the editing controls can be functional controls for rapidly editing the content, and a user can rapidly realize creation of the encyclopedia entry through the editing controls.
An encyclopedia may be a particular representation of an entry, a basic unit that forms an encyclopedia, where the encyclopedia may be a network encyclopedia that uses a network as a carrier. In the embodiment of the disclosure, the encyclopedic entry may include at least one of name information, paraphrasing information and resource information, the name information may include information such as an entry name, an alias, a full name, and short names of a word, the entry name may be the same as the word, the paraphrasing information may be an explanatory description of content corresponding to the entry, may be composed of text and/or image, and the resource information may include a link of resources such as documents, pictures, videos related to the entry, and the resource type may include multiple types, and is not limited specifically.
Specifically, the processing device of the encyclopedic vocabulary entry can display a vocabulary entry editing interface in response to a triggering operation on the target word, and can create the encyclopedic vocabulary entry of the target word in response to operation of a plurality of editing controls included in the vocabulary entry editing interface by a user.
When the entry editing interface is displayed, the entry creating entry may be displayed directly, or the entry editing interface may be displayed in response to a trigger operation of the entry creating entry. Optionally, an ignore control may be displayed while the entry creation entry is displayed, and in response to a trigger operation of the ignore control, the highlighting of the target word is canceled, the user is not prompted to create an encyclopedic entry, and the entry creation entry and the ignore control are closed. Through the setting of the neglect control, when a word is determined to be unnecessary to be interpreted manually, the highlighting of the word can be canceled, namely the prompt of creating encyclopedia entries is closed, so that the subsequent interference to other users is avoided, and the method is more in line with the actual scene.
Exemplary, fig. 2 is a schematic diagram of a target content page provided in an embodiment of the present disclosure, as shown in fig. 2, in which an exemplary target content page 200 is illustrated, the text content of the target content page 200 includes 4 target words, the 4 target words are displayed with an underlined display style to implement highlighting, and distinguishing from other text content, a user performs a triggering operation on a of the target words, may directly display an entry editing interface in fig. 3, may also display an entry creation entry 203 and an ignore control 204 in the interface 202, and the entry creation entry 203 displays a word "supplement paraphrasing" for prompting the user, after the user performs the triggering operation on the entry creation entry 203, the entry editing interface in fig. 3 may be displayed, and after the user performs the triggering operation on the ignore control 204, the underlined of the target word a may be canceled to cancel highlighting, close the prompt, and close the interface 202.
Illustratively, fig. 3 is a schematic diagram of an entry editing interface provided by an embodiment of the disclosure, as shown in fig. 3, in which an exemplary entry editing interface 300 is illustrated, where multiple editing controls may be included in the entry editing interface, for example, adding aliases or holonomies, inputting paraphrasing, adding related contacts, adding related documents, canceling, completing editing, and the like in the drawing, and creation of encyclopedic entries may be implemented by operating the multiple editing controls.
In some embodiments, presenting the entry editing interface may include presenting the draft entry in the entry editing interface if the target word has a corresponding draft entry. Optionally, creating the encyclopedic vocabulary entry of the target word based on the vocabulary entry editing interface includes creating the encyclopedic vocabulary entry of the target word in response to an editing operation of the draft vocabulary entry in the vocabulary entry editing interface.
Where a draft term is understood to be an encyclopedia term that has been created in history but has not been created successfully, i.e., if the content of an encyclopedia term of a target word has been edited but has not been created successfully for reasons such as auditing, the edited content is stored as a draft term.
When the processing device of the encyclopedic vocabulary entry displays the vocabulary entry editing interface, whether the target vocabulary entry exists or not can be judged first, if yes, the draft vocabulary entry can be displayed while the vocabulary entry editing interface is displayed, the content of the draft vocabulary entry supports editing operation, then editing operations such as adding, deleting and modifying the draft vocabulary entry by a user can be received, then the creation of the encyclopedic vocabulary entry can be completed by storing the edited draft vocabulary entry, or the edited draft vocabulary entry is submitted, and the encyclopedic vocabulary entry of the target vocabulary is obtained after the subsequent examination passes.
By way of example, fig. 4 is a schematic diagram of another entry editing interface provided in an embodiment of the present disclosure, as shown in fig. 4, in which an entry editing interface 400 including a draft entry is shown, name information, paraphrase information, resource information and the like have been edited in the entry editing interface 400, and by showing "in audit, the user is reminded of being a draft entry currently by a general staff" and can perform operations such as adding, deleting, modifying and the like on contents in the draft entry in the entry editing interface 400, so as to complete creation of encyclopedic entries.
In the scheme, when one word has a draft vocabulary entry edited in history, the draft vocabulary entry can be edited continuously on the basis of the draft vocabulary entry, so that the creation of the encyclopedic vocabulary entry can be completed more quickly on the basis of the history.
In other embodiments, presenting the entry editing interface may include determining recommended paraphrasing information corresponding to the target word and presenting the recommended paraphrasing information corresponding to the target word in the entry editing interface. Optionally, creating the encyclopedic entry of the target word based on the entry editing interface may include creating the encyclopedic entry of the target word in response to an editing operation of an editing control of the entry editing interface and recommended paraphrase information of the target word.
Wherein the recommended paraphrasing information may be most likely paraphrasing information corresponding to one term determined by an algorithm, and the recommended paraphrasing information may be selected and determined from a plurality of possible paraphrasing information.
When the processing device of the encyclopedic vocabulary entry displays the vocabulary entry editing interface, the recommended paraphrasing information corresponding to the target vocabulary entry can be determined first, and the recommended paraphrasing information is displayed at the same time when the vocabulary entry editing interface is displayed, and as the recommended paraphrasing information supports editing operations, editing operations such as modification, deletion and the like of the recommended paraphrasing information by a user can be received later, the paraphrasing information of the encyclopedic vocabulary entry is generated, and other contents of the encyclopedic vocabulary entry are generated in response to the editing operations of a plurality of editing controls by the user, and then the creation of the encyclopedic vocabulary entry can be completed after the edited contents are stored, or the encyclopedic vocabulary entry of the target vocabulary is obtained after the edited contents pass the subsequent examination.
For example, fig. 5 is a schematic diagram of a term editing interface provided in an embodiment of the present disclosure, as shown in fig. 5, which illustrates a term editing interface 500 including recommended paraphrasing information 501, where the recommended paraphrasing information 501 may be used by clicking, and may also support modification, deletion, and so on.
Optionally, determining the recommended paraphrase information corresponding to the target word includes inputting the target word and the context information associated with the target word into a pre-constructed paraphrase model, extracting a subject and a paraphrase in the context information, and generating the recommended paraphrase information corresponding to the target word based on the paraphrase corresponding to the subject if the subject is matched with the target word.
The context information associated with the target word may be a paragraph of the target text in which the target word is located. The paraphrasing model may be a model for extracting possible subjects in a piece of text and paraphrasing the subjects, the model may be a deep learning model, and the subjects may be a word to be interpreted. The paraphrase model may include a paraphrase body model for extracting a possible body in a piece of text and a paraphrase decision model for extracting a possible paraphrase in a piece of text, which are used in conjunction with the body and the paraphrase that can be interpreted when the piece of text is a text that interprets a word, which may be a paragraph of text.
When determining the recommended paraphrase information corresponding to the target word, the processing device of the encyclopedic entry can input the target word and the context information related to the target word into the paraphrase model, output a main body and a paraphrase included in the context information, then match the main body with the target word, the specific matching process can judge whether the similarity of the main body and the target word is greater than a similarity threshold value, if so, the matching is successful, the paraphrase corresponding to the main body is determined to be the recommended paraphrase information corresponding to the target word, and if the similarity of the main body and the target word is not greater than the similarity threshold value, the matching is failed, and then the recommended paraphrase information of the target word can be determined in other modes.
Optionally, determining the recommended paraphrase information corresponding to the target word may include performing text similarity matching on the target word and the target text paragraph in which the target word is located in a paraphrase library, and taking the paraphrase with the maximum text similarity as the recommended paraphrase information corresponding to the target word.
Wherein the paraphrasing library may be a database including a plurality of paraphrases, each paraphrasing may be a specific explanation of the content of one term, the paraphrasing library may include a plurality of types of paraphrasing libraries, for example, may include a recommended paraphrasing library, a mined paraphrasing library, etc., and the paraphrasing stored in different paraphrasing libraries may be different.
When determining the recommended paraphrasing information corresponding to the target word, the processing device of the encyclopedic entry can match the text similarity of the target word and the target text paragraph in which the target word is positioned in the paraphrasing library, the specific matching mode can be ES text fuzzy matching, a plurality of candidate paraphrases with the text similarity larger than a similarity threshold value can be recalled from the paraphrasing library through matching, then the recalled plurality of candidate paraphrases can be scored through a disambiguation model, whether the correct paraphrasing of the target word in the context is determined, and the candidate paraphrasing with the highest ranking is determined as the recommended paraphrasing information of the target word after the plurality of candidate paraphrasing with the same semantic meaning is removed through a reordering module.
It can be understood that the above-mentioned manner of determining the recommended paraphrase information corresponding to the target word through the paraphrase model and the two matching ways in the paraphrase library can be used alone or in combination according to actual requirements, which is not particularly limited.
In the scheme, the recommended paraphrase information is provided when the encyclopedic entry is created, and the paraphrase information can be continuously edited or directly selected on the basis of the recommended paraphrase information, so that the creation efficiency of the encyclopedic entry is effectively improved. And when the recommended paraphrase information of the target word is determined, the target word can be determined through two modes of model and matching in a paraphrase library, so that the accuracy and the reliability of the determination of the recommended paraphrase information are ensured.
The processing scheme of encyclopedic vocabulary entries provided by the embodiment of the disclosure comprises the steps of displaying a target content page, highlighting target words in the target content page, responding to triggering operation of the target words, displaying a vocabulary entry editing interface, and creating encyclopedic vocabulary entries of the target words based on the vocabulary entry editing interface. By adopting the technical scheme, the target word which is likely to be the term is highlighted in the page, then the term editing interface is displayed when the triggering operation is detected, the encyclopedia term of the target word can be created based on the term editing interface, the prompt for creating the new term is increased by mining and highlighting the term which is likely to be the term, the user can quickly acquire the requirement for creating the new term under the prompt, the encyclopedia term can be quickly created by guiding through the interactive interface, the effect of timely creating the new term is achieved, the efficiency of creating the encyclopedia term is improved, and the efficiency of acquiring information by the user is further improved.
In some embodiments, before displaying the entry editing interface, the processing method of the encyclopedic entry further comprises the steps of matching the target word in an encyclopedic entry library, judging whether the target word has a corresponding encyclopedic entry according to a matching result, wherein displaying the entry editing interface comprises the steps of determining that the target word does not have the corresponding encyclopedic entry if the matching result is that the matching fails, and executing the displayed entry editing interface.
Wherein the encyclopedia entry library may be a pre-created database comprising a plurality of encyclopedia entries.
After the processing device of the encyclopedic entry highlights the target word in the target content page, the triggering operation of the user can be detected, and after the triggering operation of the user on one target word is detected, the encyclopedic entry created by history may exist in the target word corresponding to the triggering operation, and at this time, whether the corresponding encyclopedic entry exists in the target word corresponding to the triggering operation can be judged. When judging whether the target word has the corresponding encyclopedic entry, the target word can be matched in the encyclopedic entry, if the target word has the encyclopedic entry with the matching degree larger than the matching degree threshold, the matching is successful, the corresponding encyclopedic entry is determined to exist in the target word, and if the target word does not have the encyclopedic entry with the matching degree larger than the matching degree threshold, the matching fails, and the target word is determined to not have the corresponding encyclopedic entry. By matching, whether the target word triggered by the user has the corresponding encyclopedia entry or not can be rapidly determined, and the encyclopedia entry can be rapidly guided and created.
In some embodiments, after judging whether the target word has the corresponding encyclopedia entry according to the matching result, the processing method of the encyclopedia entry further comprises determining that the target word has the corresponding encyclopedia entry and displaying the encyclopedia entry of the target word if the matching result is that the matching is successful. That is, when the processing device of the encyclopedic vocabulary entry determines that the encyclopedic vocabulary entry with the matching degree being greater than the matching degree threshold exists, the matching is successful, and the corresponding encyclopedic vocabulary entry exists in the target word, the encyclopedic vocabulary entry can be directly displayed to the user, so that the user can know the content of the current encyclopedic vocabulary entry.
In some embodiments, the processing method of encyclopedia entries may further include highlighting the created word in response to the target content page having the created word, wherein the created word has a corresponding encyclopedia entry. Optionally, the created word is displayed in a different style than the target word.
Wherein, the created words may be words in which the corresponding encyclopedia entries have been created, and the number of the created words may be one or more, and is not particularly limited.
After displaying the target content page, if the text content in the target content page includes a created word, the created word may be highlighted, and since the target word is also highlighted, the display style of the created word may be different from the target word, the target word may be displayed in a first style, and the created word may be displayed in a second style, where the first style is different from the second style, for example, when the first style is highlighted, the second style may be displayed in a red font.
In the scheme, the created word with the encyclopedic entry in the page is also highlighted, so that the user can be reminded of the encyclopedic entry, the user can avoid the created word when creating the encyclopedic entry, and the existing encyclopedic entry is checked when the user needs to be more in line with the actual application scene of the user, and the guiding creation and display effects of the encyclopedic entry are improved.
In some embodiments, highlighting target words in a target content page includes determining entity words in text content in the target content page, determining target words in the entity words, and displaying the target words in a display style that is distinct from other text in the text content.
Wherein the entity words may be words having a specific meaning, for example, the entity words may include a person name, a place name, an organization name, a proper noun, and the like.
The processing device of encyclopedia vocabulary entries can identify text content in a target content page, determine a plurality of entity words therein, specifically identify the entity words in the target content page in a plurality of ways, for example, a named entity identification model, a regular expression, a high-quality vocabulary library and the like, specifically identify the entity words of a predefined entity type in the text content in the target content page through the named entity identification (NAMED ENTITY identification, NER) model, for example, product software, organization, technical concepts, indexes and the like, identify abbreviations in the text content in the target content page through the regular expression as entity words, match the text content in the target content page by utilizing a pre-built high-quality vocabulary library to obtain a plurality of corresponding entity words, and exclude specific areas in the text content in the target content page from identification, wherein the specific areas do not need to be identified, for example, the specific areas can be areas where links, file paths and the like are located, so that error recall is reduced, and the accuracy of identification is improved. Then, determining a target word in the plurality of entity words, and displaying the target word in a first style, wherein the first style is different from the display style of other texts in the text content, and specifically can comprise various styles, for example, the first style can be highlighted, bolded, underlined and the like.
Optionally, determining the target words in the plurality of entity words may include extracting feature information of each entity word, and filtering the entity words according to the feature information of each entity word to obtain target words, where the number of target words is at least one. Optionally, filtering the entity words according to the characteristic information of each entity word to obtain target words, wherein the filtering comprises the steps of inputting the characteristic information of each entity word into a pre-constructed filtering model for filtering, and determining the filtered entity words as the target words, wherein the filtering model comprises at least one of a value filtering model, a high-frequency filtering model and a rule filtering model.
The feature information may include various features, in this embodiment of the present disclosure, the feature information includes at least one of a vocabulary feature, a word frequency feature, a constituent feature, and a context feature, where the vocabulary feature indicates whether an entity word can implement prefix matching and/or suffix matching in a preset word stock, the preset word stock may include a plurality of general words that do not need to be interpreted, for example, an increasing rate is a general word, prefix matching and/or suffix matching is performed on one entity word and each general word in the preset word stock, a matching result is determined as a vocabulary feature of the entity word, and the matching result may be capable of implementing prefix matching and/or suffix matching, or may not be capable of implementing both prefix matching and/or suffix matching. The word frequency characteristic represents the word frequency of the entity word and/or the quantity of associated information of the entity word, and the associated information of the entity word can comprise associated users, associated documents, associated pictures, associated communication groups and the like. Constituent features may refer to internal structural features of a physical word, and may include, for example, length, morphology, character constituent components, and the like. The context feature may be a feature related to acquiring context by analyzing the context information of an entity word in the text, and may include, for example, a language, a context length, whether in a specific area, etc., which may be an area that does not need to be identified.
The filtering model may be a preset model for filtering a plurality of entity words, for example, the filtering model may be a deep learning model. The filtering model can comprise at least one of a value filtering model, a high-frequency filtering model and a rule filtering model, wherein the value filtering model can be used for determining the value score of each entity word based on the characteristic information of the entity word and filtering the entity word with the value score lower than a preset score, the high-frequency filtering model can be used for filtering high-frequency irrelevant words in each entity word to avoid interference, and the rule filtering model can be used for filtering a plurality of entity words through a preset rule which supports dynamic update.
When determining the target word in the plurality of entity words, the processing device of the encyclopedic entry can extract the characteristic information of each entity word through the characteristic extraction model, then can input the characteristic information of each entity word into the filtering model for filtering, obtain at least one filtered entity word, and determine the at least one filtered entity word as the target word.
In the scheme, through mining text content in the target content page, entity words with certain value can be extracted to serve as target words possibly needing to create encyclopedia entries, and words with high accuracy and usability can be obtained through mining in the detection process through combination of various algorithm models.
An exemplary embodiment of the present disclosure is shown in fig. 6, which is a schematic flow chart of another processing method of encyclopedic vocabulary entries, where the processing process of encyclopedic vocabulary entries is shown, and specifically may include highlighting a target word, clicking to display a vocabulary entry creation interface, if neglected, highlighting to disappear, editing the vocabulary entry creation interface, submitting the vocabulary entry creation interface after completion, if exempted, obtaining encyclopedic vocabulary entries of the target word, completing creation, and if not exempted, obtaining draft vocabulary entries of the target word.
In the scheme, when the target content page with the document content is displayed, at least one target word can be mined in real time, the at least one target word is highlighted to increase the prompt for creating the entry, and the entry editing interface for guiding the creation can be displayed after the target word is triggered. The method comprises the steps of providing a history of creation of a vocabulary entry, showing draft entries if the history of creation of the vocabulary entry is submitted, showing only the encyclopedia entries after the creation is successful if the vocabulary entry is created successfully, prompting creation of the user to the user if clicking of the user is omitted, namely highlighting target words, performing only an error correction flow if the creation of the encyclopedia entries and the error correction conflict, filling the target words into names of the vocabulary entries, supporting modification, supporting addition of aliases, holonomies or abbreviations, supporting addition of release information and resource information, showing recommended release information by the vocabulary entry editing interface, supporting one-key clearing, editing the vocabulary entry creation interface, submitting to realize creation of the encyclopedia entries after completion, and performing no longer guidance on creation of the encyclopedia entries of the target words to the user by clicking of the neglect control.
According to the scheme, the words which can be created as the vocabulary entries are mined through the algorithm, the creation is guided, the Ji Xinxi difference is pulled, the vocabulary entry creation prompt and the creation guidance are provided under various scenes of the document content, the effect of timely creating new vocabulary entries is achieved, the efficiency of the creation of encyclopedic vocabulary entries is improved, the quantity of encyclopedic vocabulary entries is improved, and further the efficiency of information acquisition of users is improved and communication efficiency is promoted.
Fig. 7 is a schematic structural diagram of an encyclopedia entry processing apparatus according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 7, the apparatus includes:
A first display module 701, configured to display a target content page;
a second display module 702, configured to highlight a target word in the target content page;
The creating module 703 is configured to respond to a triggering operation on the target word, show a term editing interface, and create an encyclopedic term of the target word based on the term editing interface.
Optionally, the second display module 702 includes:
the extraction unit is used for determining entity words in text contents in the target content page;
And the screening display unit is used for determining target words in the entity words and displaying the target words in a display mode which is different from other texts in the text content.
Optionally, the screening display unit is configured to:
Extracting characteristic information of each entity word;
And filtering the entity words according to the characteristic information of each entity word to obtain the target words, wherein the number of the target words is at least one.
Optionally, the feature information includes at least one of a vocabulary feature, a word frequency feature, a constituent feature, and a context feature;
The word list features represent whether the entity words can realize prefix matching and/or suffix matching in a preset word stock, and the word frequency features represent word frequencies of the entity words and/or the quantity of associated information of the entity words.
Optionally, the screening display unit is configured to:
and inputting the characteristic information of each entity word into a pre-constructed filtering model for filtering, and determining the filtered entity word as the target word.
Optionally, the filtering model includes at least one of a value filtering model, a high frequency filtering model, and a rule filtering model.
Optionally, the device further includes a judging module, configured to:
Before displaying an entry editing interface, matching the target word in an encyclopedia entry library, and judging whether the target word has a corresponding encyclopedia entry according to a matching result;
wherein, the creation module 703 is configured to:
And if the matching result is that the matching fails, determining that the target word does not have the corresponding encyclopedia entry, and executing the displayed entry editing interface.
Optionally, the device further includes an entry display module, configured to:
And judging whether the target word has the corresponding encyclopedic entry according to the matching result, if the matching result is successful, determining that the target word has the corresponding encyclopedic entry, and displaying the encyclopedic entry of the target word.
Optionally, the creation module 703 includes a first display unit for:
and if the target word has a corresponding draft vocabulary entry, displaying the draft vocabulary entry in the vocabulary entry editing interface.
Optionally, the creating module 703 includes a first editing unit, configured to:
And in response to editing operations on the draft vocabulary entries in the vocabulary entry editing interface, creating encyclopedic vocabulary entries of the target words.
Optionally, the creation module 703 includes a second display unit for:
And determining the recommended paraphrasing information corresponding to the target word, and displaying the recommended paraphrasing information corresponding to the target word in the entry editing interface.
Optionally, the second display unit includes a first determining subunit configured to:
inputting the target word and the context information associated with the target word into a pre-constructed paraphrase model, and extracting a main body and a paraphrase in the context information;
and if the main body is matched with the target word, generating recommended paraphrasing information corresponding to the target word based on the paraphrasing corresponding to the main body.
Optionally, the second display unit includes a second determining subunit configured to:
And carrying out text similarity matching on the target word and the target text paragraph in which the target word is positioned in a paraphrasing library, and taking the paraphrasing with the maximum text similarity as recommended paraphrasing information corresponding to the target word.
Optionally, the creation module 703 includes a second editing unit, configured to:
and creating encyclopedic vocabulary entries of the target word in response to editing operations of editing controls of the vocabulary entry editing interface and recommended paraphrasing information of the target word.
Optionally, the device further includes a third display module, configured to:
In response to the target content page having a created word, highlighting the created word, wherein the created word has a corresponding encyclopedia entry.
Optionally, the display style of the created word is different from the target word.
Optionally, the encyclopedia entry includes at least one of name information, paraphrase information, and resource information.
Optionally, the target content page includes text content in an instant messaging session or text content in a cloud document.
The processing device for encyclopedic vocabulary entries provided by the embodiment of the disclosure can execute the processing method for encyclopedic vocabulary entries provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
The disclosed embodiments also provide a computer program product comprising a computer program/instruction which, when executed by a processor, implements the method of processing encyclopedia entries provided by any of the embodiments of the present disclosure.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. Referring now in particular to fig. 8, a schematic diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 800 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 8 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 8, the electronic device 800 may include a processing means (e.g., a central processor, a graphics processor, etc.) 801, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
In general, devices may be connected to I/O interface 805 including input devices 806 such as a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc., output devices 807 including a Liquid Crystal Display (LCD), speaker, vibrator, etc., storage devices 808 including magnetic tape, hard disk, etc., and communication devices 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 shows an electronic device 800 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 809, or installed from storage device 808, or installed from ROM 802. When executed by the processing device 801, the computer program performs the functions defined above in the processing method of encyclopedia entries of the embodiments of the present disclosure.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport 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 appropriate medium, including but not limited to electrical wiring, fiber optic cable, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("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 developed networks.
The computer readable medium may be included in the electronic device or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to display a target content page, highlight a target word in the target content page, expose a term editing interface in response to a triggering operation for the target word, and create an encyclopedia term of the target word based on the term editing interface.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language 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. In the case of a remote computer, the remote computer may 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 may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic that may be used include Field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems-on-a-chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can 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. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type of information, the scope of use, the use scenario, etc. related to the present disclosure in an appropriate manner according to relevant legal regulations.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.