CN112764600A - Resource processing method, device, storage medium and computer equipment - Google Patents

Resource processing method, device, storage medium and computer equipment Download PDF

Info

Publication number
CN112764600A
CN112764600A CN202010813651.8A CN202010813651A CN112764600A CN 112764600 A CN112764600 A CN 112764600A CN 202010813651 A CN202010813651 A CN 202010813651A CN 112764600 A CN112764600 A CN 112764600A
Authority
CN
China
Prior art keywords
vocabulary
target
control
resource
processing
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.)
Granted
Application number
CN202010813651.8A
Other languages
Chinese (zh)
Other versions
CN112764600B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010813651.8A priority Critical patent/CN112764600B/en
Publication of CN112764600A publication Critical patent/CN112764600A/en
Application granted granted Critical
Publication of CN112764600B publication Critical patent/CN112764600B/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
    • G06F3/04817Interaction 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 using icons
    • 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/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The application discloses a resource processing method, a resource processing device, a storage medium and computer equipment, and belongs to the technical field of internet. The method comprises the following steps: responding to the selected resource to be processed as a text, and displaying a word segmentation control; responding to the triggering operation of the word segmentation control, and acquiring a word segmentation result of the resource to be processed; displaying N vocabulary controls, wherein the vocabulary controls are used for displaying word segmentation results of resources to be processed; and responding to the triggering operation of the target vocabulary control, and processing the target vocabulary indicated by the target vocabulary control in a target resource processing mode. The word segmentation control provided by the application can automatically segment the selected text, so that the operation complexity of word selection of a user is reduced, and the word selection cost is low; in addition, after the vocabulary control is displayed, the user can execute information association tasks (such as searching vocabularies) on the selected vocabulary by triggering the vocabulary control, and can complete corresponding processing without performing complex operation by the user, so that the method is convenient and fast, and the time cost and the labor cost are reduced.

Description

Resource processing method, device, storage medium and computer equipment
Technical Field
The present application relates to the field of internet technologies, and in particular, to a resource processing method and apparatus, a storage medium, and a computer device.
Background
Copy and paste are functions that are often used by users during the use of mobile terminals. In particular, in order to enrich the mobile terminal functions, there are increasingly many scenarios that support the use of copy and paste functions. For example, in a session scenario based on an instant messaging application, a user may search for words contained in a session message using a copy and paste function.
For example, assuming that a user needs to search a vocabulary contained in a conversation message, the related art processing procedure includes: calling a cursor and manually operating the cursor to select the vocabulary; copying the vocabulary to the pasting board through the copying option; and opening a search page, and pasting the vocabulary into a search box of the search page through a paste option.
The screen size of the mobile terminal is small, so that the operation complexity of manually selecting words on the mobile terminal is extremely high; in addition, if a subsequent task (such as searching the vocabulary) is executed after the vocabulary is copied, the user is often required to complete complicated operations, and the cost is high.
Disclosure of Invention
The embodiment of the application provides a resource processing method, a resource processing device, a storage medium and computer equipment, a user does not need to execute complex operation, the resource processing method and the resource processing device are convenient and fast, time cost and labor cost are greatly reduced, and efficiency is high. The technical scheme is as follows:
in one aspect, a resource processing method is provided, and the method includes:
responding to the selected resource to be processed as a text, and displaying a word segmentation control;
responding to the triggering operation of the word segmentation control, and acquiring a word segmentation result of the resource to be processed;
displaying N vocabulary controls, wherein the vocabulary controls are used for displaying word segmentation results of the resources to be processed;
responding to the triggering operation of a target vocabulary control in the N vocabulary controls, and processing the target vocabulary indicated by the target vocabulary control in a target resource processing mode; wherein N is a positive integer.
In another aspect, an apparatus for processing resources is provided, the apparatus including:
the first display module is configured to respond that the selected resource to be processed is a text and display a word segmentation control;
the first acquisition module is configured to respond to the triggering operation of the word segmentation control and acquire the word segmentation result of the resource to be processed;
the second display module is configured to display N vocabulary controls, and the vocabulary controls are used for displaying the word segmentation result of the resource to be processed;
the processing module is configured to respond to a triggering operation of a target vocabulary control in the N vocabulary controls, and process a target vocabulary indicated by the target vocabulary control in a target resource processing mode; wherein N is a positive integer.
In one possible implementation, the processing module is configured to:
displaying M processing controls; wherein, different processing controls are used for indicating different resource processing modes; m is a positive integer; and responding to the triggering operation of the target processing control in the M processing controls, and processing the target vocabulary in a target resource processing mode indicated by the target processing control.
In one possible implementation, the processing module is configured to:
responding to the target resource processing mode which is searching, and executing searching operation by taking the target vocabulary as a search word; and displaying a search result page, wherein the search result page comprises a search result corresponding to the search word.
In one possible implementation, the processing module is configured to:
in response to that the resource to be processed is a session text message and the target resource processing mode is an associated session record, searching a historical session record associated with the target vocabulary in the instant messaging application;
displaying a session record page, wherein the session record page comprises searched historical session records;
and displaying the session text message through a session interface provided by the instant messaging application.
In one possible implementation, the processing module is configured to:
responding to the target resource processing mode that the target resource processing mode is the associated expression package, and searching the expression package associated with the target vocabulary; and displaying an expression package page, wherein the expression package page comprises the searched expression package.
In one possible implementation, the processing module is configured to:
and responding to the target resource processing mode as the paraphrase of the associated vocabulary, and displaying the vocabulary entry of the target vocabulary.
In one possible implementation, the processing module is configured to:
and responding to the target resource processing mode of forwarding, and forwarding the target vocabulary to the selected target user.
In one possible implementation, the processing module is configured to:
and responding to the target resource processing mode as replacement, acquiring user input words, and replacing the target words with the user input words in the resources to be processed.
In one possible implementation, the second display module is configured to:
determining N vocabularies with parts of speech being nouns in the word segmentation result of the resource to be processed;
and generating N vocabulary controls according to the N vocabularies, and displaying the N vocabulary controls.
In one possible implementation, the processing module is configured to:
responding to the to-be-processed resource as a session text message, and executing search operation in the instant messaging application by taking the target vocabulary as a search word; the session text message is displayed through a session interface provided by the instant messaging application; or the like, or, alternatively,
and in response to the fact that the resource to be processed is a non-conversation text message, calling an external search engine to execute search operation by taking the target vocabulary as a search word.
In one possible implementation manner, the first display module is further configured to display a first search control in response to the selected resource to be processed being a picture;
the processing module is further configured to respond to the triggering operation of the first search control and search other pictures related to the pictures in content; or the like, or, alternatively,
the first display module is further configured to display a second search control in response to the selected resource to be processed being a plug-in program;
the processing module is further configured to respond to the triggering operation of the second searching control and search other plug-ins related to the plug-ins; or the like, or, alternatively,
the first display module is further configured to display a third search control in response to the selected resource to be processed being a file;
the processing module is further configured to search for other files associated with the file in content in response to a triggering operation of the third search control.
In one possible implementation, the processing module is further configured to perform at least one of: searching other plug-ins which belong to the same type as the plug-in; other plug-ins belonging to the same developer as the plug-in are searched.
In another aspect, a computer device is provided, the device comprising a processor and a memory, the memory having stored therein at least one program code, the at least one program code being loaded and executed by the processor to implement the resource handling method described above.
In another aspect, a storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the above-mentioned resource processing method.
In another aspect, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer program code, the computer program code being stored in a computer-readable storage medium, the computer program code being read by a processor of a computer device from the computer-readable storage medium, the computer program code being executed by the processor to cause the computer device to perform the above-mentioned resource processing method.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
aiming at the selected text, the embodiment of the application provides a word segmentation control, a user can segment the selected text by triggering the word segmentation control, and the obtained word segmentation result can be displayed in the form of the vocabulary control. The behavior of automatically segmenting the selected text can greatly reduce the operation complexity of word selection of the user and has lower word selection cost; in addition, after the vocabulary control is displayed, a user can execute information association tasks (such as searching vocabularies) on the selected vocabulary by triggering the vocabulary control.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment related to a resource handling scheme provided by an embodiment of the present application;
fig. 2 is a flowchart of a resource processing method provided in an embodiment of the present application;
FIG. 3 is a schematic illustration of an interface display provided by an embodiment of the present application;
FIG. 4 is a schematic illustration of another interface display provided by an embodiment of the present application;
FIG. 5 is a schematic illustration of another interface display provided by an embodiment of the present application;
FIG. 6 is a schematic illustration of another interface display provided by an embodiment of the present application;
FIG. 7 is a schematic illustration of another interface display provided by an embodiment of the present application;
FIG. 8 is a flow chart of another resource processing method provided by the embodiments of the present application;
FIG. 9 is a flow chart of another resource processing method provided by the embodiments of the present application;
fig. 10 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of another computer device provided in the embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It will be understood that the terms "first," "second," and the like as used herein may be used herein to describe various concepts, which are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, at least one user may be an integer number of users greater than or equal to one, such as one user, two users, three users, and the like. The plurality of users may be two or more, for example, the plurality of users may be two users, three users, or any integer number of users equal to or greater than two.
The embodiment of the application provides a resource processing method, a resource processing device, a storage medium and computer equipment. Wherein, the resource processing method relates to an Artificial Intelligence (AI) technology.
Artificial intelligence is a theory, method, technique and application system that uses a digital computer or a machine controlled by a digital computer to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use the knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technique of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a manner similar to human intelligence. Artificial intelligence is the research of the design principle and the realization method of various intelligent machines, so that the machines have the functions of perception, reasoning and decision making.
The artificial intelligence technology is a comprehensive subject and relates to the field of extensive technology, namely the technology of a hardware level and the technology of a software level. The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
Natural language processing is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that enable efficient communication between humans and computers using natural language. Natural language processing is a science integrating linguistics, computer science and mathematics. Therefore, the research in this field will involve natural language, i.e. the language that people use everyday, so it is closely related to the research of linguistics. Natural language processing techniques typically include text processing, semantic understanding, machine translation, robotic question and answer, knowledge mapping, and the like.
With the research and progress of artificial intelligence technology, the artificial intelligence technology is developed and applied in a plurality of fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, unmanned aerial vehicles, robots, smart medical care, smart customer service, and the like.
The resource processing scheme provided by the embodiment of the application relates to an artificial intelligence natural language processing technology, and is explained by the following embodiment.
Some key terms or abbreviations referred to in the embodiments of the present application are described below.
The instant messaging application comprises the following steps: single person or multiple persons are supported to participate, and users are supported to send voice, video, pictures, characters and the like. In essence, instant messaging applications provide a platform for information interaction between people. The information interaction platform specifically refers to a network architecture for connecting people by social relations and/or common interests, and users can perform daily communication and process daily matters through instant messaging applications. Wherein, each user can have a network identity recognized by other users on the information interaction platform. In this embodiment, the network identity may also be referred to as a user identifier of the user.
On the information interaction platform, different users can establish a social relationship in a mutually confirmed manner, for example, friends are added to each other or concern each other. Each user maintains a chain of friend relationships. When two users establish a social relationship, they become social network contacts of each other. A group of users can form a social group by forming a social relationship with each other in a self-selection mode. Each member in the group is a social network contact of all other members in the group.
Plug-in program: also called applets. An applet is a plug-in running in an instant messaging application. The plug-in is a program written by an application program interface which follows a certain specification. The application program provides various services which enable the plug-in to be used, and the loading mode is provided so that the plug-in can be loaded into the application program.
It should be noted that the plug-in must rely on the application program to function itself, and the plug-in cannot operate normally only. In contrast, applications do not need to rely on plug-ins to run, so that plug-ins can be loaded onto applications and dynamically updated without any changes to the application.
The following describes an implementation environment related to a resource processing scheme provided by an embodiment of the present application.
The resource processing method provided by the embodiment of the application is applied to computer equipment. The computer device can be a single mobile terminal, or a mobile terminal and a server.
Illustratively, referring to FIG. 1, the implementation environment includes: a mobile terminal 101 and a server 102.
Wherein, the mobile terminal 101 may be installed with an instant messaging application. In addition, the operating system used by the mobile terminal 101 may be an ios operating system or an android operating system, which is not specifically limited in this embodiment of the present application.
In a possible implementation manner, the server 102 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and an artificial intelligence platform.
The mobile terminal 101 may be a small-screen device such as a smart phone, a tablet computer, etc., but is not limited thereto. The mobile terminal 101 and the server 102 may be directly or indirectly connected through wired or wireless communication, and the present application is not limited thereto.
Exemplary application scenarios of the embodiments of the present application include, but are not limited to: the embodiment of the present application is not particularly limited in a session scenario or a browsing or reading scenario based on an instant messaging application.
As an example, taking a session scene based on an instant messaging application as an example, the embodiment of the present application can implement: when a user selects a certain conversation text message in a conversation interface, the mobile terminal automatically carries out word segmentation processing on the conversation text message, and converts all words included in word segmentation results into operable controls; the user may then perform information association (e.g., associate emoticons, associate session records, associate lexical definitions, associate search results, etc.) by triggering (e.g., clicking on) these actionable controls.
Taking the search process as an example, since the content of the session message is rich, the session message usually contains the content that the user needs to search. In order to reduce the complexity of user operation, the embodiment of the application can automatically analyze words contained in the session text message through word segmentation processing based on user trigger operation (such as clicking a session message box), then search the words selected by the user conveniently, and the search can be completed without inputting the words selected by the user into a search box through copying and pasting functions.
In summary, the embodiment of the application can realize that when a user selects the whole text, the whole text is automatically subjected to word segmentation processing, and words included in word segmentation results are converted into operable controls to be displayed; the automatic word segmentation behavior can obviously reduce the word selection cost. In addition, through the triggering operation of the operable controls, a certain vocabulary in the text can be selected and the information association behavior can be initiated. The information association behavior after word segmentation can obviously reduce the operation complexity of the user and reduce the time cost and the operation cost.
The following embodiments are provided to describe the resource processing scheme in detail.
Fig. 2 is a flowchart of a resource processing method according to an embodiment of the present application. The execution subject of the method is a computer device. Referring to fig. 2, a method flow provided by the embodiment of the present application includes:
201. the computer equipment acquires the selection operation of the user on the resource A, and displays the word segmentation control in response to the fact that the selected resource A is a text.
Wherein, the resource A refers to a resource to be processed, and the resource A is in a text form.
For example, the user may select the resource a by a long press operation, that is, the user performs the long press operation to select a certain resource, for example, the user performs the long press operation on a session interface provided by the instant messaging application, that is, a certain session message displayed on the session interface may be selected. The pressing duration of the long pressing operation may be greater than 1s (second), which is not particularly limited in the embodiment of the present application.
In the embodiment of the present application, if the selected resource a is in text form, a function menu similar to that shown in fig. 3 pops up. The function menu includes a word segmentation control 300 in addition to common controls such as copy, collection, and forwarding. In addition, the function menu is displayed at the forefront end of the page in a top-level display mode and is not blocked by any layer.
202. Responding to the triggering operation of the user on the word segmentation control, and acquiring a word segmentation result of the resource A by the computer equipment; and displaying N vocabulary controls, wherein the vocabulary controls are used for displaying the word segmentation result of the resource A.
The word segmentation control 300 is configured to obtain a word segmentation result of the resource a. For example, the triggering operation on the word segmentation control 300 may be a clicking operation, which is not specifically limited in this embodiment of the present application.
In the embodiment of the present application, obtaining the word segmentation result of the resource a includes the following two processing manners:
2021. and the mobile terminal performs word segmentation processing on the resource A locally to obtain a word segmentation result of the resource A.
2022. The mobile terminal sends a word segmentation request to the server, wherein the word segmentation request comprises a resource A to be subjected to word segmentation; and the server calls the word segmentation module to execute word segmentation processing on the resource A to obtain a word segmentation result of the resource A.
Illustratively, the word segmentation algorithm includes, but is not limited to: word segmentation algorithm based on word list, word segmentation algorithm based on statistical model and word segmentation algorithm based on sequence annotation. The word segmentation algorithm based on the word list can include: a forward maximum matching algorithm, a reverse maximum matching algorithm and a bidirectional maximum matching algorithm BM; the word segmentation algorithm based on the statistical model can comprise the following steps: a word segmentation algorithm based on an N-gram language model; the word segmentation algorithm based on sequence labeling can comprise the following steps: a Hidden Markov Model (HMM) based participle algorithm, a Conditional Random Field (CRF) based participle algorithm, and an end-to-end participle algorithm based on deep learning.
It should be noted that the obtained word segmentation result may include a large number of words, but not all the word segmentation results have subsequent processing value. For example, after a long text is segmented, although a plurality of words are obtained, only nouns often have a search value, and words of other parts of speech that are segmented often have no search value.
Thus, when the vocabulary control is displayed, only the nouns in the word segmentation result may be targeted.
In one possible implementation, displaying N vocabulary controls includes: determining N vocabularies with parts of speech being nouns in the word segmentation result of the resource A; and generating and displaying N vocabulary controls according to the N vocabularies.
That is, one divided vocabulary corresponds to one vocabulary control. The displayed vocabulary control is an operable control, namely the vocabulary control can respond to the triggering operation of a user. Wherein N is a positive integer.
For example, assuming that resource a is the session text message "i am fat, love to eat, fat and lazy, as shown in fig. 4," the mobile terminal may display 6 vocabulary controls after the user clicks the vocabulary control, i.e., vocabulary control 401 "i am, vocabulary control 402" love to eat, "vocabulary control 403" fat burn, "vocabulary control 404" lazy, "vocabulary control 405" stupid, "and vocabulary control 406" fat "as shown in fig. 4. In addition, if only the vocabulary control corresponding to the noun in the word segmentation result is displayed, only two vocabulary controls of "fat in braised pork intestines" and "fat" may be displayed as shown in fig. 5.
In addition, the display position of the vocabulary control may be arbitrary, and is premised on that the displayed conversation message is not blocked as much as possible, for example, the vocabulary control is displayed at a position below the resource a, which is not specifically limited in the embodiment of the present application.
203. And responding to the triggering operation of the user on the target vocabulary control in the N vocabulary controls, and processing the target vocabulary indicated by the target vocabulary control by the computer equipment in a target resource processing mode.
Wherein the vocabulary control selected by the user is referred to herein as the target vocabulary control.
In a possible implementation manner, after a user triggers a displayed certain vocabulary control, a certain information association operation can be directly initiated. For example, after a user triggers a vocabulary control, the user may directly initiate a search operation with the vocabulary indicated by the vocabulary control as a search word. In other words, the target resource processing manner may be preset. The triggering operation of the vocabulary control by the user may be a click operation, which is not specifically limited in this embodiment of the present application.
For example, taking the target resource processing manner as "search" as an example, assuming that the user clicks the vocabulary control 403 "burn in the sausage" in fig. 4, the search operation can be directly performed with "burn in the sausage" as the search word.
In another possible implementation manner, the target resource processing manner may also be selected by the user himself. For example, an independent function menu may be adopted to carry the controls corresponding to the information-related operations in the embodiments of the present application. Namely, the processing of the target vocabulary in the target resource processing mode comprises the following steps:
displaying M processing controls; wherein, different processing controls are used for indicating different resource processing modes; m is a positive integer; and responding to the triggering operation of the target processing control in the M processing controls, and processing the target vocabulary in a target resource processing mode indicated by the target processing control.
In the embodiment of the application, each information association operation corresponds to one processing control.
Exemplary resource handling ways of handling the control include, but are not limited to: searching, associating session records, associating emoticons, associating vocabulary definitions, forwarding, replacing, and the like, which are not specifically limited in this embodiment of the present application. For example, the processing control may be displayed in the display manner shown in fig. 6. As shown in fig. 6, the processing controls include a search control 601, a session record control 602, an emoji package control 603, a lexical paraphrase control 604, a forward control 605, and an alternate control 606.
The first point to be noted is that the above only provides several types of processing controls, and actually, more types of processing controls may also be included, which is not specifically limited in this embodiment of the present application.
The second point to be described is that, in consideration of the small screen size of the mobile terminal, when displaying the vocabulary control and the processing control, the embodiment of the present application also supports displaying in a split screen manner. For example, the vocabulary control and the processing control are fixedly displayed in the lower area of the screen, but the vocabulary control is displayed in the first screen and the processing control is displayed in the second screen, which is not specifically limited in the embodiment of the present application.
Still alternatively, the embodiment of the present application further supports displaying the vocabulary control or the processing control which cannot be displayed on the current screen in a manner of sliding up and down. For example, a user can display a vocabulary control which cannot be displayed on the current screen by sliding the functional menu where the vocabulary control is located up and down; the user can display the processing control which cannot be displayed on the current screen by sliding the function menu where the processing control is located up and down.
In addition, a closing control 607 is also displayed in fig. 6, and when the user triggers the closing control 607, the current processing of the resource a by the computer device, such as displaying the vocabulary control and the processing control, can be cancelled.
In the embodiment of the present application, the target vocabulary is processed in a target resource processing manner, including but not limited to the following implementation manners:
2031. responding to the target resource processing mode as search, and executing search operation by the computer equipment by taking the target vocabulary as a search word; and displaying a search result page, wherein the search result page comprises search results corresponding to the search terms.
Taking fig. 6 as an example, assuming that the vocabulary control 403 "braised pork intestines" and the search control 601 are selected by the user, the embodiment of the present application performs a search operation with the target vocabulary as the search word, and displays a search result page. And the search result page comprises search results corresponding to the search terms.
As one example, performing a search operation with a target vocabulary as a search term includes: intra-application search and web search. Aiming at the in-application search, responding to the resource A as a session text message, and executing a search operation in the instant messaging application by taking a target vocabulary as a search word; wherein the session text message is displayed through a session interface provided by the instant messaging application. And for network search, in response to the resource A being a non-conversation text message and taking the target vocabulary as a search word, calling an external search engine to execute a search operation.
Fig. 7 shows the search result in the application of "braised pork intestines" as the search word, wherein the search result includes the entry of "braised pork intestines", the common practice of "braised pork intestines", and the like.
2032. Responding to the fact that the resource A is a session text message and the target resource processing mode is a related session record, and searching a historical session record related to a target vocabulary in the instant messaging application by the computer equipment; and displaying a session record page, wherein the session record page comprises the searched historical sessions.
Aiming at the mode that the historical conversation record associated with the keyword is searched in the locally stored historical conversation record by taking the target vocabulary as the keyword. Illustratively, the historical dialog record associated with the keyword may be a historical conversation including the keyword, which is not specifically limited in this embodiment of the present application.
2033. In response to the target resource processing mode being the associated emoticon, the computer device searches for the emoticon associated with the target vocabulary; and displaying an expression package page, wherein the expression package page comprises the searched expression package.
For this way, the emoticon associated with the target vocabulary may be: the theme name comprises an expression package of a target vocabulary; or, the content of the emoticon is consistent with the target vocabulary, for example, the target vocabulary is "three," and the emoticon is "three" emoticon; for another example, the target vocabulary is "smiling face", and the emoticons are all smiling face emoticons; the embodiment of the present application is not particularly limited to this.
In addition, when searching for the emoticon, the emoticon may be searched within the application or may be searched in a web.
2034. In response to the target resource handling being paraphrasing the associated vocabulary, the computer device displays the vocabulary entry for the target vocabulary.
When searching for an entry of a target vocabulary, the search may be performed in an application or in a network, which is not specifically limited in this embodiment of the present application. The term is also called the term, entry, and refers to the term, word, and paraphrase collected by the dictionary editing.
2035. And responding to the target resource processing mode being forwarding, and forwarding the target vocabulary to the selected target user by the computer equipment.
The target user may be a friend user on a friend relationship chain of the user in the instant messaging application, or other group members in the same group, which is not specifically limited in the embodiment of the present application.
2036. And responding to the target resource processing mode as replacement, the computer equipment acquires the user input vocabulary, and replaces the target vocabulary with the user input vocabulary in the resource A.
The method is aimed at replacing the target vocabulary appearing in the resource A with the user input vocabulary.
The method provided by the embodiment of the application has at least the following beneficial effects:
aiming at the selected text, the embodiment of the application provides a word segmentation control, a user can segment the selected text by triggering the word segmentation control, and the obtained word segmentation result is displayed in the form of the word control; after the vocabulary control is displayed, the user can complete word selection by triggering the vocabulary control. Based on the above description, the behavior of automatically segmenting the selected text can greatly reduce the operation complexity of word selection, namely, the word selection cost; in addition, the embodiment of the application can also display a plurality of processing controls, a user can execute information associated tasks (such as searching vocabularies) on the selected vocabularies by triggering the processing controls, and due to the resource processing mode, the user does not need to execute complex operation, and the resource processing method is convenient and fast, so that the time cost and the labor cost are greatly reduced, and the efficiency is high.
In another embodiment, taking the mobile terminal to execute the resource processing method provided in the embodiment of the present application as an example, the word segmentation operation is executed locally on the mobile terminal. Further, taking the session text message displayed in the session interface provided by the instant messaging application as the session text message, and taking the information association operation as a search as an example, referring to fig. 8, the overall execution flow of the resource processing method provided by the embodiment of the present application includes:
801. and the mobile terminal acquires the selected operation of the user on a certain conversation text message and displays the word segmentation control.
802. Responding to the triggering operation of the word segmentation control by the user, and performing word segmentation processing on the session text message by the mobile terminal; displaying a plurality of vocabulary controls for presenting the segmentation results of the conversational text message.
803. And responding to the triggering operation of the user on the target vocabulary control in the plurality of vocabulary controls, and executing the searching operation by using the target vocabulary indicated by the target vocabulary control as the searching word by the mobile terminal.
That is, for the front-end display, the mobile terminal provides a word segmentation control, for example, after the user presses a certain session text message for a long time in the instant messaging application, the mobile terminal pops up a function menu, and the function menu includes a word segmentation control for triggering word segmentation behavior; after the user clicks the word segmentation control, the mobile terminal executes word segmentation processing on the session text message; and then, displaying the word segmentation result after word segmentation through the operable control. The divided vocabulary can be converted into a plurality of operable vocabulary controls. The user clicks the vocabulary control to select words.
In addition, in the embodiment of the present application, a processing control corresponding to the information association operation may be carried through an independent function menu, or a certain information association operation may be directly initiated after a user clicks a certain vocabulary control, which is not specifically limited in the embodiment of the present application. Taking the example of directly initiating the in-application search after clicking the vocabulary control, the page automatically jumps to a search result page taking the selected vocabulary as a keyword.
Aiming at the selected text, the embodiment of the application provides a word segmentation control, a user can segment the selected text by triggering the word segmentation control, and the obtained word segmentation result can be displayed in the form of the vocabulary control. The behavior of automatically segmenting the selected text can greatly reduce the operation complexity of word selection of the user and has lower word selection cost; in addition, after the vocabulary control is displayed, a user can execute information association tasks (such as searching vocabularies) on the selected vocabulary by triggering the vocabulary control.
In another embodiment, taking the example that the mobile terminal and the server jointly execute the resource processing method provided in the embodiments of the present application, the word segmentation operation is executed on the server side. Further, taking a session text message displayed in a session interface provided by the instant messaging application as the resource to be processed, and taking the information association operation as a search example, referring to fig. 9, the overall execution flow of the resource processing method provided by the embodiment of the present application includes:
901. and the mobile terminal acquires the selected operation of the user on a certain conversation text message and displays the word segmentation control.
902. And responding to the triggering operation of the user on the word segmentation control, and sending a word segmentation request to the server by the mobile terminal, wherein the word segmentation request comprises the session text message.
903. After receiving the word segmentation request, the server calls a word segmentation module to perform word segmentation processing on the session text message.
For example, the server may set a plurality of word segmentation modules, and for texts to be processed in different application scenarios or different application fields, the server may call the word segmentation modules with different segmentations to perform word segmentation processing.
Different word segmentation modules may use different word banks to perform word segmentation processing, which is not specifically limited in this embodiment of the present application.
904. And the server returns the obtained word segmentation result to the mobile terminal.
905. The mobile terminal displays a plurality of vocabulary controls, and the vocabulary controls are used for displaying the word segmentation result of the conversation text message.
The mobile terminal refreshes the front-end display according to the word segmentation result returned by the server.
906. And responding to the triggering operation of the user on the target vocabulary control in the plurality of vocabulary controls, and sending a search request to the server by the mobile terminal, wherein the search request comprises the target vocabulary indicated by the target vocabulary control.
Aiming at the step, when a user clicks a vocabulary control corresponding to a certain segmented vocabulary, the mobile terminal initiates a search request to the server.
907. After receiving the search request, the server executes a search operation by taking the target vocabulary as a search word.
908. And the server returns the obtained search result to the mobile terminal.
909. And the mobile terminal refreshes the front-end display according to the search result returned by the server.
Aiming at the selected text, the embodiment of the application provides a word segmentation control, a user can segment the selected text by triggering the word segmentation control, and the obtained word segmentation result can be displayed in the form of the vocabulary control. The behavior of automatically segmenting the selected text can greatly reduce the operation complexity of word selection of the user and has lower word selection cost; in addition, after the vocabulary control is displayed, a user can execute information association tasks (such as searching vocabularies) on the selected vocabulary by triggering the vocabulary control.
In addition, for pictures, other pictures related in content may be searched; for a file, if the file is not complete, a detailed file of the file may be searched; alternatively, other files associated with the file in content may be searched for; for an emoticon, a related emoticon may be searched. For applets, other applets of the same developer can be searched; alternatively, the profile, score, and the like of the applet are checked, which is not particularly limited in the embodiment of the present application.
In one possible implementation manner, in response to that the selected resource to be processed is a picture, displaying a first search control; searching other pictures related to the picture in content in response to the triggering operation of the first search control; the triggering operation may be a click operation, which is not specifically limited in the embodiment of the present application; or, responding to the selected resource to be processed as a plug-in program, and displaying a second search control; in response to the triggering operation of the second searching control, searching other plug-ins related to the plug-in; or, responding to the selected resource to be processed as a file, and displaying a third search control; and searching other files related to the file in content in response to the triggering operation of the third search control. Illustratively, searching for other plug-ins associated with the plug-in includes at least one of: searching other plug-ins which belong to the same type (such as the gourmet class) as the plug-in; other plug-ins belonging to the same developer as the plug-in are searched.
Fig. 10 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present application. Referring to fig. 10, the apparatus includes:
a first display module 1001 configured to display a word segmentation control in response to the selected resource to be processed being a text;
a first obtaining module 1002, configured to obtain a word segmentation result of the resource to be processed in response to a triggering operation on the word segmentation control;
a second display module 1003 configured to display N vocabulary controls, where the vocabulary controls are used to show the word segmentation result of the resource to be processed;
a processing module 1004 configured to process, in response to a trigger operation on a target vocabulary control in the N vocabulary controls, a target vocabulary indicated by the target vocabulary control in a target resource processing manner; wherein N is a positive integer.
Aiming at the selected text, the embodiment of the application provides a word segmentation control, a user can segment the selected text by triggering the word segmentation control, and the obtained word segmentation result can be displayed in the form of the vocabulary control. The behavior of automatically segmenting the selected text can greatly reduce the operation complexity of word selection of the user and has lower word selection cost; in addition, after the vocabulary control is displayed, a user can execute information association tasks (such as searching vocabularies) on the selected vocabulary by triggering the vocabulary control.
In one possible implementation, the processing module 1004 is configured to:
displaying M processing controls; wherein, different processing controls are used for indicating different resource processing modes; m is a positive integer; and responding to the triggering operation of the target processing control in the M processing controls, and processing the target vocabulary in a target resource processing mode indicated by the target processing control.
In one possible implementation, the processing module 1004 is configured to:
responding to the target resource processing mode which is searching, and executing searching operation by taking the target vocabulary as a search word; and displaying a search result page, wherein the search result page comprises a search result corresponding to the search word.
In one possible implementation, the processing module 1004 is configured to:
in response to that the resource to be processed is a session text message and the target resource processing mode is an associated session record, searching a historical session record associated with the target vocabulary in the instant messaging application;
displaying a session record page, wherein the session record page comprises searched historical session records;
and displaying the session text message through a session interface provided by the instant messaging application.
In one possible implementation, the processing module 1004 is configured to:
responding to the target resource processing mode that the target resource processing mode is the associated expression package, and searching the expression package associated with the target vocabulary; and displaying an expression package page, wherein the expression package page comprises the searched expression package.
In one possible implementation, the processing module 1004 is configured to:
and responding to the target resource processing mode as the paraphrase of the associated vocabulary, and displaying the vocabulary entry of the target vocabulary.
In one possible implementation, the processing module 1004 is configured to:
and responding to the target resource processing mode of forwarding, and forwarding the target vocabulary to the selected target user.
In one possible implementation, the processing module 1004 is configured to:
and responding to the target resource processing mode as replacement, acquiring user input words, and replacing the target words with the user input words in the resources to be processed.
In one possible implementation, the second display module is configured to:
determining N vocabularies with parts of speech being nouns in the word segmentation result of the resource to be processed;
and generating N vocabulary controls according to the N vocabularies, and displaying the N vocabulary controls.
In one possible implementation, the processing module 1004 is configured to:
responding to the to-be-processed resource as a session text message, and executing search operation in the instant messaging application by taking the target vocabulary as a search word; the session text message is displayed through a session interface provided by the instant messaging application; or the like, or, alternatively,
and in response to the fact that the resource to be processed is a non-conversation text message, calling an external search engine to execute search operation by taking the target vocabulary as a search word.
In a possible implementation manner, the first display module 1001 is further configured to display a first search control in response to the selected resource to be processed being a picture;
a processing module 1004 further configured to search for other pictures associated with the picture in content in response to a triggering operation of the first search control; or the like, or, alternatively,
the first display module 1001 is further configured to display a second search control in response to the selected to-be-processed resource being a plug-in program;
the processing module 1004 is further configured to respond to the triggering operation of the second search control and search other plug-ins related to the plug-ins; or the like, or, alternatively,
the first display module 1001 is further configured to display a third search control in response to the selected resource to be processed being a file;
the processing module 1004 is further configured to search for other files associated with the file in content in response to a triggering operation of the third search control.
In one possible implementation, the processing module 1004 is further configured to perform at least one of: searching other plug-ins which belong to the same type as the plug-in; other plug-ins belonging to the same developer as the plug-in are searched.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
It should be noted that: in the resource processing apparatus provided in the foregoing embodiment, when performing resource processing, only the division of the functional modules is illustrated, and in practical applications, the function allocation may be performed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. In addition, the resource processing apparatus and the resource processing method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 11 shows a block diagram of a computer device 1100 provided in an exemplary embodiment of the present application.
The computer device 1100 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Computer device 1100 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
Generally, the computer device 1100 includes: a processor 1101 and a memory 1102.
Processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1101 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and rendering content that the display screen needs to display. In some embodiments, the processor 1101 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1102 may include one or more computer-readable storage media, which may be non-transitory. Memory 1102 can also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1102 is used to store at least one program code for execution by the processor 1101 to implement the resource processing methods provided by the method embodiments herein.
In some embodiments, the computer device 1100 may also optionally include: a peripheral interface 1103 and at least one peripheral. The processor 1101, memory 1102 and peripheral interface 1103 may be connected by a bus or signal lines. Various peripheral devices may be connected to the peripheral interface 1103 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1104, display screen 1105, camera assembly 1106, audio circuitry 1107, positioning assembly 1108, and power supply 1109.
The peripheral interface 1103 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, memory 1102, and peripheral interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102 and the peripheral device interface 1103 may be implemented on separate chips or circuit boards, which is not limited by this embodiment.
The Radio Frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1104 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1104 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1104 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1104 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to capture touch signals on or over the surface of the display screen 1105. The touch signal may be input to the processor 1101 as a control signal for processing. At this point, the display screen 1105 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 1105 may be one, disposed on the front panel of the computer device 1100; in other embodiments, the display screens 1105 may be at least two, each disposed on a different surface of the computer device 1100 or in a folded design; in other embodiments, the display 1105 may be a flexible display disposed on a curved surface or on a folded surface of the computer device 1100. Even further, the display screen 1105 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display screen 1105 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
Camera assembly 1106 is used to capture images or video. Optionally, camera assembly 1106 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1106 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1107 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1101 for processing or inputting the electric signals to the radio frequency circuit 1104 to achieve voice communication. The microphones may be multiple and placed at different locations on the computer device 1100 for stereo sound acquisition or noise reduction purposes. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1101 or the radio frequency circuit 1104 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1107 may also include a headphone jack.
The Location component 1108 is used to locate the current geographic Location of the computer device 1100 for navigation or LBS (Location Based Service). The Positioning component 1108 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 1109 is used to provide power to the various components within the computer device 1100. The power supply 1109 may be alternating current, direct current, disposable or rechargeable. When the power supply 1109 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the computer device 1100 also includes one or more sensors 1110. The one or more sensors 1110 include, but are not limited to: acceleration sensor 1111, gyro sensor 1112, pressure sensor 1113, fingerprint sensor 1114, optical sensor 1115, and proximity sensor 1116.
The acceleration sensor 1111 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the computer apparatus 1100. For example, the acceleration sensor 1111 may be configured to detect components of the gravitational acceleration in three coordinate axes. The processor 1101 may control the display screen 1105 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1112 may detect a body direction and a rotation angle of the computer device 1100, and the gyro sensor 1112 may cooperate with the acceleration sensor 1111 to acquire a 3D motion of the user on the computer device 1100. From the data collected by gyroscope sensor 1112, processor 1101 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 1113 may be disposed on the side bezel of the computer device 1100 and/or underneath the display screen 1105. When the pressure sensor 1113 is disposed on the side frame of the computer device 1100, the holding signal of the user to the computer device 1100 can be detected, and the processor 1101 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1113. When the pressure sensor 1113 is disposed at the lower layer of the display screen 1105, the processor 1101 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1105. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1114 is configured to collect a fingerprint of the user, and the processor 1101 identifies the user according to the fingerprint collected by the fingerprint sensor 1114, or the fingerprint sensor 1114 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the user is authorized by the processor 1101 to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 1114 may be disposed on the front, back, or side of the computer device 1100. When a physical key or vendor Logo is provided on the computer device 1100, the fingerprint sensor 1114 may be integrated with the physical key or vendor Logo.
Optical sensor 1115 is used to collect ambient light intensity. In one embodiment, the processor 1101 may control the display brightness of the display screen 1105 based on the ambient light intensity collected by the optical sensor 1115. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the display screen 1105 is reduced. In another embodiment, processor 1101 may also dynamically adjust the shooting parameters of camera assembly 1106 based on the ambient light intensity collected by optical sensor 1115.
The proximity sensor 1116, also referred to as a distance sensor, is typically disposed on a front panel of the computer device 1100. The proximity sensor 1116 is used to capture the distance between the user and the front of the computer device 1100. In one embodiment, the display screen 1105 is controlled by the processor 1101 to switch from a bright screen state to a dark screen state when the proximity sensor 1116 detects that the distance between the user and the front face of the computer device 1100 is gradually decreasing; when the proximity sensor 1116 detects that the distance between the user and the front face of the computer device 1100 becomes progressively larger, the display screen 1105 is controlled by the processor 1101 to switch from a breath-screen state to a light-screen state.
Those skilled in the art will appreciate that the configuration illustrated in FIG. 11 does not constitute a limitation of the computer device 1100, and may include more or fewer components than those illustrated, or may combine certain components, or may employ a different arrangement of components.
Fig. 12 is a schematic structural diagram of a computer device provided in an embodiment of the present application, where the computer device may be represented as a server. The server 1200 may generate large differences due to different configurations or performances, and may include one or more processors (CPUs) 1201 and one or more memories 1202, where the memory 1202 stores at least one program code, and the at least one program code is loaded and executed by the processors 1201 to implement the resource Processing methods provided by the above-described method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer readable storage medium, such as a memory including program code, which is executable by a processor in the computer device 1100 or the computer device 1200 to perform the resource processing method in the above embodiments, is also provided. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or a computer program is also provided, which includes computer program code stored in a computer-readable storage medium, which is read by a processor of the computer device 1100 or the computer device 1200 from the computer-readable storage medium, and which is executed by the processor, so that the computer device 1100 or the computer device 1200 performs the above-described resource processing method.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by hardware associated with program code, and the program may be stored in a computer readable storage medium, and the above mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, 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 (15)

1. A method for processing resources, the method comprising:
responding to the selected resource to be processed as a text, and displaying a word segmentation control;
responding to the triggering operation of the word segmentation control, and acquiring a word segmentation result of the resource to be processed;
displaying N vocabulary controls, wherein the vocabulary controls are used for displaying word segmentation results of the resources to be processed;
responding to the triggering operation of a target vocabulary control in the N vocabulary controls, and processing the target vocabulary indicated by the target vocabulary control in a target resource processing mode; wherein N is a positive integer.
2. The method of claim 1, wherein processing the target vocabulary indicated by the target vocabulary control in a target resource processing manner comprises:
displaying M processing controls; wherein, different processing controls are used for indicating different resource processing modes; m is a positive integer;
and responding to the triggering operation of the target processing control in the M processing controls, and processing the target vocabulary in a target resource processing mode indicated by the target processing control.
3. The method of claim 1, wherein processing the target vocabulary indicated by the target vocabulary control in a target resource processing manner comprises:
responding to the target resource processing mode which is searching, and executing searching operation by taking the target vocabulary as a search word;
and displaying a search result page, wherein the search result page comprises a search result corresponding to the search word.
4. The method of claim 1, wherein processing the target vocabulary indicated by the target vocabulary control in a target resource processing manner comprises:
in response to that the resource to be processed is a session text message and the target resource processing mode is an associated session record, searching a historical session record associated with the target vocabulary in the instant messaging application;
displaying a session record page, wherein the session record page comprises searched historical session records;
and displaying the session text message through a session interface provided by the instant messaging application.
5. The method of claim 1, wherein processing the target vocabulary indicated by the target vocabulary control in a target resource processing manner comprises:
responding to the target resource processing mode that the target resource processing mode is the associated expression package, and searching the expression package associated with the target vocabulary; and displaying an expression package page, wherein the expression package page comprises the searched expression package.
6. The method of claim 1, wherein processing the target vocabulary indicated by the target vocabulary control in a target resource processing manner comprises:
and responding to the target resource processing mode as the paraphrase of the associated vocabulary, and displaying the vocabulary entry of the target vocabulary.
7. The method of claim 1, wherein processing the target vocabulary indicated by the target vocabulary control in a target resource processing manner comprises:
and responding to the target resource processing mode of forwarding, and forwarding the target vocabulary to the selected target user.
8. The method of claim 1, wherein processing the target vocabulary indicated by the target vocabulary control in a target resource processing manner comprises:
and responding to the target resource processing mode as replacement, acquiring user input words, and replacing the target words with the user input words in the resources to be processed.
9. The method of claim 1, wherein the displaying N vocabulary controls comprises:
determining N vocabularies with parts of speech being nouns in the word segmentation result of the resource to be processed;
and generating N vocabulary controls according to the N vocabularies, and displaying the N vocabulary controls.
10. The method of claim 3, wherein performing a search operation with the target vocabulary as a search term comprises:
responding to the to-be-processed resource as a session text message, and executing search operation in the instant messaging application by taking the target vocabulary as a search word; the session text message is displayed through a session interface provided by the instant messaging application; or the like, or, alternatively,
and in response to the fact that the resource to be processed is a non-conversation text message, calling an external search engine to execute search operation by taking the target vocabulary as a search word.
11. The method according to any one of claims 1 to 10, further comprising:
responding to the selected resource to be processed as a picture, and displaying a first search control; searching other pictures related to the pictures in content in response to the triggering operation of the first search control; or the like, or, alternatively,
responding to the selected resource to be processed as a plug-in program, and displaying a second search control; searching other plug-ins related to the plug-ins in response to the triggering operation of the second searching control; or the like, or, alternatively,
responding to the selected resource to be processed as a file, and displaying a third search control; and searching other files related to the files in content in response to the triggering operation of the third search control.
12. The method of claim 11, wherein the searching for other plug-ins associated with the plug-in comprises at least one of:
searching other plug-ins which belong to the same type as the plug-in;
other plug-ins belonging to the same developer as the plug-in are searched.
13. An apparatus for resource handling, the apparatus comprising:
the first display module is configured to respond that the selected resource to be processed is a text and display a word segmentation control;
the first acquisition module is configured to respond to the triggering operation of the word segmentation control and acquire the word segmentation result of the resource to be processed;
the second display module is configured to display N vocabulary controls, and the vocabulary controls are used for displaying the word segmentation result of the resource to be processed;
the processing module is configured to respond to a triggering operation of a target vocabulary control in the N vocabulary controls, and process a target vocabulary indicated by the target vocabulary control in a target resource processing mode; wherein N is a positive integer.
14. A computer device, characterized in that the device comprises a processor and a memory, in which at least one program code is stored, which is loaded and executed by the processor to implement the resource handling method according to any of claims 1 to 12.
15. A storage medium having stored therein at least one program code, which is loaded and executed by a processor to implement the resource handling method according to any one of claims 1 to 12.
CN202010813651.8A 2020-08-13 2020-08-13 Resource processing method, device, storage medium and computer equipment Active CN112764600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010813651.8A CN112764600B (en) 2020-08-13 2020-08-13 Resource processing method, device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010813651.8A CN112764600B (en) 2020-08-13 2020-08-13 Resource processing method, device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN112764600A true CN112764600A (en) 2021-05-07
CN112764600B CN112764600B (en) 2022-07-12

Family

ID=75693184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010813651.8A Active CN112764600B (en) 2020-08-13 2020-08-13 Resource processing method, device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN112764600B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590542A (en) * 2021-09-30 2021-11-02 统信软件技术有限公司 File searching method, computing device and storage medium
WO2023056899A1 (en) * 2021-10-08 2023-04-13 北京字跳网络技术有限公司 Information processing method and apparatus, and terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160063531A (en) * 2014-11-26 2016-06-07 네이버 주식회사 Cartoon participation translation apparatus and method for cartoon participation translation
CN109800352A (en) * 2018-12-30 2019-05-24 上海触乐信息科技有限公司 Method, system and the terminal device of information push are carried out based on clipbook
CN110471599A (en) * 2019-08-14 2019-11-19 广东小天才科技有限公司 Screen word-selecting searching method, device, electronic equipment and storage medium
CN110691028A (en) * 2019-09-16 2020-01-14 腾讯科技(深圳)有限公司 Message processing method, device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160063531A (en) * 2014-11-26 2016-06-07 네이버 주식회사 Cartoon participation translation apparatus and method for cartoon participation translation
CN109800352A (en) * 2018-12-30 2019-05-24 上海触乐信息科技有限公司 Method, system and the terminal device of information push are carried out based on clipbook
CN110471599A (en) * 2019-08-14 2019-11-19 广东小天才科技有限公司 Screen word-selecting searching method, device, electronic equipment and storage medium
CN110691028A (en) * 2019-09-16 2020-01-14 腾讯科技(深圳)有限公司 Message processing method, device, terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590542A (en) * 2021-09-30 2021-11-02 统信软件技术有限公司 File searching method, computing device and storage medium
WO2023056899A1 (en) * 2021-10-08 2023-04-13 北京字跳网络技术有限公司 Information processing method and apparatus, and terminal and storage medium

Also Published As

Publication number Publication date
CN112764600B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN110471858B (en) Application program testing method, device and storage medium
CN110572716B (en) Multimedia data playing method, device and storage medium
WO2022057435A1 (en) Search-based question answering method, and storage medium
CN111343346B (en) Incoming call pickup method and device based on man-machine conversation, storage medium and equipment
CN112052354A (en) Video recommendation method, video display method and device and computer equipment
CN112764600B (en) Resource processing method, device, storage medium and computer equipment
CN110798327B (en) Message processing method, device and storage medium
CN111339737A (en) Entity linking method, device, equipment and storage medium
CN110837557B (en) Abstract generation method, device, equipment and medium
CN112069350A (en) Song recommendation method, device, equipment and computer storage medium
CN110852093A (en) Text information generation method and device, computer equipment and storage medium
CN112311652B (en) Message sending method, device, terminal and storage medium
CN113190307A (en) Control adding method, device, equipment and storage medium
CN113064981A (en) Group head portrait generation method, device, equipment and storage medium
CN115221888A (en) Entity mention identification method, device, equipment and storage medium
CN113377271A (en) Text acquisition method and device, computer equipment and medium
CN113051485A (en) Group searching method, device, terminal and storage medium
CN111597823A (en) Method, device and equipment for extracting central word and storage medium
CN111858983A (en) Picture type determining method and device, electronic equipment and storage medium
CN111554314A (en) Noise detection method, device, terminal and storage medium
CN114489559B (en) Audio playing method, audio playing processing method and device
CN113220203B (en) Activity entry display method, device, terminal and storage medium
CN112560472B (en) Method and device for identifying sensitive information
CN115019309A (en) Character recognition method, device, equipment and storage medium based on image
CN114756664A (en) Generation method, device and equipment of reply content

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40044200

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant