CN111880696B - Encyclopedic-based data processing method and device - Google Patents

Encyclopedic-based data processing method and device Download PDF

Info

Publication number
CN111880696B
CN111880696B CN202010790000.1A CN202010790000A CN111880696B CN 111880696 B CN111880696 B CN 111880696B CN 202010790000 A CN202010790000 A CN 202010790000A CN 111880696 B CN111880696 B CN 111880696B
Authority
CN
China
Prior art keywords
content
editing
language
edited
encyclopedia
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010790000.1A
Other languages
Chinese (zh)
Other versions
CN111880696A (en
Inventor
吴迪
刘玉璇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN202010790000.1A priority Critical patent/CN111880696B/en
Publication of CN111880696A publication Critical patent/CN111880696A/en
Application granted granted Critical
Publication of CN111880696B publication Critical patent/CN111880696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An embodiment of the present application provides an encyclopedic-based data processing method, which may be executed by a first device, and includes: the method comprises the steps of obtaining an encyclopedia entry to be edited, obtaining content matched with the encyclopedia entry to be edited, and displaying the content in an editing interface of the encyclopedia entry to be edited. The displayed content may include a plurality of contents, and the first content is any one of the plurality of contents. After the user triggers a selection operation on the first content, the first device may input a corresponding portion of the first content to an editing area of the editing interface in response to the selection operation on the first content. Therefore, by the aid of the method and the device, when the user needs to edit the encyclopedia content, the content matched with the encyclopedia entry to be edited can be displayed for the user, and if the user selects the first content, the corresponding part in the first content can be directly input into the editing area, so that the efficiency of editing the encyclopedia content by the user is improved.

Description

Encyclopedic-based data processing method and device
Technical Field
The present application relates to the field of data processing, and in particular, to an encyclopedia-based data processing method and apparatus.
Background
With the development of network technology, network encyclopedias have emerged. When a user needs to know the related content of a certain event, the network encyclopedia can be queried. In the network encyclopedia, the search keyword input by the user about the foregoing may also be referred to as an "encyclopedia entry". In addition, after the user knows the related content of a certain encyclopedia entry, the encyclopedia content corresponding to the encyclopedia entry can be written.
At present, when a user writes encyclopedia content, the user needs to manually input characters one by one in an editing area and/or insert pictures one by one, and the writing efficiency is low.
Disclosure of Invention
The technical problem to be solved by the application is how to improve the efficiency of writing encyclopedia content by a user, and provides a data processing method and device based on encyclopedia.
In a first aspect, an embodiment of the present application provides an encyclopedic-based data processing method, where the method includes:
acquiring encyclopedia entries to be edited;
acquiring content matched with the encyclopedia entry to be edited, and displaying the content in an editing interface of the encyclopedia entry to be edited, wherein the content comprises first content;
and responding to the selection operation of the first content, and inputting the corresponding part of the first content into an editing area of the editing interface.
In one implementation, the editing interface includes a plurality of editing regions therein, and the method further includes:
determining contents respectively corresponding to the editing areas in the first contents;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and respectively inputting the contents corresponding to the editing areas in the first contents into the editing areas corresponding to the contents.
In one implementation, the method further comprises:
responding to language selection operation, and acquiring a language corresponding to the language selection operation;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and inputting the corresponding part in the first content into the editing area according to the language corresponding to the language selection operation.
In one implementation, the method further comprises:
when the language corresponding to the first content is determined to be different from the language corresponding to the editing interface, translating the corresponding part in the first content, so that the translated language corresponding to the corresponding part in the first content is the same as the language corresponding to the editing interface;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
inputting the corresponding part of the translated first content into an editing area of the editing interface.
In one implementation, the obtaining the content matched with the encyclopedia entry includes:
and acquiring the content matched with the encyclopedia entry and the editing area currently edited by the user.
In one implementation, the inputting the corresponding portion of the first content into an editing area of the editing interface includes:
and inputting the corresponding part of the first content into an editing area currently edited by the user.
In a second aspect, an embodiment of the present application provides an encyclopedic-based data processing apparatus, including:
the first obtaining unit is used for obtaining encyclopedia entries to be edited;
the second acquisition unit is used for acquiring the content matched with the encyclopedia entry to be edited;
the display unit is used for displaying the content in an editing interface of the encyclopedia entry to be edited, wherein the content comprises first content;
the input unit is used for responding to the selection operation of the first content and inputting the corresponding part of the first content to an editing area of the editing interface.
In one implementation, the editing interface includes a plurality of editing regions therein, and the apparatus further includes:
a determining unit, configured to determine contents corresponding to the editing regions in the first content;
the input unit is used for:
and respectively inputting the contents corresponding to the editing areas in the first contents into the editing areas corresponding to the contents.
In one implementation, the apparatus further comprises:
a third obtaining unit, configured to obtain, in response to a language selection operation, a language corresponding to the language selection operation;
the input unit is used for:
and inputting the corresponding part in the first content into the editing area according to the language corresponding to the language selection operation.
In one implementation, the apparatus further comprises:
a translation unit, configured to, when it is determined that a language type corresponding to the first content is different from a language type corresponding to the editing interface, translate a corresponding portion of the first content, so that the translated language type corresponding to the corresponding portion of the first content is the same as the language type corresponding to the editing interface;
the input unit is used for:
inputting the corresponding part of the translated first content into an editing area of the editing interface.
In one implementation manner, the second obtaining unit is configured to:
and acquiring the content matched with the encyclopedia entry and the editing area currently edited by the user.
In one implementation, the input unit is configured to:
and inputting the corresponding part of the first content into an editing area currently edited by the user.
In a third aspect, an embodiment of the present application provides an encyclopedic-based data processing apparatus, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors include instructions for:
acquiring encyclopedia entries to be edited;
acquiring content matched with the encyclopedia entries to be edited, and displaying the content in an editing interface of the encyclopedia entries to be edited, wherein the content comprises first content;
and responding to the selection operation of the first content, and inputting the corresponding part of the first content into an editing area of the editing interface.
In one implementation, the editing interface includes a plurality of editing regions therein, and the operations further include:
determining contents respectively corresponding to the editing areas in the first contents;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and respectively inputting the contents corresponding to the editing areas in the first contents into the editing areas corresponding to the contents.
In one implementation, the operations further comprise:
responding to language selection operation, and acquiring a language corresponding to the language selection operation;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and inputting the corresponding part in the first content into the editing area according to the language corresponding to the language selection operation.
In one implementation, the operations further comprise:
when the language corresponding to the first content is determined to be different from the language corresponding to the editing interface, translating the corresponding part in the first content, so that the translated language corresponding to the corresponding part in the first content is the same as the language corresponding to the editing interface;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
inputting the corresponding part of the translated first content into an editing area of the editing interface.
In one implementation, the obtaining the content matched with the encyclopedia entry includes:
and acquiring the content matched with the encyclopedia entry and the editing area currently edited by the user.
In one implementation, the inputting the corresponding portion of the first content into an editing area of the editing interface includes:
and inputting the corresponding part in the first content to an editing area which is edited by the user currently.
In a fourth aspect, embodiments of the present application provide a computer-readable medium having instructions stored thereon, which, when executed by one or more processors, cause an apparatus to perform the method of any one of the above first aspects.
Compared with the prior art, the embodiment of the application has the following advantages:
an embodiment of the present application provides an encyclopedic-based data processing method, which may be executed by a first device, and the method includes: the method comprises the steps of obtaining an encyclopedia entry to be edited, obtaining content matched with the encyclopedia entry to be edited, and displaying the content in an editing interface of the encyclopedia entry to be edited. The displayed content may include a plurality of contents, and the first content is any one of the plurality of contents. After the user triggers a selection operation on the first content, the first device may input a corresponding portion of the first content to an editing area of the editing interface in response to the selection operation on the first content. Therefore, by the aid of the method and the device, when the user needs to edit the encyclopedia content, the content matched with the encyclopedia entry to be edited can be displayed for the user, and if the user selects the first content, the corresponding part in the first content can be directly input into the editing area, so that the efficiency of editing the encyclopedia content by the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of an encyclopedic-based data processing method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an encyclopedic-based data processing device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a client according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The inventor of the application finds that, at present, when a user writes encyclopedia content, the user needs to manually input characters one by one in an editing area and/or insert pictures one by one, and the writing efficiency is low.
The inventor of the application finds that with the development of network technology, the information in the network is more and more abundant, and the content matched with the encyclopedia entries written by the user currently may exist in the network. If the content matched with the encyclopedia entry currently written by the user can be directly input into the editing area of the editing interface, the efficiency of writing the encyclopedia content by the user can be effectively improved.
In view of this, the embodiments of the present application provide an encyclopedia-based data processing method, which can improve the efficiency of a user in editing encyclopedia content.
Various non-limiting embodiments of the present application are described in detail below with reference to the accompanying drawings.
Exemplary method
Referring to fig. 1, the figure is a schematic flowchart of an encyclopedia-based data processing method according to an embodiment of the present application. The encyclopedic-based data processing method provided in the embodiment of the present application may be executed by a first device, where the first device may be a mobile terminal device such as a smartphone and a tablet computer, or may be a terminal device such as a desktop computer, and the embodiment of the present application is not particularly limited.
The encyclopedia-based data processing method provided by the present embodiment can be realized, for example, by the following steps S101 to S103.
S101: and acquiring the encyclopedia entries to be edited.
In the embodiment of the application, a user can edit an encyclopedic entry in an editing interface of an encyclopedic, wherein editing the encyclopedic entry means editing encyclopedic content corresponding to the encyclopedic entry in the editing interface of the encyclopedic entry to be edited. The encyclopedia entries to be edited referred to herein refer to encyclopedia entries edited by a user in an editing interface. The editing of the encyclopedia content corresponding to the encyclopedia entry by the user may include two cases. In the first case, there is already encyclopedic content corresponding to the encyclopedic entry in the encyclopedic, and the user can modify the existing encyclopedic content in the editing interface of the encyclopedic entry. The second case is that there is no encyclopedic content corresponding to the encyclopedic entry in the encyclopedic at present, and the user can create a new encyclopedic entry and add encyclopedic content to the encyclopedic entry in the editing interface of the newly created encyclopedic entry.
S102: acquiring content matched with the encyclopedia entries to be edited, and displaying the content in an editing interface of the encyclopedia entries to be edited, wherein the content comprises first content.
In the embodiment of the application, the content matched with the encyclopedia entry to be edited can be obtained through a network. For example, the content matched with the encyclopedia entry to be edited is obtained from other websites or webpages. In some embodiments, in order to ensure the quality of the acquired content, the content matching the encyclopedia entry to be edited may be acquired from a predetermined website. As an example, if a user is editing an encyclopedia entry for website A, content matching the encyclopedia entry may be retrieved from an encyclopedia or other authoritative website for website B. For example, if a user is editing an encyclopedia entry for XX encyclopedia, content matching the encyclopedia entry can be obtained from websites such as Wikipedia (Wikipedia), large-english encyclopedia, and netowrk encyclopedia. In another example, the content matching the encyclopedia entry may be obtained from an empowery website such as Xinhua network.
In the embodiment of the application, the encyclopedia entries to be edited can be used as search keywords to obtain contents matched with the encyclopedia entries to be edited. The content mentioned here that matches the encyclopedia entry to be edited includes, but is not limited to, text and/or pictures.
In this embodiment of the application, the content that is obtained in S102 and matches the encyclopedia entry to be edited may include one or more contents, and as an example, one data source may correspond to one content. For example, the content matched with the encyclopedia entry to be edited may include one or more of content from wikipedia, content from large-english encyclopedia, and content from knownweb encyclopedia, respectively. As another example, a data source may also correspond to one or more pieces of content. For example, one or more contents matched with the encyclopedia entry to be edited are obtained from the Xinhua network.
For convenience of description, in the following description of the embodiment of the present application, any one of the one or more contents is referred to as "first content", in other words, the content corresponding to the encyclopedia entry to be edited includes the first content.
After the content matched with the encyclopedia entry to be edited is obtained, the content can be displayed in an editing interface of the encyclopedia entry to be edited. As an example, the content may be displayed in a preset area of the editing interface. For example, the preset content may be displayed on the right side of the editing interface. As another example, the preset content may be displayed on the left side of the editing interface.
After the contents are displayed, the user can directly view the displayed contents at the editing interface and determine whether the displayed contents are consistent with the contents which the user wishes to edit.
In one example, the content may be displayed simultaneously with a data source of the content, so that a user can judge the reliability of the content according to the data source. For example, if the content matched with the encyclopedia entry to be edited includes two pieces of content, one piece of content is from wikipedia and the other piece of content is from large encyclopedia, content such as "from wikipedia" or "wikipedia" which can indicate the data source of the content is displayed in the display area of the first piece of content; similarly, content such as "from large encyclopedia" or "large encyclopedia" that can indicate the data source of the content is displayed in the display area of the second piece of content.
S103: and responding to the selection operation of the first content, and inputting the corresponding part of the first content into an editing area of the editing interface.
After the user views the displayed content, if it is determined that the first content matches the content that the user wishes to edit, the user may trigger a selection operation for the first content. After a user triggers a selection operation on first content, first equipment can respond to the selection operation of the user on the first content, and inputs a selected part of the first content into an editing area of the editing interface. The corresponding part of the first content may be a selected part of the first content, may be all or part of the first content, and is specifically determined according to a selection operation of a user on the first content.
In an implementation manner of the embodiment of the application, the editing interface may include, for example, an operation control corresponding to the first content, and a user may trigger a selection operation on the first content through the corresponding operation control, for example, the user may trigger the selection operation on the first content by clicking or double-clicking the operation control. In an example, the operation control may be embodied as a button in the editing interface, for example, a display area corresponding to the first content is provided with a button such as "one-touch input" or "one-touch introduction", and the user may trigger the selection operation on the first content by clicking or double-clicking the button. In yet another example, the operation control can be associated with a particular operation. For example, the operation control is associated with a double-click operation on the first content, and the user can trigger a selection operation on the first content by double-clicking the first content.
As can be seen from the above description, with the scheme of the embodiment of the present application, when a user needs to edit encyclopedia content corresponding to an entry to be edited, content matching the entry to be edited may be displayed for the user, and if the user selects the first content, a corresponding portion of the first content may be directly input to an editing region corresponding to the entry to be edited. When the first content comprises the text, the user does not need to input characters one by one, and when the first content comprises the picture, the user does not need to sequentially execute the picture insertion operation, so that the efficiency of editing the encyclopedic content by the user is improved.
In some embodiments, the editing of encyclopedia content requires that certain organizational specifications be followed. For example, for an encyclopedia entry, its encyclopedia content may include a summary, a directory, and a body. Therefore, the editing interface of the encyclopedia entry to be edited can include a plurality of editing areas. For example, the editing area corresponding to the abstract, the editing area corresponding to the directory, and the editing area corresponding to the text are included. For this situation, after the first content matched with the encyclopedia entry to be edited is obtained, the first content may be further analyzed to determine the content of the first content corresponding to each editing area. The inputting the corresponding portion of the first content into the editing area of the editing interface may include: and respectively inputting the contents corresponding to the editing areas in the first contents into the corresponding editing areas.
In an example, the first device may obtain, for example, a subject corresponding to each editing area, where the subject mentioned here may be the aforementioned abstract, the aforementioned catalog, or the aforementioned text. Then, matching the theme corresponding to each editing area with the first content, thereby determining the content corresponding to each editing area in the first content. Correspondingly, when the user triggers the selection operation for the first content, the first device may input the content corresponding to each editing area to the editing area corresponding to each content, so as to improve the efficiency of the user in editing the encyclopedic content. For example, the editing interface may include three editing areas, which are an abstract, a directory and a text. The first device may identify content 1 in the first content that matches the abstract, content 2 in the first content that matches the catalog, and content 3 in the first content that matches the text, and after the user triggers a selection operation on the first content, the first device may input the content 1 to the editing area corresponding to the abstract, input the content 2 to the editing area corresponding to the catalog, and input the content 3 to the editing area corresponding to the text.
It is contemplated that the user may employ a variety of different languages when editing encyclopedia content. The language of the content matched with the encyclopedia entry to be edited, which is obtained in the foregoing S102, is related to the data source of the content. For example, content obtained from wikipedia and large-english encyclopedia may be in english; the language of the content acquired from the Hopkinson encyclopedia is Chinese; the language of the content obtained from Xinhua network is Chinese. Thus, for the first content, the language may be different from the language in which the user edited the encyclopedia content. For this situation, in order to enable the language used by the user to input the first content into the editing area to be the same as the language used by the user to edit the encyclopedic content, in an implementation manner of the embodiment of the present application, after responding to the selection operation on the first content, if it is detected that the language corresponding to the first content is different from the language corresponding to the current encyclopedic entry editing interface to be edited, the first content is translated into the language corresponding to the editing interface, and then a corresponding portion of the translated first content is input into the editing area of the editing interface of the encyclopedic entry to be edited.
In another implementation manner of the embodiment of the application, a language selection operation function may be further set in the entry editing interface, so that after the user triggers a selection operation for the first content, the user may also trigger a corresponding language selection operation. After the user triggers the language selection operation, the first device may obtain a language corresponding to the language selection operation, and correspondingly, when a corresponding portion of the first content is input to the editing area of the editing interface, the first content is input to the editing area according to the language corresponding to the language selection operation.
Regarding the language selection operation, it should be noted that the editing interface may include an operation control for selecting a language, and a user may trigger the language selection operation through the operation control for selecting the language. Correspondingly, the first device may obtain the language corresponding to the language selection operation according to the operation control corresponding to the language selection operation triggered by the user. As an example, the language selection operation control may be embodied as a button in the editing interface, and the user may trigger the language selection operation by clicking the corresponding button, for example. With regard to the aforementioned buttons, an example will now be described.
For example, the operation control for selecting the language may include buttons of "chinese", "english", "chinese-english comparison", and the like. If the user triggers a language selection operation by clicking a "chinese" button, the first device may determine that the language corresponding to the language selection operation is chinese. Similarly, if the user triggers a language selection operation by clicking an "english" button, the first device may determine that the language corresponding to the language selection operation is english; if the user triggers the language selection operation by clicking the "chinese-english comparison" button, the first device may determine that the language corresponding to the language selection operation is chinese and english.
As another example, the language-selected control may include buttons such as "text", "machine translation", "chinese-english comparison", and the like. The original text refers to the language of the first content when the first content is input into an editing area of an editing interface. "machine translation" refers to translating the first content into a preset language, for example, the language corresponding to the first content is chinese, and "machine translation" may refer to translating the first content into corresponding english. If the language corresponding to the first content is english, if the user triggers the language selection operation by clicking the "original text" button, the first device may determine that the language corresponding to the language selection operation is english. Similarly, if the user triggers a language selection operation by clicking a "machine translation" button, the first device may determine that the language corresponding to the language selection operation is a preset language different from english, for example, chinese; if the user triggers the language selection operation by clicking the "chinese-english comparison" button, the first device may determine that the language corresponding to the language selection operation is chinese and english.
In this embodiment of the application, when the language corresponding to the language selection operation is different from the language corresponding to the first content, the first device may translate the first content to obtain the first content corresponding to the language selection operation, and further input the translated first content into an editing area of an editing interface.
It should be noted that the language corresponding to the language selection operation mentioned herein may not be consistent with the language corresponding to the first content, and two cases may be included. In the first case, the number of languages corresponding to the language selection operation is the same as the number of languages corresponding to the first content, but the two languages are not completely the same. For example, the language corresponding to the language selection operation is chinese, and the language corresponding to the first content is english. For another example, the language corresponding to the language selection operation is chinese and english, and the language corresponding to the first content is chinese and korean. In the second case, the number of languages corresponding to the language selection operation is different from the number of languages included in the first content. For example, the language corresponding to the language selection operation includes chinese and english, and the language corresponding to the first content is english.
In consideration of the fact that in practical application, network resources are quite rich, therefore, there may be many contents matching the encyclopedia entry to be edited acquired in S102, and accordingly, there are many contents displayed in the editing interface, and the excessive contents may cause a certain interference to the user, which does not utilize the user to efficiently determine whether there is any content that the user wishes to input in the displayed contents. To avoid this problem, in an implementation manner of the embodiment of the present application, S102 may be determined in combination with an editing area currently being edited by a user in a specific implementation. As an example, in a specific implementation, S102 may acquire content that matches the encyclopedia entry to be edited and matches an editing region that the user is currently editing. In the specific implementation, there may be multiple implementation manners, and two possible implementation manners are described below, to obtain the content that matches the encyclopedia entry to be edited and matches the editing region currently being edited by the user.
In one implementation, the first device may use the encyclopedia entry to be edited as a search keyword to obtain content matching the encyclopedia entry to be edited. The first device may further obtain a theme of the editing area currently being edited by the user, and further, the first device may determine, from the content matched with the encyclopedia entry to be edited, content corresponding to the theme of the editing area currently being edited by the user.
In another implementation manner, the first device may obtain, for example, a topic of an editing area currently being edited by the user, and then, the first device may use the to-be-edited encyclopedia entry and the topic of the editing area currently being edited by the user as search keywords to obtain content that matches the to-be-edited encyclopedia entry and matches the editing area currently being edited by the user.
It will be appreciated that in this way, the content displayed by the first device, for example the first content, is also content corresponding to the editing area that the user is currently editing. Accordingly, after the user triggers a selection operation on the first content, the first device may input the first content to an editing area currently edited by the user.
As can be seen from the above description, since the first content is the content matched with the editing area currently edited by the user, the content displayed in the editing interface is reduced, thereby avoiding too much interference to the user caused by too much displayed content, and improving the efficiency of determining whether the content that the user wishes to input exists in the displayed content. Correspondingly, after the user triggers the selection operation of the first content, the first device can input the first content into the editing area edited by the user currently, and the efficiency of editing the current editing area by the user is improved.
Exemplary device
Based on the encyclopedic-based data processing method provided by the above embodiment, the embodiment of the present application further provides a corresponding apparatus, which is described below with reference to the accompanying drawings. Referring to fig. 2, the figure is a schematic structural diagram of an encyclopedia-based data processing device according to an embodiment of the present application. The encyclopedia-based data processing apparatus 200 depicted in fig. 2 may specifically include, for example, a first acquisition unit 201, a second acquisition unit 202, a display unit 203, and an input unit 204.
A first obtaining unit 201, configured to obtain an encyclopedia entry to be edited;
a second obtaining unit 202, configured to obtain content matched with the encyclopedia entry to be edited;
a display unit 203, configured to display the content in an editing interface of the encyclopedia entry to be edited, where the content includes a first content;
an input unit 204, configured to input, in response to a selection operation on the first content, a corresponding portion of the first content into an editing area of the editing interface.
In one implementation, the editing interface includes a plurality of editing regions therein, and the apparatus further includes:
a determining unit, configured to determine contents corresponding to the editing regions in the first content;
the input unit 204 is configured to:
and respectively inputting the contents corresponding to the editing areas in the first contents into the editing areas corresponding to the contents.
In one implementation, the apparatus further comprises:
a third obtaining unit, configured to obtain, in response to a language selection operation, a language corresponding to the language selection operation;
the input unit 204 is configured to:
and inputting the corresponding part in the first content into the editing area according to the language corresponding to the language selection operation.
In one implementation, the apparatus further comprises:
a translation unit, configured to, when it is determined that a language type corresponding to the first content is different from a language type corresponding to the editing interface, translate a corresponding portion of the first content, so that the translated language type corresponding to the corresponding portion of the first content is the same as the language type corresponding to the editing interface;
the input unit 204 is configured to:
inputting the corresponding part of the translated first content into an editing area of the editing interface.
In an implementation manner, the second obtaining unit 202 is configured to:
and acquiring the content matched with the encyclopedia entry and the editing area currently edited by the user.
In one implementation, the input unit 204 is configured to:
and inputting the corresponding part of the first content into an editing area currently edited by the user.
Since the apparatus 200 is an apparatus corresponding to the method provided in the above method embodiment, and the specific implementation of each unit of the apparatus 200 is the same as that of the above method embodiment, for the specific implementation of each unit of the apparatus 200, reference may be made to the description part of the above method embodiment, and details are not repeated here.
The method provided by the embodiment of the present application may be executed by a client or a server, and the client and the server that execute the method are described below separately.
Fig. 3 shows a block diagram of a client 300. For example, the client 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 3, client 300 may include one or more of the following components: processing component 302, memory 304, power component 306, multimedia component 308, audio component 310, input/output (I/O) interface 33, sensor component 314, and communication component 316.
The processing component 302 generally controls overall operation of the client 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 can include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
The memory 304 is configured to store various types of data to support operations at the client 300. Examples of such data include instructions for any application or method operating on the client 300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 304 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 306 provides power to the various components of the client 300. The power components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the client 300.
The multimedia component 308 comprises a screen providing an output interface between the client 300 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the client 300 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 310 is configured to output and/or input audio signals. For example, the audio component 310 includes a Microphone (MIC) configured to receive external audio signals when the client 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
The I/O interface provides an interface between the processing component 302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor component 314 includes one or more sensors for providing status assessment of various aspects to client 300. For example, sensor component 314 may detect an open/closed state of device 300, the relative positioning of components, such as a display and keypad of client 300, sensor component 314 may also detect a change in the position of client 300 or a component of client 300, the presence or absence of user contact with client 300, client 300 orientation or acceleration/deceleration, and a change in the temperature of client 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate communications between the client 300 and other devices in a wired or wireless manner. The client 300 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication section 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the client 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the following methods:
acquiring encyclopedia entries to be edited;
acquiring content matched with the encyclopedia entry to be edited, and displaying the content in an editing interface of the encyclopedia entry to be edited, wherein the content comprises first content;
and responding to the selection operation of the first content, and inputting the corresponding part of the first content into an editing area of the editing interface.
In one implementation, the editing interface includes a plurality of editing regions therein, and the method further includes:
determining contents respectively corresponding to the editing areas in the first contents;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and inputting the contents corresponding to the editing areas in the first contents into the editing areas corresponding to the contents respectively.
In one implementation, the method further comprises:
responding to language selection operation, and acquiring a language corresponding to the language selection operation;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and inputting the corresponding part in the first content into the editing area according to the language corresponding to the language selection operation.
In one implementation, the method further comprises:
when the language corresponding to the first content is determined to be different from the language corresponding to the editing interface, translating the corresponding part in the first content, so that the translated language corresponding to the corresponding part in the first content is the same as the language corresponding to the editing interface;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
inputting the corresponding part of the translated first content into an editing area of the editing interface.
In one implementation, the obtaining the content matched with the encyclopedia entry includes:
and acquiring content matched with the encyclopedic entry and matched with an editing area currently edited by a user.
In one implementation, the inputting the corresponding portion of the first content into an editing area of the editing interface includes:
and inputting the corresponding part of the first content into an editing area currently edited by the user.
Fig. 4 is a schematic structural diagram of a server in an embodiment of the present application. The server 400 may vary significantly due to configuration or performance, and may include one or more Central Processing Units (CPUs) 422 (e.g., one or more processors) and memory 432, one or more storage media 430 (e.g., one or more mass storage devices) storing applications 442 or data 444. Wherein the memory 432 and storage medium 430 may be transient or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), each of which may include a sequence of instructions operating on a server. Still further, the central processor 422 may be configured to communicate with the storage medium 430, and execute a series of instruction operations in the storage medium 430 on the server 400.
Still further, the central processor 422 may perform the following method:
acquiring encyclopedia entries to be edited;
acquiring content matched with the encyclopedia entries to be edited, and displaying the content in an editing interface of the encyclopedia entries to be edited, wherein the content comprises first content;
and responding to the selection operation of the first content, and inputting the corresponding part of the first content into an editing area of the editing interface.
In one implementation, the editing interface includes a plurality of editing regions therein, and the method further includes:
determining contents respectively corresponding to the editing areas in the first contents;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and respectively inputting the contents corresponding to the editing areas in the first contents into the editing areas corresponding to the contents.
In one implementation, the method further comprises:
responding to language selection operation, and acquiring a language corresponding to the language selection operation;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and inputting the corresponding part in the first content into the editing area according to the language corresponding to the language selection operation.
In one implementation, the method further comprises:
when the language corresponding to the first content is determined to be different from the language corresponding to the editing interface, translating the corresponding part in the first content, so that the translated language corresponding to the corresponding part in the first content is the same as the language corresponding to the editing interface;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
inputting the corresponding part of the translated first content into an editing area of the editing interface.
In one implementation, the obtaining the content matched with the encyclopedia entry includes:
and acquiring the content matched with the encyclopedia entry and the editing area currently edited by the user.
In one implementation, the inputting the corresponding portion of the first content into an editing area of the editing interface includes:
and inputting the corresponding part of the first content into an editing area currently edited by the user.
The server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input-output interfaces 456, one or more keyboards 456, and/or one or more operating systems 441, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
Embodiments of the present application also provide a computer-readable medium having stored thereon instructions, which, when executed by one or more processors, cause an apparatus to perform the encyclopedic-based data processing method provided by the above method embodiments.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the attached claims
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (16)

1. An encyclopedia-based data processing method, characterized in that the method comprises:
acquiring an encyclopedia entry to be edited, wherein the encyclopedia entry to be edited is provided with an editing interface and is used for editing encyclopedia content corresponding to the encyclopedia entry to be edited;
acquiring content matched with the encyclopedia entries and matched with the subjects of the editing area currently edited by a user, and displaying the content in an editing interface of the encyclopedia entries to be edited, wherein the content comprises first content;
and responding to the selection operation of the first content, and inputting the corresponding part of the first content into an editing area of the editing interface.
2. The method of claim 1, wherein the editing interface includes a plurality of editing regions therein, the method further comprising:
determining contents respectively corresponding to the editing areas in the first contents;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and respectively inputting the contents corresponding to the editing areas in the first contents into the editing areas corresponding to the contents.
3. The method of claim 1, further comprising:
responding to language selection operation, and acquiring a language corresponding to the language selection operation;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and inputting the corresponding part in the first content into the editing area according to the language corresponding to the language selection operation.
4. The method of claim 1, further comprising:
when the language corresponding to the first content is determined to be different from the language corresponding to the editing interface, translating the corresponding part in the first content, so that the translated language corresponding to the corresponding part in the first content is the same as the language corresponding to the editing interface;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
inputting the corresponding part of the translated first content into an editing area of the editing interface.
5. The method of claim 1, wherein the inputting the corresponding portion of the first content into an editing area of the editing interface comprises:
and inputting the corresponding part of the first content into an editing area currently edited by the user.
6. An encyclopedia-based data processing apparatus, the apparatus comprising:
the encyclopedic entry editing device comprises a first obtaining unit, a second obtaining unit and a editing unit, wherein the first obtaining unit is used for obtaining an encyclopedic entry to be edited, the encyclopedic entry to be edited is provided with an editing interface, and encyclopedic content corresponding to the encyclopedic entry to be edited is edited;
a second acquisition unit configured to acquire content that matches the encyclopedia entry and matches a subject of an editing area currently edited by a user;
the display unit is used for displaying the content in an editing interface of the encyclopedia entry to be edited, wherein the content comprises first content;
the input unit is used for responding to the selection operation of the first content and inputting the corresponding part of the first content to an editing area of the editing interface.
7. The apparatus of claim 6, wherein the editing interface comprises a plurality of editing regions therein, the apparatus further comprising:
a determining unit, configured to determine contents corresponding to the editing regions in the first content;
the input unit is used for:
and respectively inputting the contents corresponding to the editing areas in the first contents into the editing areas corresponding to the contents.
8. The apparatus of claim 6, further comprising:
a third obtaining unit, configured to obtain, in response to a language selection operation, a language corresponding to the language selection operation;
the input unit is used for:
and inputting the corresponding part in the first content into the editing area according to the language corresponding to the language selection operation.
9. The apparatus of claim 6, further comprising:
a translation unit, configured to, when it is determined that a language type corresponding to the first content is different from a language type corresponding to the editing interface, translate a corresponding portion of the first content, so that the translated language type corresponding to the corresponding portion of the first content is the same as the language type corresponding to the editing interface;
the input unit is used for:
inputting the corresponding part of the translated first content into an editing area of the editing interface.
10. The apparatus of claim 6, wherein the input unit is configured to:
and inputting the corresponding part of the first content into an editing area currently edited by the user.
11. An encyclopedia-based data processing apparatus comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein execution of the one or more programs by one or more processors comprises instructions for:
acquiring an encyclopedia entry to be edited, wherein the encyclopedia entry to be edited is provided with an editing interface and is used for editing encyclopedia content corresponding to the encyclopedia entry to be edited;
acquiring content matched with the encyclopedia entries and matched with the subjects of the editing area currently edited by a user, and displaying the content in an editing interface of the encyclopedia entries to be edited, wherein the content comprises first content;
and responding to the selection operation of the first content, and inputting the corresponding part of the first content into an editing area of the editing interface.
12. The apparatus of claim 11, wherein the editing interface includes a plurality of editing regions therein, the operations further comprising:
determining contents respectively corresponding to the editing areas in the first contents;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and respectively inputting the contents corresponding to the editing areas in the first contents into the editing areas corresponding to the contents.
13. The apparatus of claim 11, wherein the operations further comprise:
responding to language selection operation, and acquiring a language corresponding to the language selection operation;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
and inputting the corresponding part in the first content into the editing area according to the language corresponding to the language selection operation.
14. The apparatus of claim 11, wherein the operations further comprise:
when the language corresponding to the first content is determined to be different from the language corresponding to the editing interface, translating the corresponding part in the first content, so that the translated language corresponding to the corresponding part in the first content is the same as the language corresponding to the editing interface;
the inputting the corresponding portion of the first content into the editing area of the editing interface includes:
inputting the corresponding part of the translated first content into an editing area of the editing interface.
15. The apparatus of claim 11, wherein the inputting the corresponding portion of the first content into an editing area of the editing interface comprises:
and inputting the corresponding part of the first content into an editing area currently edited by the user.
16. A computer-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform the method of any one of claims 1 to 5.
CN202010790000.1A 2020-08-07 2020-08-07 Encyclopedic-based data processing method and device Active CN111880696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010790000.1A CN111880696B (en) 2020-08-07 2020-08-07 Encyclopedic-based data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010790000.1A CN111880696B (en) 2020-08-07 2020-08-07 Encyclopedic-based data processing method and device

Publications (2)

Publication Number Publication Date
CN111880696A CN111880696A (en) 2020-11-03
CN111880696B true CN111880696B (en) 2022-05-17

Family

ID=73211308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010790000.1A Active CN111880696B (en) 2020-08-07 2020-08-07 Encyclopedic-based data processing method and device

Country Status (1)

Country Link
CN (1) CN111880696B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030198A (en) * 2006-03-02 2007-09-05 王启亨 Method and system for realizing cross-language communication in Internet application
CN102637173A (en) * 2011-02-10 2012-08-15 北京百度网讯科技有限公司 Content forming method for network encyclopedias, network server and client
CN109144954A (en) * 2018-09-18 2019-01-04 天津字节跳动科技有限公司 Edit resource recommendation method, device and the electronic equipment of document
CN109740128A (en) * 2018-04-18 2019-05-10 北京字节跳动网络技术有限公司 A kind of text editing householder method, device and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8838728B2 (en) * 2007-05-22 2014-09-16 Nokia Corporation Method, system, apparatus, network entity and computer program product for providing a user with an editable webpage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030198A (en) * 2006-03-02 2007-09-05 王启亨 Method and system for realizing cross-language communication in Internet application
CN102637173A (en) * 2011-02-10 2012-08-15 北京百度网讯科技有限公司 Content forming method for network encyclopedias, network server and client
CN109740128A (en) * 2018-04-18 2019-05-10 北京字节跳动网络技术有限公司 A kind of text editing householder method, device and equipment
CN109144954A (en) * 2018-09-18 2019-01-04 天津字节跳动科技有限公司 Edit resource recommendation method, device and the electronic equipment of document

Also Published As

Publication number Publication date
CN111880696A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN107153541B (en) Browsing interaction processing method and device
CN108932253B (en) Multimedia search result display method and device
CN109683761B (en) Content collection method, device and storage medium
WO2021213038A1 (en) Historical information acquisition method, storage medium, and system
CN105447109A (en) Key word searching method and apparatus
CN111046210A (en) Information recommendation method and device and electronic equipment
CN105468606B (en) Webpage saving method and device
CN112068764B (en) Language switching method and device for language switching
CN112307294A (en) Data processing method and device
CN110213062B (en) Method and device for processing message
CN107885571B (en) Display page control method and device
CN110020082B (en) Searching method and device
CN107368562B (en) Page display method and device and terminal
CN111880696B (en) Encyclopedic-based data processing method and device
CN112667852B (en) Video-based searching method and device, electronic equipment and storage medium
CN111092971A (en) Display method and device for displaying
CN110008135B (en) Information processing method and device and electronic equipment
CN111880697B (en) Encyclopedic data processing method and device
CN110119471B (en) Method and device for checking consistency of search results
CN110020244B (en) Method and device for correcting website information
CN111736752B (en) Content recommendation method and device
CN113946346B (en) Data processing method and device, electronic equipment and storage medium
CN111241097B (en) Method for processing object, device for processing object and storage medium
CN117093267B (en) Storage method, device, equipment and storage medium for branch instruction jump address
CN111460836B (en) Data processing method and device for data processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant