Disclosure of Invention
The embodiment of the disclosure at least provides an information processing method, an information processing device, computer equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides an information processing method, including:
responding to a trigger operation aiming at a screen interface, and positioning a trigger position of the trigger operation;
determining a target keyword corresponding to the trigger position in the text content displayed on the screen interface; the target keywords are determined according to target text contents of which at least part of contents are located at the trigger position;
and adjusting the target keywords to be in a selected state so that the user can carry out interactive operation based on the target keywords in the selected state.
In a possible implementation manner, the determining a target keyword corresponding to the trigger position in the text content displayed in the screen interface includes:
determining target text content of which at least part of content is located at the trigger position in the text content displayed on the screen interface;
a target keyword is determined from a plurality of keywords included in the target text content.
In one possible embodiment, the determining a target keyword from a plurality of keywords included in the target text content includes:
determining attribute information of a plurality of keywords included in the target text content; wherein the attribute information includes at least one of: the distance between the display position and the trigger position, the interaction data in the target time period, whether the display position belongs to the encyclopedia entry or not and the relevance of the display position and the trigger position to the text content.
And determining the target keyword based on at least one candidate keyword of which the attribute information meets a preset relationship.
In a possible implementation manner, the determining the target keyword based on at least one candidate keyword whose attribute information satisfies a preset relationship includes:
determining a combined keyword corresponding to the at least one candidate keyword;
determining the target keyword based on the combined keyword.
In a possible embodiment, the determining the target keyword based on the combined keyword includes:
determining a first degree of match between the combined keyword and the target text content and at least one second degree of match between the at least one candidate keyword and the target text content;
and determining a keyword with the highest matching degree with the target text content as the target keyword based on the first matching degree and the at least one second matching degree.
In a possible embodiment, the determining the target text content of the text content displayed on the screen interface, at least part of which is located at the trigger position, includes:
determining a first sentence of which at least part of content is located at the trigger position in the text content displayed on the screen interface, and determining the association degree between the first sentence and an adjacent second sentence;
and determining the first sentence and the second sentence with the relevance degree larger than a preset value as the target text content.
In a possible implementation manner, after determining a target keyword corresponding to the trigger position in the text content displayed by the screen interface, the method further includes:
displaying at least one interactive identification based on the position of the target keyword; wherein the interaction identifier comprises a search identifier;
and responding to the trigger operation aiming at the target interactive identification, and executing an interactive operation instruction corresponding to the target interactive identification aiming at the target keyword.
In one possible embodiment, after adjusting the target keyword to the selected state, the method further includes:
responding to a first trigger operation aiming at the target keyword, displaying a floating layer in a superposed mode in a preset position area of the screen interface, and displaying a target search result corresponding to the target keyword in the floating layer; the target search result comprises key information describing content corresponding to the target keyword;
and responding to a second trigger operation aiming at the floating layer, and jumping the screen interface from the page currently displaying the text content to the search result page corresponding to the target keyword.
In a second aspect, an embodiment of the present disclosure further provides an information processing apparatus, including:
the positioning module is used for responding to the trigger operation aiming at the screen interface and positioning the trigger position of the trigger operation;
the determining module is used for determining a target keyword corresponding to the trigger position in the text content displayed on the screen interface; the target keywords are determined according to target text contents of which at least part of contents are located at the trigger position;
and the adjusting module is used for adjusting the target keywords to be in a selected state so that a user can carry out interactive operation based on the target keywords in the selected state.
In a possible implementation manner, when determining a target keyword corresponding to the trigger position in the text content displayed in the screen interface, the method is configured to:
determining target text content of which at least part of content is located at the trigger position in the text content displayed on the screen interface;
a target keyword is determined from a plurality of keywords included in the target text content.
In one possible embodiment, the determining module, when determining a target keyword from a plurality of keywords included in the target text content, is configured to:
determining attribute information of a plurality of keywords included in the target text content; wherein the attribute information includes at least one of: the distance between the display position and the trigger position, the interaction data in the target time period, whether the display position belongs to the encyclopedia entry or not and the relevance of the display position and the trigger position to the text content.
And determining the target keyword based on at least one candidate keyword of which the attribute information meets a preset relationship.
In a possible implementation manner, the determining module, when determining the target keyword based on at least one candidate keyword whose attribute information satisfies a preset relationship, is configured to:
determining a combined keyword corresponding to the at least one candidate keyword;
determining the target keyword based on the combined keyword.
In one possible embodiment, the determining module, when determining the target keyword based on the combined keyword, is configured to:
determining a first degree of match between the combined keyword and the target text content and at least one second degree of match between the at least one candidate keyword and the target text content;
and determining a keyword with the highest matching degree with the target text content as the target keyword based on the first matching degree and the at least one second matching degree.
In a possible embodiment, the determining module, when determining that at least part of the text content displayed on the screen interface is the target text content at the trigger position, is configured to:
determining a first sentence of which at least part of content is located at the trigger position in the text content displayed on the screen interface, and determining the association degree between the first sentence and an adjacent second sentence;
and determining the first sentence and the second sentence with the relevance degree larger than a preset value as the target text content.
In a possible implementation, the method further comprises a presentation module configured to:
after determining a target keyword corresponding to the trigger position in the text content displayed on the screen interface, displaying at least one interactive identifier based on the position of the target keyword; wherein the interaction identifier comprises a search identifier;
and responding to the trigger operation aiming at the target interactive identification, and executing an interactive operation instruction corresponding to the target interactive identification aiming at the target keyword.
In a possible implementation manner, after the target keyword is adjusted to the selected state, the presentation module is further configured to:
responding to a first trigger operation aiming at the target keyword, displaying a floating layer in a superposed mode in a preset position area of the screen interface, and displaying a target search result corresponding to the target keyword in the floating layer; the target search result comprises key information describing content corresponding to the target keyword;
and responding to a second trigger operation aiming at the floating layer, and jumping the screen interface from the page currently displaying the text content to the search result page corresponding to the target keyword.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
According to the information processing method provided by the embodiment of the disclosure, after the trigger operation for the screen interface is detected, the target keyword corresponding to the trigger position can be automatically determined based on the text content displayed on the screen interface, so that when the text content is triggered by a user, the target keyword can be rapidly triggered, then the follow-up instruction can be executed based on the target keyword, and the processing speed for the target keyword is further improved.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
Research shows that in the related art, when determining the text content triggered by the trigger operation, the text content displayed in the triggered area is generally directly used as the text content triggered by the trigger operation, however, when the content to be triggered is more, the user is generally required to manually adjust the triggered text content, and the method for selecting the text content is low in efficiency.
Based on the research, the present disclosure provides an information processing method, after a trigger operation for a screen interface is detected, a target keyword corresponding to a trigger position may be automatically determined based on text content displayed on the screen interface, so that when a user triggers the text content, the target keyword may be quickly triggered, and then a subsequent instruction may be executed based on the target keyword, thereby increasing a processing speed for the target keyword.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, first, an information processing method disclosed in the embodiments of the present disclosure is described in detail, and an execution main body of the information processing method provided in the embodiments of the present disclosure is generally a terminal device with a touch screen, for example, a smart phone, a tablet computer, a personal computer, a smart television, a smart watch, and the like.
Referring to fig. 1, a flowchart of an information processing method provided in an embodiment of the present disclosure is shown, where the method includes steps 101 to 103, where:
step 101, responding to a trigger operation aiming at a screen interface, and positioning a trigger position of the trigger operation.
Step 102, determining a target keyword corresponding to the trigger position in the text content displayed on the screen interface; and the target keywords are determined according to the target text content of which at least part of content is positioned at the trigger position.
And 103, adjusting the target keywords to be in a selected state so that the user can carry out interactive operation based on the target keywords in the selected state.
The following is a detailed description of the above steps.
For step 101,
In a possible implementation manner, the screen interface may display text content, for example, articles, pictures and texts, novels, audio and video profile information, comment information, and the like, all media resources including the text content may be displayed on the screen interface, and the method provided by the present disclosure may be performed.
The trigger operation for the screen interface includes but is not limited to: any one of long press, heavy press, single click, double click, etc.
The trigger position of the trigger operation can be represented by coordinates under a screen interface coordinate system, and the screen interface coordinate system is a coordinate system taking any position of the screen interface as a coordinate origin; when the text content displayed in the screen interface changes, the content displayed at the same position coordinate in the screen interface coordinate system also changes in response.
With respect to step 102,
In one possible implementation, when determining the target keyword corresponding to the trigger position in the text content displayed on the screen interface, the target text content in which at least part of the content is located at the trigger position in the text content displayed on the screen interface may be determined, and then the target keyword is determined from a plurality of keywords included in the target text content.
The text content of the at least part of the content located at the trigger position is determined, that is, the text content where the content shown at the trigger position is located, for example, the content shown at the trigger position is "AB", and the text content where the trigger position is located is "abxxxxxxx", then the target text content corresponding to the trigger position may be determined according to the text content "abxxxxxxx".
Illustratively, the target text content may be a sentence or paragraph or the like with a portion of the content located at the trigger position. Specifically, the content displayed in the area corresponding to the trigger position may be detected first, and if the content displayed in the area corresponding to the trigger position is a word, a sentence or paragraph in which the word is located may be directly used as the target text content.
In another possible implementation manner, when determining the target keyword corresponding to the trigger position in the text content displayed on the screen interface, the target text content corresponding to the trigger position may be determined first, and then the target keyword is determined based on the target text content. The target text content corresponding to the trigger position may be the text content of which at least part of the content is located at the trigger position, or may be the text content closest to the trigger position. For example, if the content displayed in the area corresponding to the trigger position is blank or punctuation, the sentence or paragraph closest to the trigger position may be used as the target text content.
In another possible implementation manner, when the content displayed in the area corresponding to the trigger position is a preset special symbol, the text content corresponding to the preset special symbol may be directly used as the target text content.
The preset special symbols are symbols which need to be used in pairs, and exemplarily comprise double quotation marks, book title marks, small brackets (), single quotation marks and the like, and the text content corresponding to the preset special symbols can be text content which appears between the paired symbols.
For example, if the content displayed in the area corresponding to the trigger position is "and the sentence where" is "one of the four famous" three kingdoms ", the" corresponding text content "three kingdoms" may be used as the target text content.
Here, it should be noted that, in the text content displayed on the screen interface, the sentence closest to the trigger position is determined as the target text content, which may be that, in the text content displayed on the screen interface, the sentence closest to the trigger position is determined as the target text content in the text content whose distance from the trigger position is smaller than a preset distance.
The "sentence" may refer to a clause, and for example, a comma, a semicolon, and a clause preceding a period may be regarded as a sentence.
In another possible implementation manner, when determining that at least part of the content in the text content displayed on the screen interface is located in the target text content at the trigger position, a first sentence in the text content displayed on the screen interface, at least part of the content being located in the trigger position, and a degree of association between the first sentence and an adjacent second sentence may be determined, and then the first sentence and the second sentence with the degree of association greater than a preset value are determined as the target text content.
Illustratively, the sentence in which the part of the content displayed at the trigger position is located is an a sentence, sentences adjacent to the a sentence are a B sentence and a C sentence, then the association degree between the a sentence and the B sentence and the association degree between the a sentence and the C sentence are respectively calculated, and if the association degree between the a sentence and the B sentence is smaller than a preset value and the association degree between the a sentence and the C sentence is larger than the preset value, the a sentence and the C sentence are taken as the target text content.
In determining the degree of association between the first sentence and the adjacent second sentence, it is exemplary to calculate a text similarity between the first sentence and the second sentence, and the like.
In one possible implementation, when determining the target keyword, the method shown in fig. 2 may include the following steps:
step 201, performing word segmentation processing on the target text content to obtain at least one candidate word segmentation included in the target text content.
Step 202, selecting candidate participles matched with entity words stored in advance from the at least one candidate participle as keywords in the target text content.
The word segmentation processing is performed on the target text content, and the target text content can be exemplarily input into a natural language processing N-gram model to obtain at least one candidate word segmentation contained in the target text content; or the word segmentation processing can also comprise a plurality of processing modes such as word segmentation based on character string matching, word segmentation based on understood semantics, word segmentation based on statistical data and the like. The matching based on the character string comprises a forward maximum matching method, a reverse maximum matching method, a least segmentation method and the like. The disclosure is not limited to other methods for performing word segmentation processing on the target text content.
Here, the real words stored in the database refer to meaningful keywords, and may include, for example, nouns, verbs, adjectives, and the like, or may further include entity names (e.g., movie names, book names, software names), and the like.
And when selecting a candidate participle matched with a real word pre-stored in a database from the at least one candidate participle, taking the shortest candidate participle matched with the real word in the database from the at least one candidate participle as the keyword.
In an example, the real words stored in the database may include china and kungfu and chinese kungfu, and after the target text content is subjected to word segmentation processing, the candidate word segmentation includes china and kungfu, and then the determined keywords in the target text content are china and kungfu.
In one possible implementation, when determining a target keyword from a plurality of keywords included in the target text content, attribute information of the plurality of keywords included in the target text content may be determined, and then the target keyword may be determined based on at least one candidate keyword whose attribute information satisfies a preset relationship.
Wherein the attribute information includes at least one of:
the distance between the display position and the trigger position, the interaction data in the target time period, whether the display position belongs to the encyclopedia entry or not and the relevance of the display position and the trigger position to the text content.
The distance between the display position corresponding to the keyword and the trigger position may be a screen distance or an editing distance. For example, if the attribute information includes a distance between a display position corresponding to a keyword and the trigger position, when a target keyword is determined, the keyword whose corresponding display position is closest to the trigger position may be directly determined as the target keyword; or, a keyword closest to the trigger position may be determined as the target keyword, from among the keywords of which the corresponding display position is less than a set distance from the trigger position.
The target time period may be a time period which is a preset time period away from the time when the user initiates the trigger operation; the interactive data in the target time period may include the number of search times, the number of selection times, the number of times of performing interactive operation after selection, and the like.
In a possible implementation manner, a target keyword corresponding to a text content in the text content displayed in the current screen interface may be preset, and the association degree with the text content may refer to whether the keyword belongs to a preset target keyword corresponding to the text content.
Illustratively, if a certain text content is a menu "chongbao chicken bouquet approach", the target keywords corresponding to the text content are gourmet, menu, chongbao chicken bouquet and the like, and if the attribute information includes the association degree with the text content and a certain keyword is a menu, it may be determined that the attribute information of the keyword "menu" satisfies the preset condition.
The attribute information meeting the preset condition may mean that the distance between the display position and the trigger position is smaller than a preset distance, and/or the interactive data in the target time period meets a corresponding interactive data limiting condition, and/or belongs to an encyclopedia entry, and/or the association degree with the text content meets an association degree limiting requirement.
In a possible implementation manner, when the target keyword is determined based on at least one candidate keyword for which the attribute information satisfies a preset condition, the following steps may be performed:
step a, determining a combined keyword corresponding to the at least one candidate keyword.
Here, when the candidate keyword is a plurality of keywords, the combined keyword may refer to a keyword after the plurality of candidate keywords are combined, and for example, if the candidate keyword is "china" or "kungfu", the combined keyword is "china kungfu".
Or, the combined keyword corresponding to the candidate keyword may refer to a keyword in a keyword library that includes the candidate keyword, and for example, if the candidate keyword is "three countries", the combined keyword corresponding to the candidate keyword may be "three countries," or "three countries standing," or the like.
And b, determining the target keywords based on the combined keywords.
In one possible embodiment, the combined keyword may be directly determined as the target keyword. In one possible implementation, the target keyword may be determined based on a degree of match between the combined keyword and the target text content.
For example, a first matching degree between the combined keyword and the target text content and at least one second matching degree between the at least one candidate keyword and the target text content may be determined; and then determining the keyword with the highest matching degree with the target text content as the target keyword based on the first matching degree and the at least one second matching degree.
Specifically, when determining the first matching degree between the combined keyword and the target text content, the method may be the same as the method of determining the second matching degree between the candidate keyword and the target text content, and the exemplary method may be determined by a pre-trained neural network, and the disclosure is not limited to other methods that may determine the matching degree.
For step 103,
The adjusting the target keyword to the selected state may be adjusting a display format of the target keyword, so that the target keyword is different from other text contents displayed in the current screen interface. For example, when the display state of the target keyword in the screen interface is adjusted, at least one of the following adjustment processes may be performed:
adjusting the display size of the target keyword, adjusting the display color of the target keyword, adjusting the filling color of the target keyword, and adding underlines to the target keyword.
Adjusting the display size of the target keyword may be adjusting the target keyword by a preset value; the adjusting of the display color of the target keyword may refer to adjusting the value of the target keyword to a first preset color; the adjusting of the filling color of the target keyword may refer to filling the target keyword with a second preset color to fill the background, and the first preset color and the second color may be the same.
In a possible implementation manner, after the display state of the target keyword in the current screen interface is adjusted, as shown in fig. 3a, the target keyword "huanghuai" is adjusted to a selected state, and an adjustment identifier is displayed at a position corresponding to the target keyword "huanghuai", so that a user can adjust the target keyword by triggering the adjustment identifier, that is, which text contents are also added to the triggered target keyword, or which text contents are removed from the triggered target keyword.
As still another example, as shown in fig. 3b, the trigger position is shown in the figure, the content displayed by the trigger position is "down", the candidate keywords are "down", "poetry", and the target keyword is "down poetry".
In another possible implementation manner, after determining a target keyword from a plurality of keywords included in the target text content, at least one interaction identifier corresponding to the target keyword (the interaction representation includes a search identifier) may be displayed based on a location of the target keyword, and then an interaction operation instruction corresponding to the target interaction identifier is executed for the target keyword in response to a trigger operation for the target interaction identifier.
Here, the displaying of the at least one interactive identifier corresponding to the target keyword based on the position of the target keyword may be performed by first determining a display position of the at least one interactive identifier based on a display position of the target keyword in the screen interface and a relative position relationship between a preset interactive identifier and the target keyword, and displaying the at least one interactive identifier at the determined display position.
Illustratively, the at least one interactive logo may include a duplicate logo, a poster sharing logo, a feedback misprint logo, and a search logo, as shown in fig. 3 c.
After the different interaction identifiers are triggered, different operation instructions can be executed, for example, if the copy identifiers are triggered, a copy instruction for the target keyword can be executed; if the search identifier is triggered later, a search instruction with the target keyword as a search word can be initiated, and then a page displayed currently on a screen interface jumps to a search result page corresponding to the search instruction.
In a possible implementation manner, after determining a target keyword triggered by a triggering operation and adjusting the display state of the target keyword in a screen interface, a user can also restore the display state of the target keyword by triggering any position in the screen interface.
The restoring of the display state of the target keyword may be understood as adjusting the display state of the target keyword to a state before being adjusted, that is, an initial display state.
In a possible implementation manner, after the display state of the target keyword in the screen interface is adjusted, the target keyword may also be directly triggered and a search may be initiated, which may exemplarily include the following steps:
step 1, responding to a first trigger operation aiming at the target keyword, displaying a floating layer in a superposed mode in a preset position area of the screen interface, and displaying a target search result corresponding to the target keyword in the floating layer; the target search result comprises key information describing content corresponding to the target keyword.
Illustratively, the screen interface after overlaying the floating layer may be as shown in FIG. 3 d. In a possible implementation manner, the target search result corresponding to the target keyword may refer to an encyclopedia page corresponding to the target keyword.
And 2, responding to a second trigger operation aiming at the floating layer, and jumping the screen interface from the page currently displaying the text content to a search result page corresponding to the target keyword.
Here, the floating layer may only occupy a partial position area of the screen interface, so that the user views the text content and simultaneously views the target search result corresponding to the target keyword. The target search result may be, for example, an encyclopedia page corresponding to the target keyword, or the target search result may be a search result whose display position is ranked first after a search is initiated based on the target keyword, or the target search result may be a search result whose number of clicks is the largest after a search is initiated based on the target keyword.
In another possible implementation manner, in response to a first trigger operation for the target keyword, in a floating layer displayed in an overlapping manner in a preset position area of the screen interface, the displayed content is a plurality of search results corresponding to the target keyword, and then, in response to a third trigger operation for any search result, a page currently displaying text content may jump to a detail page of the triggered search result.
The information processing method will be described below with reference to specific embodiments.
Referring to the screen shown in fig. 3e, text content is displayed in the screen interface, the trigger position for the trigger operation of the screen interface is shown in the figure, the trigger position corresponds to the display content of ", the target text content at least partially located at the trigger position of" "three kingdoms Yanyi" delineates the historical clouds in nearly a hundred years from the last year of east han to the first year of west jin ", and the keywords included in the target text content include the three kingdoms Yanyi, east han, west jin, history and clouds.
If the attribute information of the keyword is the distance between the display position and the trigger position, and the attribute information satisfies that the preset relationship is that the distance between the display position and the trigger position is the closest, the keyword in the target text content closest to the trigger position is the "three-kingdom rey", and the keyword "three-kingrey" can be determined as the target keyword, and the target keyword "three-kingrey" is adjusted to the selected state, and the interactive identifier shown in fig. 3c is displayed.
If the user triggers the search identifier, the floating layer can be displayed on the current screen interface in an overlapping mode, and the encyclopedia page corresponding to the target keyword 'three kingdoms rehearsal' is displayed in the floating layer.
According to the information processing method provided by the embodiment of the disclosure, after the trigger operation for the screen interface is detected, the target keyword corresponding to the trigger position can be automatically determined based on the text content displayed on the screen interface, so that when the text content is triggered by a user, the target keyword can be rapidly triggered, then the follow-up instruction can be executed based on the target keyword, and the processing speed for the target keyword is further improved.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, an information processing apparatus corresponding to the information processing method is also provided in the embodiments of the present disclosure, and because the principle of the apparatus in the embodiments of the present disclosure for solving the problem is similar to the information processing method described above in the embodiments of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not described again.
Referring to fig. 4, a schematic diagram of an architecture of an information processing apparatus according to an embodiment of the present disclosure is shown, where the apparatus includes: a positioning module 401, a determining module 402, an adjusting module 403, and a presentation module 404; wherein the content of the first and second substances,
the positioning module 401 is configured to respond to a trigger operation for a screen interface, and position a trigger position of the trigger operation;
a determining module 402, configured to determine a target keyword corresponding to the trigger position in the text content displayed on the screen interface; the target keywords are determined according to target text contents of which at least part of contents are located at the trigger position;
an adjusting module 403, configured to adjust the target keyword to a selected state, so that the user performs an interactive operation based on the target keyword in the selected state.
In a possible implementation manner, when determining a target keyword corresponding to the trigger position in the text content displayed in the screen interface, the method is configured to:
determining target text content of which at least part of content is located at the trigger position in the text content displayed on the screen interface;
a target keyword is determined from a plurality of keywords included in the target text content.
In one possible implementation, the determining module 402, when determining a target keyword from a plurality of keywords included in the target text content, is configured to:
determining attribute information of a plurality of keywords included in the target text content; wherein the attribute information includes at least one of: the distance between the display position and the trigger position, the interaction data in the target time period, whether the display position belongs to the encyclopedia entry or not and the relevance of the display position and the trigger position to the text content.
And determining the target keyword based on at least one candidate keyword of which the attribute information meets a preset relationship.
In a possible implementation manner, the determining module 402, when determining the target keyword based on at least one candidate keyword whose attribute information satisfies a preset relationship, is configured to:
determining a combined keyword corresponding to the at least one candidate keyword;
determining the target keyword based on the combined keyword.
In one possible implementation, the determining module 402, when determining the target keyword based on the combined keyword, is configured to:
determining a first degree of match between the combined keyword and the target text content and at least one second degree of match between the at least one candidate keyword and the target text content;
and determining a keyword with the highest matching degree with the target text content as the target keyword based on the first matching degree and the at least one second matching degree.
In a possible implementation manner, the determining module 402, when determining that at least part of the text content displayed in the screen interface is the target text content at the trigger position, is configured to:
determining a first sentence of which at least part of content is located at the trigger position in the text content displayed on the screen interface, and determining the association degree between the first sentence and an adjacent second sentence;
and determining the first sentence and the second sentence with the relevance degree larger than a preset value as the target text content.
In a possible implementation, the method further includes a presentation module 404 configured to:
after determining a target keyword corresponding to the trigger position in the text content displayed on the screen interface, displaying at least one interactive identifier based on the position of the target keyword; wherein the interaction identifier comprises a search identifier;
and responding to the trigger operation aiming at the target interactive identification, and executing an interactive operation instruction corresponding to the target interactive identification aiming at the target keyword.
In a possible implementation manner, after adjusting the target keyword to the selected state, the presentation module 404 is further configured to:
responding to a first trigger operation aiming at the target keyword, displaying a floating layer in a superposed mode in a preset position area of the screen interface, and displaying a target search result corresponding to the target keyword in the floating layer; the target search result comprises key information describing content corresponding to the target keyword;
and responding to a second trigger operation aiming at the floating layer, and jumping the screen interface from the page currently displaying the text content to the search result page corresponding to the target keyword.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Based on the same technical concept, the embodiment of the disclosure also provides computer equipment. Referring to fig. 5, a schematic structural diagram of a computer device 500 provided in the embodiment of the present disclosure includes a processor 501, a memory 502, and a bus 503. The memory 502 is used for storing execution instructions and includes a memory 5021 and an external memory 5022; the memory 5021 is also referred to as an internal memory, and is used for temporarily storing operation data in the processor 501 and data exchanged with an external storage 5022 such as a hard disk, the processor 501 exchanges data with the external storage 5022 through the memory 5021, and when the computer device 500 operates, the processor 501 communicates with the storage 502 through the bus 503, so that the processor 501 executes the following instructions:
responding to a trigger operation aiming at a screen interface, and positioning a trigger position of the trigger operation;
determining a target keyword corresponding to the trigger position in the text content displayed on the screen interface; the target keywords are determined according to target text contents of which at least part of contents are located at the trigger position;
and adjusting the target keywords to be in a selected state so that the user can carry out interactive operation based on the target keywords in the selected state.
In a possible implementation manner, in the instructions executed by the processor 501, the determining a target keyword corresponding to the trigger position in the text content displayed in the screen interface includes:
determining target text content of which at least part of content is located at the trigger position in the text content displayed on the screen interface;
a target keyword is determined from a plurality of keywords included in the target text content.
In one possible implementation, the determining, by the processor 501, a target keyword from a plurality of keywords included in the target text content includes:
determining attribute information of a plurality of keywords included in the target text content; wherein the attribute information includes at least one of: the distance between the display position and the trigger position, the interaction data in the target time period, whether the display position belongs to the encyclopedia entry or not and the relevance of the display position and the trigger position to the text content.
And determining the target keyword based on at least one candidate keyword of which the attribute information meets a preset relationship.
In a possible implementation manner, in the instructions executed by the processor 501, the determining the target keyword based on at least one candidate keyword whose attribute information satisfies a preset relationship includes:
determining a combined keyword corresponding to the at least one candidate keyword;
determining the target keyword based on the combined keyword.
In one possible embodiment, the determining the target keyword based on the combined keyword by the processor 501 in the instructions executed by the processor includes:
determining a first degree of match between the combined keyword and the target text content and at least one second degree of match between the at least one candidate keyword and the target text content;
and determining a keyword with the highest matching degree with the target text content as the target keyword based on the first matching degree and the at least one second matching degree.
In a possible implementation manner, in the instructions executed by processor 501, the determining a target text content of the text content displayed on the screen interface, at least a part of which is located at the trigger position, includes:
determining a first sentence of which at least part of content is located at the trigger position in the text content displayed on the screen interface, and determining the association degree between the first sentence and an adjacent second sentence;
and determining the first sentence and the second sentence with the relevance degree larger than a preset value as the target text content.
In a possible implementation manner, after determining a target keyword corresponding to the trigger position in the text content displayed on the screen interface, the processor 501 executes instructions, and the method further includes:
displaying at least one interactive identification based on the position of the target keyword; wherein the interaction identifier comprises a search identifier;
and responding to the trigger operation aiming at the target interactive identification, and executing an interactive operation instruction corresponding to the target interactive identification aiming at the target keyword.
In a possible implementation, in the instructions executed by the processor 501, after adjusting the target keyword to the selected state, the method further includes:
responding to a first trigger operation aiming at the target keyword, displaying a floating layer in a superposed mode in a preset position area of the screen interface, and displaying a target search result corresponding to the target keyword in the floating layer; the target search result comprises key information describing content corresponding to the target keyword;
and responding to a second trigger operation aiming at the floating layer, and jumping the screen interface from the page currently displaying the text content to the search result page corresponding to the target keyword.
The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the information processing method described in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the information processing method in the foregoing method embodiments, which may be referred to specifically for the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.