A data processing method, device and medium
By identifying multiple language styles and providing tabs in the social platform, the problem of low efficiency when users input personalized content is solved, reducing operating costs and improving input efficiency.
Patent Information
- Application Number
- CN202010682653.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-10-01
AI Technical Summary
When users input personalized content on social platforms, they are limited by their expression ability and usually need to refer to other people's content, resulting in low input efficiency and high operating costs.
By determining multiple language styles corresponding to the characteristics of the social environment and providing corresponding tabs, users can switch to obtain preset content of different language styles, reducing operating steps and improving input efficiency.
It saves users' operating costs, improves the input efficiency of personalized content, and provides refined preset content to facilitate users to quickly input the required content.
Smart Images

Figure CN112000877B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data processing method, a data processing device, a device for data processing, and a machine-readable medium. Background Art
[0002] With the development of Internet technology, users can publish their own personalized content on social platforms. For example, users publish personalized comments on Weibo platforms.
[0003] Currently, users have a need to input personalized content, but due to their limited expressiveness, users usually do not know how to generate personalized content, so they often refer to other users' personalized content to complete the input of their own personalized content. For example, users search for "good sentences", "good Weibo sentences", "good sentences excerpts" and so on in search engines, and refer to the good sentences obtained in the search to input their own personalized content.
[0004] The inventors found in the process of implementing the embodiments of the present invention that inputting one's own personalized content by referring to the good sentences obtained by searching usually requires a lot of operation costs, which makes the input efficiency of personalized content low. Summary of the invention
[0005] The embodiments of the present invention provide a data processing method, a data processing device, a device for data processing, and a machine-readable medium, which can save the user's operating cost and improve the input efficiency of personalized content.
[0006] In order to solve the above problem, an embodiment of the present invention discloses a data processing method, including:
[0007] If the input environment feature is a social environment feature, determining multiple language styles corresponding to the social environment feature;
[0008] The first tabs corresponding to the multiple language styles are displayed respectively; one of the multiple first tabs is in a selected state; the content area of the first tab includes: preset content corresponding to the language style, or at least one content label corresponding to the language style.
[0009] On the other hand, an embodiment of the present invention discloses a data processing device, including:
[0010] A language style determination module, configured to determine a plurality of language styles corresponding to the social environment feature if the input environment feature is a social environment feature;
[0011] The first tab display module is used to display the first tabs corresponding to the multiple language styles respectively; one of the multiple first tabs is in a selected state; the content area of the first tab includes: preset content corresponding to the language style, or at least one content label corresponding to the language style.
[0012] In another aspect, an embodiment of the present invention discloses a device for data processing, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0013] If the input environment feature is a social environment feature, determining multiple language styles corresponding to the social environment feature;
[0014] The first tabs corresponding to the multiple language styles are displayed respectively; one of the multiple first tabs is in a selected state; the content area of the first tab includes: preset content corresponding to the language style, or at least one content label corresponding to the language style.
[0015] On the other hand, an embodiment of the present invention discloses one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, enable the device to perform one or more of the aforementioned data processing methods.
[0016] The embodiments of the present invention include the following advantages:
[0017] In an embodiment of the present invention, when the input environment feature is a social environment feature, multiple language styles corresponding to the social environment feature are determined, and corresponding first tabs are provided for each language style, so that the user can switch between different first tabs, thereby obtaining an experience of preset content in different language styles.
[0018] The preset content of the embodiment of the present invention is matched with the social environment characteristics and the language style, and can reflect the language characteristics of the corresponding language style under the conditions of the social environment characteristics. The preset content of the embodiment of the present invention is convenient for user input. For example, the user can put the required preset content on the screen, thereby saving the user's operating cost and improving the input efficiency of personalized content.
[0019] Furthermore, the embodiment of the present invention may further provide at least one content tag of a language style, and the content tag may subdivide the preset content corresponding to the language style to improve the refinement of the preset content. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0021] Figure 1 is a flow chart of steps of a data processing method embodiment 1 of the present invention;
[0022] Figure 2 is a schematic diagram of a first tab in an embodiment of the present invention;
[0023] Figure 3 is a flow chart of steps of a second embodiment of a data processing method of the present invention;
[0024] Figure 4 is a schematic diagram of a tab of the present invention;
[0025] Figure 5 is a structural block diagram of a data processing device embodiment of the present invention;
[0026] Figure 6 is a block diagram of a device 900 for data processing according to the present invention; and
[0027] Figure 7 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] In response to the technical problem of low efficiency in inputting personalized content in related technologies, an embodiment of the present invention provides a data processing solution, which may specifically include: if the input environment feature is a social environment feature, determining multiple language styles corresponding to the social environment feature; displaying first tabs corresponding to the multiple language styles respectively; one of the multiple first tabs is in a selected state; the content area of the first tab specifically includes: preset content corresponding to the language style, or at least one content tag corresponding to the language style.
[0030] The social environment features of the embodiments of the present invention may correspond to social platforms, such as Weibo platform, WeChat platform, community platform, etc. It can be understood that the embodiments of the present invention do not limit the specific social platforms corresponding to the social environment features.
[0031] In an embodiment of the present invention, when the input environment feature is a social environment feature, multiple language styles corresponding to the social environment feature are determined, and corresponding first tabs are provided for each language style, so that the user can switch between different first tabs, thereby obtaining an experience of preset content in different language styles.
[0032] The preset content of the embodiment of the present invention is matched with the social environment characteristics and the language style, and can reflect the language characteristics of the corresponding language style under the conditions of the social environment characteristics. The preset content of the embodiment of the present invention is convenient for user input. For example, the user can put the required preset content on the screen, thereby saving the user's operating cost and improving the input efficiency of personalized content.
[0033] Furthermore, the embodiment of the present invention may further provide at least one content tag of a language style, and the content tag may subdivide the preset content corresponding to the language style to improve the refinement of the preset content.
[0034] Those skilled in the art can determine multiple language styles corresponding to social environment characteristics according to actual application requirements. For example, the above language styles may include at least two of the following language styles: positive energy style, screen-scrolling style, confession style, serious style, and humorous style.
[0035] Among them, positive energy refers to a healthy, optimistic, positive motivation and emotion, and is a positive behavior in social life.
[0036] Screen swiping can represent the phenomenon of repeated information appearing in clusters on the Internet.
[0037] Confession, or confession, means to express one's thoughts or feelings to others. In the context of Weibo, confession can be used by fans to confess to stars.
[0038] Those skilled in the art can determine the content tags corresponding to the preset content of the language style according to actual application requirements. For example, corresponding content tags can be set for entity words.
[0039] In the embodiments of the present invention, an entity is a specific thing or concept. Entities are generally divided into types, such as person entities, movie entities, etc. The same entity can correspond to multiple entity instances. An entity instance is a descriptive page (content) of an entity on the Internet (or other media). For example, the pages of various encyclopedias contain entity instances corresponding to the entity. Examples of entity words may include, but are not limited to, proper nouns such as names of people, places, institutions, books, songs, movies and TV series, products, and brands. In actual applications, entity-related data can be captured from the Internet, and the entity-related data can be analyzed to obtain corresponding entity words, and the entity words can be stored in an entity library. The embodiments of the present invention do not limit the specific entity words and the method of obtaining them.
[0040] Since entity words can represent specific things or concepts, the embodiments of the present invention can support setting corresponding content tags for specific things or concepts, so that the preset content corresponding to the specific things or concepts can be extracted to improve the precision of the preset content.
[0041] For example, a corresponding content tag can be set for a person's name to quickly provide preset content corresponding to the person's name. For another example, a corresponding content tag can be set for an entity word corresponding to an event to quickly provide preset content corresponding to the event.
[0042] The embodiment of the present invention can help users quickly input corresponding personalized content in the case of social environment characteristics. The personalized content can be a content item published by the user, or the personalized content can be a comment content of the user on an existing content item.
[0043] In one embodiment of the present invention, in a comment scenario with social environment characteristics, a first tab corresponding to multiple language styles can be provided to enable the user to obtain preset content in the required language style and put the required preset content on the screen, thereby enabling rapid input of comment content.
[0044] The data processing method provided by the embodiment of the present invention can be applied to an application environment corresponding to a client and a server. The client and the server are located in a wired or wireless network, and the client and the server interact with each other through the wired or wireless network.
[0045] Optionally, the client can be run on a terminal, which specifically includes but is not limited to: a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, a car computer, a desktop computer, a set-top box, a smart TV, a wearable device, etc. The operating system installed in the above terminal may include: IOS, Android, Windows, Linux, etc. It can be understood that the embodiment of the present invention does not limit the specific operating system installed in the terminal.
[0046] The above client can correspond to any application program, such as input method program, social program (such as Weibo, WeChat, community, etc.), etc. Among them, the input method program has a hosting feature, and can be hosted in the host program environment corresponding to the social program to provide services to the host program.
[0047] The server of the embodiment of the present invention may be a cloud server. A cloud server is a simple, efficient, safe, reliable, and elastically scalable computing service. The resource information of the cloud server is dynamic, so that its processing capacity can be elastically scalable.
[0048] Input method refers to the encoding method used to input various texts into computers or other devices (such as mobile phones and tablets). The input interface is a UI (User Interface), which is the medium for interaction and information exchange between the system and the user.
[0049] The embodiment of the present invention can be applied to input method programs of input methods such as keyboard symbol input, handwriting input, and voice input. For the convenience of description, the embodiment of the present invention refers to the encoded string input by the user in the above input methods as an input string. In the field of input methods, for input method programs such as Chinese, Japanese, Korean, or other languages, the input string input by the user can usually be converted into a candidate of the corresponding language. The following mainly uses Chinese as an example to illustrate the input process of the embodiment of the present invention, and other languages can be referenced. It can be understood that the above-mentioned Chinese input method may include but is not limited to full spelling, simplified spelling, strokes, Wubi, etc., and the embodiment of the present invention does not limit the specific input method program corresponding to a certain language.
[0050] According to some embodiments, the input string may include, but is not limited to, a key symbol or a combination of multiple key symbols input by the user through keys. The key symbol may specifically include pinyin, strokes, kana, and the like.
[0051] The embodiment of the present invention can call up the input method program in any application scenario in response to the calling operation. Optionally, the calling operation can be a trigger operation on the input window, etc. The input window can include: an input box, etc. For example, if a click operation on the input box is received, the input method program is called up.
[0052] Optionally, after the input method program is called up, an input interface may be displayed for the user to input the input content through the input interface. The input interface may include a keyboard, which generally includes a plurality of keys. The keys may include character keys and function keys. Function keys may include a setting key, a search key, an enter key, etc. Character keys may further include letter keys, number keys, symbol keys, function keys, etc.
[0053] Method Example 1
[0054] Reference Figure 1 , shows a flow chart of steps of a data processing method embodiment 1 of the present invention, which may specifically include:
[0055] Step 101: If the input environment feature is a social environment feature, then determine multiple language styles corresponding to the social environment feature;
[0056] Step 102: display first tabs corresponding to the above-mentioned multiple language styles respectively; one of the multiple first tabs is in a selected state; the content area of the above-mentioned first tab specifically includes: preset content corresponding to the language style, or at least one content label corresponding to the language style.
[0057] Figure 1 The method embodiment 1 shown can be executed by a client. It can be understood that the embodiment of the present invention does not limit the specific execution subject of the steps included in the method.
[0058] In step 101, the input environment characteristics may include: application environment characteristics and / or interface content characteristics.
[0059] In the embodiment of the present invention, the input environment feature can be used to characterize the environment information of the terminal when the user inputs. Since the above input environment feature is related to the application environment or interface content, the input environment feature can reflect the user's input demand for personalized content to a certain extent.
[0060] In the embodiment of the present invention, it is optional to obtain the identification features of the current object being served by the input method program to determine the corresponding application environment features. For example, when the input method program is running, calling GetModuleFilename to find the program path name "C:\ProgramFiles\MicrosoftOffice\OFFICE11\WINWORD.EXE", it can be determined that the corresponding application environment feature is "WinWord.exe", that is, the input string is entered in the word application.
[0061] In the embodiment of the present invention, the above-mentioned interface content features include: interface text features, which are used to characterize features corresponding to text contained in the interface. The above-mentioned interface text features may include: interface title features, and / or interface text features.
[0062] In an embodiment of the present invention, it is optional that the interface content features can be determined based on the screen image of the interface. The screen image of the interface can be determined by taking a screenshot, and the OCR (Optical Character Recognition) technology can be used to determine the characters corresponding to the screen image, and then the interface content features are determined based on the characters. The interface content features may include: interface title, or interface text, etc. The interface text may include: text features around the input box, etc. The interface content features may include features related to input requirements (referred to as input requirement features), so the interface content features can reflect the user's input requirements to a certain extent. For example, the interface content features of the Weibo evaluation interface may include text related to "evaluation", "sharing", and "forwarding", so the interface content features can be determined as social comment features based on the text related to "evaluation", "sharing", and "forwarding".
[0063] In the embodiment of the present invention, optionally, a mapping relationship between social environment characteristics and language styles may be preset, and then a plurality of language styles corresponding to the social environment characteristics may be determined based on the mapping relationship.
[0064] According to an embodiment, those skilled in the art may determine a plurality of language styles corresponding to social environment characteristics according to actual application requirements. For example, the above-mentioned language styles may include at least two of the following language styles: positive energy style, screen-scrolling style, confession style, serious style, and humorous style. It is understood that the embodiments of the present invention do not limit the specific language style.
[0065] According to another embodiment, the corpus data corresponding to the social environment features may be clustered to obtain multiple language styles corresponding to the social environment features. It is understood that the embodiment of the present invention does not limit the specific method of determining multiple language styles corresponding to the social environment features.
[0066] In step 102, the tab can be a module for setting options. A tab represents an active area. Clicking different tabs can display different contents in its content area.
[0067] The tab of the embodiment of the present invention may include: a status area and a content area. The status area may be used to display the identification of the tab, such as the name of the tab, so that the user can switch the tab according to the identification of the tab. The content area may be used to display the content of the tab.
[0068] According to one embodiment, the content area of the first tab is used to present preset content of the corresponding language style. The preset content may be content set by a person skilled in the art or a user. For example, the preset content of the positive energy style may be "You are the spring rain, the summer wind, the autumn clear sky, the winter warm sun", etc.
[0069] According to another embodiment, the content area of the first tab is used to present content tags of the corresponding language style. The above content tags can subdivide the preset content of the corresponding language style to improve the precision of the preset content. For example, the content tags of a certain language style may include: name tags, event name tags, etc., so that the user can quickly locate the preset content corresponding to the content tag based on the content tag, such as the preset content corresponding to a certain star.
[0070] The embodiment of the present invention can support users to set content tags to achieve customization of content tags.
[0071] The embodiment of the present invention can support operators to set content tags to achieve customization and promotion of content tags. Optionally, after a preset content corresponding to a content tag is displayed, corresponding fee information can be deducted from the operator.
[0072] Reference Figure 2 , which shows a schematic diagram of a first tab in an embodiment of the present invention. Figure 2 The first tab in the application specifically includes: a first tab A, a first tab B and a first tab C, wherein the first tab A is in a selected state, and the content area of the first tab A displays: content tags A1, content tags A2, ... and other content tags for users to select and trigger.
[0073] In an optional embodiment of the present invention, the above method may further include: in response to a triggering operation of a user on a target content tag, displaying preset content corresponding to the target content tag in the content area.
[0074] In an optional embodiment of the present invention, the content area may further include: a refresh control;
[0075] Then the method may further include: in response to the user's triggering operation on the refresh control, switching the preset content in the content area. For example, the preset content corresponding to the first tab A includes: preset content A1, preset content A2, ..., preset content An, etc. Assuming that the content area of the first tab A displays preset content A1, the preset content A1 can be switched to preset content A2 in response to the user's triggering operation on the refresh control; further, the preset content A2 can be switched to preset content A3 in response to the user's triggering operation on the refresh control, and so on.
[0076] In an optional embodiment of the present invention, a mapping relationship between a language style and a preset content can be preset. Optionally, the corpus data corresponding to the social environment characteristics can be classified according to the language style to obtain a corpus corresponding to a language style as the preset content corresponding to the language style.
[0077] In another optional embodiment of the present invention, the preset content corresponding to the language style may be classified according to the content label corresponding to the language style to obtain the preset content corresponding to the content label.
[0078] In the embodiment of the present invention, optionally, in response to a trigger operation (such as a click operation) of a user on preset content, the preset content corresponding to the trigger operation is displayed on the screen to achieve rapid input of personalized content.
[0079] In summary, the data processing method of the embodiment of the present invention, when the input environment feature is a social environment feature, determines multiple language styles corresponding to the social environment feature, and provides corresponding first tabs for each language style, so that the user can switch between different first tabs, thereby obtaining the experience of preset content in different language styles.
[0080] The preset content of the embodiment of the present invention is matched with the social environment characteristics and the language style, and can reflect the language characteristics of the corresponding language style under the conditions of the social environment characteristics. The preset content of the embodiment of the present invention is convenient for user input. For example, the user can put the required preset content on the screen, thereby saving the user's operating cost and improving the input efficiency of personalized content.
[0081] Furthermore, the embodiment of the present invention may further provide at least one content tag of a language style, and the content tag may subdivide the preset content corresponding to the language style to improve the refinement of the preset content.
[0082] Method Example 2
[0083] Reference Figure 3 , shows a flow chart of steps of a second embodiment of a data processing method of the present invention, which may specifically include:
[0084] Step 301: If the input environment feature is a social environment feature, then determine multiple language styles corresponding to the social environment feature;
[0085] Step 302: Display first tabs corresponding to the above-mentioned multiple language styles respectively; the content area of the above-mentioned first tab specifically includes: preset content corresponding to the language style, or at least one content label corresponding to the language style.
[0086] Relative to Figure 1 The method of the first embodiment shown in the figure may further include:
[0087] Step 303: display the second tab; one of the plurality of first tabs and the second tab is in a selected state;
[0088] The content area of the second tab is used to present information related to extended content, where the extended content is obtained based on corpus data corresponding to the social environment feature.
[0089] In an optional embodiment of the present invention, the mathematical model may be trained based on the training data to obtain a data analyzer. The data analyzer may characterize the mapping relationship between the input data (input content) and the output data (expanded content).
[0090] The data analyzer of the embodiment of the present invention can expand the input content according to the characteristics of the corpus data corresponding to the social environment characteristics, so that the obtained expanded content meets the user needs corresponding to the social environment characteristics. Therefore, the embodiment of the present invention provides the expanded content corresponding to the input content and the social environment characteristics, which can save the user's operating costs and improve the input efficiency of personalized content.
[0091] In an embodiment of the present invention, the server can receive an expansion request sent by the client, use rich resources to obtain corresponding expansion content, and send the expansion content to the client. The expansion request can include input content, or the expansion request can include input content and input environment characteristics.
[0092] In an optional embodiment of the present invention, the mathematical model may be trained based on the training data to obtain a data analyzer. The data analyzer may characterize the mapping relationship between the input data (input content) and the output data (expanded content).
[0093] Optionally, training data may be obtained based on corpus data corresponding to social environment features. The embodiment of the present invention may collect corpus data corresponding to social environment features. The corpus data may include: partial corpus and whole corpus, and the partial corpus may correspond to the first part of the whole corpus.
[0094] During the user input process, the user's screen-up behavior can be monitored to obtain partial corpora and whole corpora. Considering that a whole corpus corresponds to at least one screen-up behavior, a whole corpus can correspond to multiple partial corpora. In this way, the data analyzer can have the ability to expand the beginning of the whole corpus.
[0095] For example, the overall corpus A corresponding to the social environment feature includes: "I am so happy, not only because the weather is good today, but also because I met you, you are my forever friend". The overall corpus A can correspond to multiple partial corpora, and the partial corpora can be the first part of the overall corpus A, such as "I am so happy", "I am so happy, not only", "I am so happy, not only because", etc.
[0096] The embodiment of the present invention can train the corresponding data analyzer for the social environment features, so that the data analyzer reflects the features corresponding to the social environment features, etc. For example, the social environment features have the characteristics of media and wide dissemination, which can convey positive energy to improve the enthusiasm of information dissemination.
[0097] Mathematical model is a scientific or engineering model constructed by using mathematical logic methods and mathematical language. Mathematical model is a mathematical structure that is expressed in general or approximate terms using mathematical language with reference to the characteristics or quantitative dependencies of a certain system of things. This mathematical structure is a relational structure depicted with the help of mathematical symbols. Mathematical model can be one or a group of algebraic equations, differential equations, difference equations, integral equations or statistical equations and their combinations, which quantitatively or qualitatively describe the mutual relationship or causal relationship between the variables of the system. In addition to mathematical models described by equations, there are also models described by other mathematical tools, such as algebra, geometry, topology, mathematical logic, etc. Among them, mathematical models describe the behavior and characteristics of the system rather than the actual structure of the system. Among them, machine learning, deep learning methods and other methods can be used to train mathematical models. Machine learning methods may include: linear regression, decision tree, random forest, etc. Deep learning methods may include: convolutional neural networks (CNN), long short-term memory networks (LSTM), gated recurrent units (GRU), etc.
[0098] Reference Figure 4 , which shows a schematic diagram of a tab in an embodiment of the present invention. Figure 4The tabs in the include: a first tab and a second tab. The first tab specifically includes: a first tab A, a first tab B, and a first tab C. The second tab is in a selected state, and the content area of the second tab displays: expanded content corresponding to the content entered in the input box.
[0099] The input box can be used to input content, and the type of input content may include but is not limited to: characters, pictures, audio and video, etc.
[0100] The input content may be content input by the user using an input method, or the input content may be content pasted by the user using a clipboard. It can be understood that the embodiment of the present invention does not limit the specific input content.
[0101] In an optional embodiment of the present invention, the above method may further include:
[0102] If the first trigger condition is met, determining the extended content corresponding to the input content;
[0103] The first trigger condition specifically includes:
[0104] Receiving a trigger operation of a preset button by a user; and / or
[0105] An update operation of the input content is detected.
[0106] When the user has an expansion demand, a request may be generated by triggering a preset button to trigger the expansion operation of the embodiment of the present invention.
[0107] The preset key can be any key in the input keyboard. The preset key can be located on the upper side of the letter keys in the input keyboard to improve the utilization rate of the preset key. Of course, the embodiment of the present invention does not limit the specific position of the preset key.
[0108] Optionally, the icon corresponding to the preset button may be an icon of a preset object, and the preset object may include: a person, a virtual person, an animal, a virtual animal, a plant, a virtual plant, etc. For example, the preset object may be a virtual animal such as a virtual cat or a virtual dog. The preset button icon is a preset object such as a virtual animal, which can increase the attractiveness and participation of the preset button for the user, and on this basis, the accuracy of the operation of the preset button can be improved. For example, the preset object of a virtual animal can play the role of a virtual personal assistant (VPA).
[0109] When the update operation of the input content is detected, it can be considered that the input content has been updated. In this case, the real-time input content can be expanded, thereby improving the accuracy of the expanded content. The update operation of the input content can include: screen operation, for example, the user puts "I am so happy" on the screen. Of course, the update operation of the input content can include: paste operation, etc.
[0110] In an optional embodiment of the present invention, the method may further include: displaying the processing status of the extended content; the processing status specifically includes: idle state, processing state, or processing completed state. The processing status may prompt the processing status information of the extended content to help the user view the extended content in a timely manner. Optionally, the processing status of the extended content may be displayed via the status area of the second tab.
[0111] The idle state may indicate that the processing of the extended content is not in progress. The processing state may indicate that the processing of the extended content is in progress. The processing completed state may indicate that the processing of the extended content is completed, that is, the extended content has been determined or prepared.
[0112] The embodiment of the present invention may represent the above processing status based on icons and / or texts.
[0113] For example, the processing status can be represented by the color of the icon, and different colors can represent different processing statuses. For example, the gray color of the icon represents an idle state; the red color of the icon represents a processing state; and the green color of the icon represents a processing completion state.
[0114] Optionally, different processing states may be represented according to different texts. Further, different idle states may be represented according to different texts.
[0115] For example, when there is no input content in the input box, the first text corresponding to the first idle state is "Try to type some words, and they will be intelligently expanded for you", to prompt the user to provide the input content in the input box. For another example, when there is no expanded content corresponding to the input content, the second text corresponding to the second idle state is "There are no more expansion suggestions for the time being", to prompt the user that there is no corresponding expanded content. For another example, when the number of words in the input content exceeds a threshold, the third text corresponding to the third idle state is "The number of words exceeds the understanding range of XX", and "XX" can be the identifier of a preset object to prompt the user that the number of words in the input content has exceeded the range of the input box.
[0116] Optionally, the processing state can be represented based on an animation. For example, the processing state can be represented based on a preset animation. The preset animation can be played in a loop, and after the i-th (i can be a natural number greater than 0) playback of the preset animation is completed, it is detected whether there is extended content corresponding to the input content, and if so, the processing state is updated, otherwise, the preset animation can be played for the (i+1)th time. After the i-th playback of the preset animation is completed, it is detected whether there is extended content corresponding to the input content, which can avoid the problem of animation flickering caused by detection when the animation is not played.
[0117] In an optional embodiment of the present invention, the method may further include: when the first trigger condition is met, sending an expansion request to the server, and setting the processing state to a processing state.
[0118] In another optional embodiment of the present invention, the method may further include: after determining the extended content corresponding to the input content, for example, after receiving the extended content returned by the server, setting the processing status to a processing completion status.
[0119] In yet another optional embodiment of the present invention, the above method may further include: displaying the first tab and the second tab when a second trigger condition is met.
[0120] The embodiment of the present invention provides two functions, namely, preset content and extended content, through the first tab and the second tab, for users to select and use, thereby increasing the diversity of functions.
[0121] It should be noted that, when applied to an input method program, the first tab and the second tab may be located above the input keyboard to avoid affecting the input behavior of the user using the input keyboard.
[0122] In the embodiment of the present invention, it is optional to support closing of a tab. For example, the tab can be closed via a close control of the tab. For another example, after the expanded content of the first tab is displayed on the screen, or the preset content of the second tab is displayed on the screen, the tab is closed.
[0123] In the embodiment of the present invention, optionally, the second trigger condition specifically includes:
[0124] Trigger condition 1: When there is no input content in the input box, a call-up operation for the input keyboard is received; or
[0125] Trigger condition 2: receiving a trigger operation from the user on a preset button; or
[0126] Trigger condition 3: receiving a trigger operation from a user for a link corresponding to the extended content.
[0127] For trigger condition 1, when there is no input content in the input box, if a call-up operation for the input keyboard is received, the first tab and the second tab can be displayed. In this case, the first tab or the second tab can be set to be in a selected state, for example, the first tab is set to be in a selected state. The first tab of the preset language style can be set to be in a selected state, or any first tab can be set to be in a selected state.
[0128] For trigger condition 2, the corresponding processing methods may include:
[0129] Processing method 1: when receiving a trigger operation of a preset button by the user, if there is no input content in the input box, setting the first tab to a selected state; or
[0130] Processing method 2: when receiving a trigger operation of a preset button by the user, if there is input content in the input box and the number of words in the input content exceeds a threshold, the first tab is set to a selected state; or
[0131] Processing method 3: When a user triggers a preset button, if there is input content in the input box and the number of words in the input content does not exceed the threshold, the selected tab is determined based on the user's historical operation records and / or the processing status of the expanded content.
[0132] For processing method 3, the most recently used tab can be used as the selected tab based on historical operation records.
[0133] Alternatively, when the processing status of the extended content is in the processing state, the tab that was used most recently is used as the tab in the selected state according to the historical operation record.
[0134] Alternatively, when the processing status of the extended content is in the processing completed state, the second tab is taken as the tab in the selected state, and the extended content is provided in the content area of the second tab.
[0135] Alternatively, when the processing state of the extended content is in an idle state, the first tab is used as a tab in a selected state. It should be noted that, when a trigger operation of a user on a preset button is received, an extended request may be sent to the server, and the processing state may be set to a processing state. In this case, the reason why the processing state is in an idle state may include: there is no extended content corresponding to the input content, or the return of the extended content has timed out, etc.
[0136] In the embodiment of the present invention, when the processing status of the extended content is the processing completed status, the second tab can be used as the tab in the selected status, and the extended content can be displayed in the content area of the second tab, so that the user can put the extended content on the screen. For example, the user can output the extended content to the input box by clicking on the extended content, thereby saving the user's input cost.
[0137] In summary, the data processing method of the embodiment of the present invention provides extended content corresponding to the content input in the input box when the input environment feature is a social environment feature. Since the above extended content can be obtained based on the corpus data corresponding to the above social environment feature, the embodiment of the present invention can make the obtained extended content meet the user needs corresponding to the social environment feature. Therefore, the embodiment of the present invention provides extended content corresponding to the input content and the social environment feature, which can save the user's operating costs and improve the input efficiency of personalized content.
[0138] In order to enable those skilled in the art to better understand the embodiments of the present invention, an application example of the tab of the embodiment of the present invention in the context of social environment features is provided herein.
[0139] Example 1:
[0140] When there is no input content in the input box, if a call-up operation for the input keyboard is received, the tabs are displayed and the first tab is selected. The user can be supported to switch the tabs. If a screen-up operation for the content in the content area of the tab is received, the tab can be closed.
[0141] It should be noted that, when there is input content in the input box, if a call-up operation for the input keyboard is received, the tab may not be displayed.
[0142] Example 2:
[0143] When the first tab is in the selected state, if a user's on-screen operation is detected, an expansion request is sent to the server, and the processing state is set to a processing state.
[0144] When in the processing state, the preset animation can be played in a loop. After the i-th playback of the preset animation is completed, it is detected whether there is an extended content corresponding to the input content. If so, the processing state is updated, specifically the processing state is updated to the processing completed state. Otherwise, the preset animation can be played for the (i+1)th time. When the loop playback ends (for example, the playback time exceeds the time threshold), if there is no extended content corresponding to the input content, the processing state can be updated to the idle state.
[0145] The processing completion status can prompt that there is expanded content corresponding to the input content, helping the user to switch the tab to the second tab to realize the display of the expanded content in the second tab.
[0146] During the user's input process, it can be determined whether the number of words in the input content exceeds the threshold. If so, the processing status can be updated to the idle state. Otherwise, in response to the user's on-screen operation, an expansion request can be sent to the server and the processing status can be set to the processing state.
[0147] Example 3:
[0148] When the second tab is in the selected state, if there is no input content in the input box, the processing state may be an idle state, and the aforementioned first text may be displayed in the content area to prompt the user to provide the input content in the input box.
[0149] If the user's on-screen operation is detected, an expansion request is sent to the server, and the processing state is set to a processing state.
[0150] When in the processing state, the content area can display the first text and can play the preset animation in a loop. After the preset animation is played for the i-th time, it is detected whether there is extended content corresponding to the input content. If so, the processing state is updated, specifically the processing state is updated to the processing completed state, and the extended content is displayed in the content area; otherwise, the preset animation can be played for the (i+1)th time. When the loop playback ends (for example, the playback time exceeds the time threshold), if there is no extended content corresponding to the input content, the processing state can be updated to the idle state, and the second text can be displayed in the content area.
[0151] The processing completion status can prompt that there is expanded content corresponding to the input content, helping the user to switch the tab to the second tab to realize the display of the expanded content in the second tab.
[0152] During the user's input process, it can be determined whether the number of words in the input content exceeds a threshold. If so, the processing status can be updated to an idle status, and a third text can be displayed in the content area; otherwise, in response to the user's on-screen operation, an expansion request can be sent to the server, and the processing status can be set to a processing status.
[0153] Example 4:
[0154] When the tab is not displayed, if a user's on-screen operation is detected, an expansion request is sent to the server, and the processing state is set to a processing state.
[0155] If it is detected that there is an extended content corresponding to the input content, a link corresponding to the extended content can be provided. If a trigger operation of the user for the link corresponding to the extended content is received, the tab can be displayed and the second tab can be set to a selected state. In this case, the processing state of the second tab is a processing completion state, and the content area thereof can display the extended content, so that the user can put the extended content on the screen.
[0156] Example 5:
[0157] When the tab is not displayed, if a trigger operation of a preset button is received from the user, it can be determined whether there is input content in the input box.
[0158] If there is no input content in the input box, setting the first tab to a selected state; or
[0159] If there is input content in the input box and the number of words in the input content exceeds a threshold, the first tab is set to a selected state.
[0160] If there is input content in the input box and the number of words in the input content does not exceed a threshold, the tab in the selected state is determined based on the user's historical operation records and / or the processing status of the expanded content.
[0161] For example, based on historical operation records, the most recently used tab can be used as the selected tab.
[0162] Alternatively, when the processing status of the extended content is in the processing state, the tab that was used most recently is used as the tab in the selected state according to the historical operation record.
[0163] Alternatively, when the processing status of the extended content is in the processing completed state, the second tab is taken as the tab in the selected state, and the extended content is provided in the content area of the second tab.
[0164] Alternatively, when the processing state of the extended content is in an idle state, the first tab is used as a tab in a selected state. It should be noted that, when a trigger operation of a user on a preset button is received, an extended request may be sent to the server, and the processing state may be set to a processing state. In this case, the reason why the processing state is in an idle state may include: there is no extended content corresponding to the input content, or the return of the extended content has timed out, etc.
[0165] It should be noted that, for the method embodiments, for the sake of simplicity of description, they are all described as a series of motion action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the described motion actions, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the motion actions involved are not necessarily required by the embodiments of the present invention.
[0166] Device Embodiment
[0167] Reference Figure 5 , shows a structural block diagram of a data processing device embodiment of the present invention, which may specifically include:
[0168] A language style determination module 501 is used to determine a plurality of language styles corresponding to the social environment feature if the input environment feature is a social environment feature;
[0169] The first tab display module 502 is used to display the first tabs corresponding to the above-mentioned multiple language styles respectively; one of the multiple first tabs is in a selected state; the content area of the above-mentioned first tab may include: preset content corresponding to the language style, or at least one content label corresponding to the language style.
[0170] Optionally, the above device may further include:
[0171] The preset content display module is used to display the preset content corresponding to the target content tag in the content area in response to the user's triggering operation on the target content tag.
[0172] Optionally, the above content area may also include: a refresh control;
[0173] The above device may also include:
[0174] The switching module is used to switch the preset content in the above content area in response to the user's triggering operation on the above refresh control.
[0175] Optionally, the above device may further include:
[0176] A second tab display module, used for displaying a second tab; one of the plurality of first tabs and the second tab is in a selected state;
[0177] The content area of the second tab is used to present information related to the extended content, where the extended content is obtained based on the corpus data corresponding to the social environment features.
[0178] Optionally, the above device may further include:
[0179] An extended content determination module, configured to determine extended content corresponding to the input content if a first trigger condition is met;
[0180] The first trigger condition may include:
[0181] Receiving a trigger operation of a preset button by a user; and / or
[0182] An update operation of the above input was detected.
[0183] Optionally, the status area of the second tab is used to display the processing status of the extended content; the processing status may include: idle status, processing status, or processing completed status.
[0184] Optionally, the above device may further include:
[0185] The first state processing module is used to send an expansion request to the server when the first trigger condition is met, and set the above processing state to a processing state.
[0186] Optionally, the above device may further include:
[0187] The second state processing module is used to set the processing state to a processing completion state after determining the extended content corresponding to the input content.
[0188] Optionally, the first tab display module is specifically configured to display the first tab and the second tab when a second trigger condition is met;
[0189] The second trigger condition may include:
[0190] When there is no input content in the input box, a call-up operation for the input keyboard is received; or
[0191] Receiving a trigger operation of a preset button by the user; or
[0192] A trigger operation of the user for the link corresponding to the extended content is received.
[0193] Optionally, the above device may further include:
[0194] The first tab processing module is configured to, upon receiving a trigger operation of a preset button by a user, set the second tab to a selected state if there is no input content in the input box; or
[0195] A second tab processing module is configured to, upon receiving a trigger operation of a preset button by a user, set the second tab to a selected state if there is input content in the input box and the number of words in the input content exceeds a threshold; or
[0196] The third tab processing module is used to determine the tab in the selected state based on the user's historical operation records and / or the processing status of the above-mentioned expanded content when a trigger operation of a preset button is received by the user, if there is input content in the input box and the number of words in the above-mentioned input content does not exceed a threshold.
[0197] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0198] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0199] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0200] An embodiment of the present invention also provides a device for data processing, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: if the input environment feature is a social environment feature, determining multiple language styles corresponding to the social environment feature; displaying first tabs corresponding to the multiple language styles respectively; one of the multiple first tabs is in a selected state; the content area of the first tab includes: preset content corresponding to the language style, or at least one content tag corresponding to the language style.
[0201] Figure 6 1 is a structural block diagram of a device 900 for data processing as a terminal according to an exemplary embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0202] Reference Figure 6, the device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0203] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0204] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0205] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
[0206] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0207] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0208] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0209] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0210] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0211] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0212] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0213] Figure 7 1 is a schematic diagram of the structure of the server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processor 1922 can be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.
[0214] The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and / or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0215] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (terminal or server), enables the device to execute a data processing method, the method comprising: if the input environment feature is a social environment feature, determining multiple language styles corresponding to the social environment feature; displaying first tabs corresponding to the multiple language styles respectively; one of the multiple first tabs is in a selected state; the content area of the first tab includes: preset content corresponding to the language style, or at least one content tag corresponding to the language style.
[0216] The embodiment of the present invention discloses A1, a data processing method, including:
[0217] If the input environment feature is a social environment feature, determining multiple language styles corresponding to the social environment feature;
[0218] The first tabs corresponding to the multiple language styles are displayed respectively; one of the multiple first tabs is in a selected state; the content area of the first tab includes: preset content corresponding to the language style, or at least one content label corresponding to the language style.
[0219] A2. The method according to A1, further comprising:
[0220] In response to a user's triggering operation on a target content tag, preset content corresponding to the target content tag is displayed in the content area.
[0221] A3. According to the method described in A1, the content area further includes: a refresh control;
[0222] The method further comprises:
[0223] In response to a trigger operation of the user on the refresh control, the preset content in the content area is switched.
[0224] A4. The method according to any one of A1 to A3, further comprising:
[0225] The second tab is displayed; one of the plurality of first tabs and the second tab is in a selected state;
[0226] The content area of the second tab is used to present information related to extended content, where the extended content is obtained based on corpus data corresponding to the social environment feature.
[0227] A5. The method according to A4, further comprising:
[0228] If the first trigger condition is met, determining the extended content corresponding to the input content;
[0229] The first trigger condition includes:
[0230] Receiving a trigger operation of a preset button by a user; and / or
[0231] An update operation of the input content is detected.
[0232] A6. According to the method described in A4, the status area of the second tab is used to display the processing status of the extended content; the processing status includes: idle state, processing state, or processing completed state.
[0233] A7. The method according to A6, further comprising:
[0234] When the first trigger condition is met, an expansion request is sent to the server, and the processing state is set to a processing state.
[0235] A8. The method according to A6, further comprising:
[0236] After determining the extended content corresponding to the input content, the processing state is set to a processing completion state.
[0237] A9. The method according to A4, further comprising:
[0238] When a second trigger condition is met, displaying the first tab and the second tab;
[0239] The second trigger condition includes:
[0240] When there is no input content in the input box, a call-up operation for the input keyboard is received; or
[0241] Receiving a trigger operation of a preset button by the user; or
[0242] A trigger operation of a user on a link corresponding to the extended content is received.
[0243] A10. The method according to A9, further comprising:
[0244] When a trigger operation on a preset button is received from the user, if there is no input content in the input box, setting the second tab to a selected state; or
[0245] When a trigger operation on a preset button is received from the user, if there is input content in the input box and the number of words in the input content exceeds a threshold, the second tab is set to a selected state; or
[0246] When a trigger operation of a preset button is received from the user, if there is input content in the input box and the number of words in the input content does not exceed the threshold, the tab in the selected state is determined based on the user's historical operation records and / or the processing status of the expanded content.
[0247] The embodiment of the present invention discloses B11, a data processing device, the device comprising:
[0248] A language style determination module, configured to determine a plurality of language styles corresponding to the social environment feature if the input environment feature is a social environment feature;
[0249] The first tab display module is used to display the first tabs corresponding to the multiple language styles respectively; one of the multiple first tabs is in a selected state; the content area of the first tab includes: preset content corresponding to the language style, or at least one content label corresponding to the language style.
[0250] B12. The device according to B11, further comprising:
[0251] The preset content display module is used to display the preset content corresponding to the target content tag in the content area in response to the user's triggering operation on the target content tag.
[0252] B13. According to the device described in B11, the content area further includes: a refresh control;
[0253] The device also includes:
[0254] The switching module is used to switch the preset content in the content area in response to the user's triggering operation on the refresh control.
[0255] B14. The device according to any one of B11 to B13, further comprising:
[0256] A second tab display module, used for displaying a second tab; one of the plurality of first tabs and the second tab is in a selected state;
[0257] The content area of the second tab is used to present information related to extended content, where the extended content is obtained based on corpus data corresponding to the social environment feature.
[0258] B15. The device according to B14, further comprising:
[0259] an extended content determination module, configured to determine extended content corresponding to the input content if a first trigger condition is met;
[0260] The first trigger condition includes:
[0261] Receiving a trigger operation of a preset button by a user; and / or
[0262] An update operation of the input content is detected.
[0263] B16. According to the device described in B14, the status area of the second tab is used to display the processing status of the extended content; the processing status includes: idle state, processing state, or processing completed state.
[0264] B17. The device according to B16, further comprising:
[0265] The first state processing module is used to send an expansion request to the server when a first trigger condition is met, and set the processing state to a processing state.
[0266] B18. The device according to B16, further comprising:
[0267] The second state processing module is used to set the processing state to a processing completion state after determining the extended content corresponding to the input content.
[0268] B19. According to the device of B14, the first tab display module is specifically configured to display the first tab and the second tab when the second trigger condition is met;
[0269] The second trigger condition includes:
[0270] When there is no input content in the input box, a call-up operation for the input keyboard is received; or
[0271] Receiving a trigger operation of a preset button by the user; or
[0272] A trigger operation of a user on a link corresponding to the extended content is received.
[0273] B20. The device according to B19, further comprising:
[0274] A first tab processing module is configured to, upon receiving a trigger operation of a preset button by a user, set the second tab to a selected state if there is no input content in the input box; or
[0275] A second tab processing module is configured to, upon receiving a trigger operation of a preset button by a user, set the second tab to a selected state if there is input content in the input box and the number of words in the input content exceeds a threshold; or
[0276] The third tab processing module is used to determine the tab in the selected state based on the user's historical operation record and / or the processing status of the expanded content when a trigger operation of a preset button is received by the user, if there is input content in the input box and the number of words of the input content does not exceed a threshold.
[0277] The embodiment of the present invention discloses C21, a device for data processing, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:
[0278] If the input environment feature is a social environment feature, determining multiple language styles corresponding to the social environment feature;
[0279] The first tabs corresponding to the multiple language styles are displayed respectively; one of the multiple first tabs is in a selected state; the content area of the first tab includes: preset content corresponding to the language style, or at least one content label corresponding to the language style.
[0280] C22. The device according to C21, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0281] In response to a user's triggering operation on a target content tag, preset content corresponding to the target content tag is displayed in the content area.
[0282] C23. According to the device described in C1, the content area further includes: a refresh control;
[0283] The device is also configured to execute, by one or more processors, the one or more programs including instructions for:
[0284] In response to a trigger operation of the user on the refresh control, the preset content in the content area is switched.
[0285] C24. The device according to any one of C21 to C23, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0286] The second tab is displayed; one of the plurality of first tabs and the second tab is in a selected state;
[0287] The content area of the second tab is used to present information related to extended content, where the extended content is obtained based on corpus data corresponding to the social environment feature.
[0288] C25. The device according to C24, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0289] If the first trigger condition is met, determining the extended content corresponding to the input content;
[0290] The first trigger condition includes:
[0291] Receiving a trigger operation of a preset button by a user; and / or
[0292] An update operation of the input content is detected.
[0293] C26. According to the device described in C24, the status area of the second tab is used to display the processing status of the extended content; the processing status includes: idle state, processing state, or processing completed state.
[0294] C27. The device according to C26, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0295] When the first trigger condition is met, an expansion request is sent to the server, and the processing state is set to a processing state.
[0296] C28. The device according to C26, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0297] After determining the extended content corresponding to the input content, the processing state is set to a processing completion state.
[0298] C29. The device according to C24, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0299] When a second trigger condition is met, displaying the first tab and the second tab;
[0300] The second trigger condition includes:
[0301] When there is no input content in the input box, a call-up operation for the input keyboard is received; or
[0302] Receiving a trigger operation of a preset button by the user; or
[0303] A trigger operation of a user on a link corresponding to the extended content is received.
[0304] C30. The device according to C29, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0305] When a trigger operation on a preset button is received from the user, if there is no input content in the input box, setting the second tab to a selected state; or
[0306] When a trigger operation on a preset button is received from the user, if there is input content in the input box and the number of words in the input content exceeds a threshold, the second tab is set to a selected state; or
[0307] When a trigger operation of a preset button is received from the user, if there is input content in the input box and the number of words in the input content does not exceed the threshold, the tab in the selected state is determined based on the user's historical operation records and / or the processing status of the expanded content.
[0308] The embodiment of the present invention discloses D31, one or more machine-readable media, on which instructions are stored, which, when executed by one or more processors, enable the device to perform the data processing method as described in one or more of A1 to A10.
[0309] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0310] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
[0311] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
[0312] The data processing method, the data processing device, the device for data processing, and the machine-readable medium provided by the present invention are introduced in detail above. The principles and implementation methods of the present invention are explained in this article using specific examples. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A data processing method, It is characterized in that The method comprises: If the input environment feature is a social environment feature, determining multiple language styles corresponding to the social environment feature; The first tabs corresponding to the multiple language styles are displayed respectively; one of the multiple first tabs is in a selected state; the content area of the first tab includes: preset content corresponding to the language style, or at least one content tag corresponding to the language style; the preset content is content that matches the social environment characteristics and the language style; Displaying a second tab; one of the plurality of first tabs and the second tab is in a selected state; the content area of the second tab is used to present information related to the extended content, where the extended content is obtained by the data analyzer by extending the input content according to the features of the corpus data corresponding to the features of the social environment; In response to a triggering operation on a refresh control in a content area of the first tab, switching the preset content; In response to a trigger operation of the user on the preset content or the extended content, the preset content or the extended content corresponding to the trigger operation is displayed on the screen.
2. The method according to claim 1, It is characterized in that The method further comprises: In response to a trigger operation by a user on a target content tag, preset content corresponding to the target content tag is displayed in a content area of the first tab.
3. The method according to claim 1 or 2, It is characterized in that The method further comprises: If the first trigger condition is met, determining the extended content corresponding to the input content; The first trigger condition includes: Receiving a trigger operation of a preset button by a user; and / or An update operation of the input content is detected.
4. The method according to claim 3, It is characterized in that The status area of the second tab is used to display the processing status of the extended content; the processing status includes: idle state, processing state, or processing completed state.
5. The method according to claim 4, It is characterized in that The method further comprises: When the first trigger condition is met, an expansion request is sent to the server, and the processing state is set to a processing state.
6. The method according to claim 4, It is characterized in that The method further comprises: After determining the extended content corresponding to the input content, the processing state is set to a processing completion state.
7. The method according to claim 1 or 2, It is characterized in that The method further comprises: When a second trigger condition is met, displaying the first tab and the second tab; The second trigger condition includes: When there is no input content in the input box, a call-up operation for the input keyboard is received; or Receiving a trigger operation of a preset button by the user; or A trigger operation of a user on a link corresponding to the extended content is received.
8. The method according to claim 7, It is characterized in that The method further comprises: When a trigger operation on a preset button is received from the user, if there is no input content in the input box, setting the first tab to a selected state; or When a trigger operation on a preset button is received from the user, if there is input content in the input box and the number of words in the input content exceeds a threshold, the first tab is set to a selected state; or When a trigger operation of a preset button is received from the user, if there is input content in the input box and the number of words in the input content does not exceed the threshold, the tab in the selected state is determined based on the user's historical operation records and / or the processing status of the expanded content.
9. A data processing device, It is characterized in that The device comprises: A language style determination module, configured to determine a plurality of language styles corresponding to the social environment feature if the input environment feature is a social environment feature; A first tab display module is used to display first tabs corresponding to the multiple language styles respectively; one of the multiple first tabs is in a selected state; the content area of the first tab includes: preset content corresponding to the language style, or at least one content tag corresponding to the language style; the preset content is content that matches the social environment characteristics and the language style; A second tab display module is used to display a second tab; one of the plurality of first tabs and the second tab is in a selected state; the content area of the second tab is used to present information related to the extended content, where the extended content is obtained by the data analyzer by extending the input content according to the features of the corpus data corresponding to the social environment features; A switching module, configured to switch the preset content in response to a triggering operation of a refresh control in the content area of the first tab; The on-screen module is used to respond to a trigger operation of the user on the preset content or the extended content and to put the preset content or the extended content corresponding to the trigger operation on the screen.
10. The device according to claim 9, It is characterized in that The device also includes: The preset content display module is used to display the preset content corresponding to the target content tag in the content area of the first tab in response to the user's triggering operation on the target content tag.
11. The device according to claim 9 or 10, It is characterized in that The device also includes: an extended content determination module, configured to determine extended content corresponding to the input content if a first trigger condition is met; The first trigger condition includes: Receiving a trigger operation of a preset button by a user; and / or An update operation of the input content is detected.
12. The device according to claim 11, It is characterized in that The status area of the second tab is used to display the processing status of the extended content; the processing status includes: idle state, processing state, or processing completed state.
13. The device according to claim 12, It is characterized in that The device also includes: The first state processing module is used to send an expansion request to the server when a first trigger condition is met, and set the processing state to a processing state.
14. The device according to claim 12, It is characterized in that The device also includes: The second state processing module is used to set the processing state to a processing completion state after determining the extended content corresponding to the input content.
15. The device according to claim 9 or 10, It is characterized in that The first tab display module is specifically configured to display the first tab and the second tab when the second trigger condition is met; The second trigger condition includes: When there is no input content in the input box, a call-up operation for the input keyboard is received; or Receiving a trigger operation of a preset button by the user; or A trigger operation of a user on a link corresponding to the extended content is received.
16. The device according to claim 15, It is characterized in that The device also includes: A first tab processing module is configured to, upon receiving a trigger operation of a user on a preset button, set the first tab to a selected state if there is no input content in the input box; or A second tab processing module is configured to, upon receiving a trigger operation of a preset button by a user, set the first tab to a selected state if there is input content in the input box and the number of words in the input content exceeds a threshold; or The third tab processing module is used to determine the tab in the selected state based on the user's historical operation record and / or the processing status of the expanded content when a trigger operation of a preset button is received by the user, if there is input content in the input box and the number of words of the input content does not exceed a threshold.
17. A device for data processing, It is characterized in that The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: If the input environment feature is a social environment feature, determining multiple language styles corresponding to the social environment feature; Displaying first tabs corresponding to the multiple language styles respectively; One of the plurality of first tabs is in a selected state; The content area of the first tab includes: preset content corresponding to the language style, or at least one content tag corresponding to the language style; the preset content is content that matches the social environment characteristics and the language style; Displaying a second tab; one of the plurality of first tabs and the second tab is in a selected state; the content area of the second tab is used to present information related to the extended content, where the extended content is obtained by the data analyzer by extending the input content according to the features of the corpus data corresponding to the features of the social environment; In response to a triggering operation on a refresh control in a content area of the first tab, switching the preset content; In response to a trigger operation of the user on the preset content or the extended content, the preset content or the extended content corresponding to the trigger operation is displayed on the screen.
18. The device according to claim 17, It is characterized in that The device is also configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: In response to a trigger operation by a user on a target content tag, preset content corresponding to the target content tag is displayed in a content area of the first tab.
19. The device according to claim 17 or 18, It is characterized in that The device is also configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: If the first trigger condition is met, determining the extended content corresponding to the input content; The first trigger condition includes: Receiving a trigger operation of a preset button by a user; and / or An update operation of the input content is detected.
20. The device according to claim 19, It is characterized in that The status area of the second tab is used to display the processing status of the extended content; the processing status includes: idle state, processing state, or processing completed state.
21. The device according to claim 20, It is characterized in that The device is also configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: When the first trigger condition is met, an expansion request is sent to the server, and the processing state is set to a processing state.
22. The device according to claim 20, It is characterized in that The device is also configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: After determining the extended content corresponding to the input content, the processing state is set to a processing completion state.
23. The device according to claim 17 or 18, It is characterized in that The device is also configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: When a second trigger condition is met, displaying the first tab and the second tab; The second trigger condition includes: When there is no input content in the input box, a call-up operation for the input keyboard is received; or Receiving a trigger operation of a preset button by the user; or A trigger operation of a user on a link corresponding to the extended content is received.
24. The device according to claim 23, It is characterized in that The device is also configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: When a trigger operation on a preset button is received from the user, if there is no input content in the input box, setting the first tab to a selected state; or When a trigger operation of a preset button is received from the user, if there is input content in the input box and the number of words in the input content exceeds a threshold, the first tab is set to a selected state; or When a trigger operation of a preset button is received from the user, if there is input content in the input box and the number of words in the input content does not exceed the threshold, the tab in the selected state is determined based on the user's historical operation records and / or the processing status of the expanded content.
25. One or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, cause an apparatus to perform the data processing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Chinese online input method based on Chinese network word base
CN101013342A
Method and equipment for providing input candidate items corresponding to input character string
CN103076892A
Method and system of adjusting sequence of candidate characters in use of input methods
CN103376909A
Input method based on touch screen and input device with touch screen
CN104020950A
Search switching method and search switching device
CN104021193A
