CN112000877A - Data processing method, device and medium - Google Patents
Data processing method, device and medium Download PDFInfo
- Publication number
- CN112000877A CN112000877A CN202010682653.8A CN202010682653A CN112000877A CN 112000877 A CN112000877 A CN 112000877A CN 202010682653 A CN202010682653 A CN 202010682653A CN 112000877 A CN112000877 A CN 112000877A
- Authority
- CN
- China
- Prior art keywords
- content
- tab
- input
- preset
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9536—Search customisation based on social or collaborative filtering
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/01—Social networking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Data Mining & Analysis (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- General Health & Medical Sciences (AREA)
- Economics (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明实施例提供了一种数据处理方法、装置和介质,其中的方法具体包括:若输入环境特征为社交环境特征,则确定所述社交环境特征对应的多种语言风格;分别展示所述多种语言风格对应的第一选项卡;多个第一选项卡中的一者处于选中状态;所述第一选项卡的内容区域包括:对应语言风格的预设内容,或者,对应语言风格的至少一个内容标签。本发明实施例可以节省用户的操作成本,以及提高个性化内容的输入效率。
Embodiments of the present invention provide a data processing method, device, and medium, wherein the method specifically includes: if an input environment feature is a social environment feature, determining multiple language styles corresponding to the social environment feature; a first tab corresponding to a language style; 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 of the corresponding language styles A content tag. The embodiment of the present invention can save the operation cost of the user and improve the input efficiency of personalized content.
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种数据处理方法、一种数据处理装置、一种用于数据处理的装置和一种机器可读介质。The present invention relates to the field of computer technology, and in particular, to a data processing method, a data processing apparatus, a data processing apparatus and a machine-readable medium.
背景技术Background technique
随着互联网技术的发展,用户都可以在社交平台上发布自己的个性化内容。例如,用户在微博平台发布个性化的评论内容等。With the development of Internet technology, users can publish their own personalized content on social platforms. For example, users publish personalized comment content on the Weibo platform.
目前,用户存在针对个性化内容的输入需求,但受到表达能力的影响,用户通常不知如何产生个性化内容,故往往参考其他用户的个性化内容,以完成自身的个性化内容的输入。例如,用户在搜索引擎中搜索“好句大全”、或“微博好句大全”、或“好句摘抄”等,并参考搜索得到的好句,进行自身的个性化内容的输入。At present, users have input requirements for personalized content, but due to the influence of expressive ability, users usually do not know how to generate personalized content, so they often refer to the personalized content of other users to complete the input of their own personalized content. For example, a user searches a search engine for "Good Sentence Daquan", "Weibo Good Sentence Daquan", or "Good Sentence Excerpt", etc., and refers to the good sentence obtained by the search to input his own personalized content.
发明人在实施本发明实施例的过程中发现,参考搜索得到的好句,进行自身的个性化内容的输入,通常需要花费较多的操作成本,这使得个性化内容的输入效率较低。In the process of implementing the embodiments of the present invention, the inventor finds that inputting the personalized content with reference to the good sentences obtained by the search usually requires more operation costs, which makes the inputting efficiency of the personalized content low.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种数据处理方法、数据处理装置、用于数据处理的装置、以及一种机器可读介质,可以节省用户的操作成本,以及提高个性化内容的输入效率。Embodiments of the present invention provide a data processing method, a data processing apparatus, an apparatus for data processing, and a machine-readable medium, which can save a user's operation cost and improve the input efficiency of personalized content.
为了解决上述问题,本发明实施例公开了一种数据处理方法,包括:In order to solve the above problems, an embodiment of the present invention discloses a data processing method, including:
若输入环境特征为社交环境特征,则确定所述社交环境特征对应的多种语言风格;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 selected; 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.
另一方面,本发明实施例公开了一种数据处理装置,包括:On the other hand, an embodiment of the present invention discloses a data processing apparatus, including:
语言风格确定模块,用于若输入环境特征为社交环境特征,则确定所述社交环境特征对应的多种语言风格;a language style determination module, configured to determine multiple language styles corresponding to the social environment feature if the input environment feature is a social environment feature;
第一选项卡展示模块,用于分别展示所述多种语言风格对应的第一选项卡;多个第一选项卡中的一者处于选中状态;所述第一选项卡的内容区域包括:对应语言风格的预设内容,或者,对应语言风格的至少一个内容标签。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: corresponding The preset content of the language style, or at least one content tag corresponding to the language style.
再一方面,本发明实施例公开了一种用于数据处理的装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:In another aspect, an embodiment of the present invention discloses an apparatus for data processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more programs Execution of the one or more programs by the above processor includes instructions for:
若输入环境特征为社交环境特征,则确定所述社交环境特征对应的多种语言风格;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 selected; 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.
又一方面,本发明实施例公开了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行前述一个或多个所述的数据处理方法。In yet another aspect, embodiments of the present invention disclose one or more machine-readable media on which instructions are stored, and when executed by one or more processors, cause an apparatus to perform one or more of the aforementioned data processing methods .
本发明实施例包括以下优点:The embodiments of the present invention include the following advantages:
本发明实施例在输入环境特征为社交环境特征的情况下,确定该社交环境特征对应的多种语言风格,并针对单种语言风格分别提供对应的第一选项卡,以使用户在不同的第一选项卡之间进行切换,进而获得不同语言风格的预设内容的体验。In this 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 respectively provided for a single language style, so that the user can choose between different language styles. Switch between tabs to experience preset content in different language styles.
本发明实施例的预设内容,是与社交环境特征和语言风格相匹配的,可以反映在社交环境特征的条件下、对应语言风格的语言特性。本发明实施例的预设内容便于用户输入,例如,用户可以将所需的预设内容上屏,因此可以节省用户的操作成本,以及提高个性化内容的输入效率。The preset content in the embodiment of the present invention is matched with the characteristics of the social environment and the language style, and can reflect the language characteristics corresponding to the language style under the conditions of the characteristics of the social environment. The preset content in the embodiment of the present invention is convenient for user input. For example, the user can display the desired preset content on the screen, so the user's operation cost can be saved, and the input efficiency of personalized content can be improved.
并且,本发明实施例还可以提供语言风格的至少一个内容标签,上述内容标签可以对对应语言风格的预设内容进行细分,以提高预设内容的精细度。In addition, the embodiment of the present invention may further provide at least one content tag of the language style, and the content tag may subdivide the preset content corresponding to the language style, so as to improve the fineness of the preset content.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1是本发明的一种数据处理方法实施例一的步骤流程图;Fig. 1 is a flow chart of steps of Embodiment 1 of a data processing method of the present invention;
图2是本发明实施例的一种第一选项卡的示意;FIG. 2 is a schematic diagram of a first option card according to an embodiment of the present invention;
图3是本发明的一种数据处理方法实施例二的步骤流程图;3 is a flow chart of the steps of Embodiment 2 of a data processing method of the present invention;
图4是本发明的一种选项卡的示意;4 is a schematic diagram of a tab of the present invention;
图5是本发明实施例的一种数据处理装置实施例的结构框图;5 is a structural block diagram of an embodiment of a data processing apparatus according to an embodiment of the present invention;
图6是本发明的一种用于数据处理的装置900的框图;及6 is a block diagram of an
图7是本发明的一些实施例中服务器的结构示意图。FIG. 7 is a schematic structural diagram of a server in some embodiments of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
针对相关技术中个性化内容的输入效率较低的技术问题,本发明实施例提供了一种数据处理方案,该方案具体可以包括:若输入环境特征为社交环境特征,则确定所述社交环境特征对应的多种语言风格;分别展示所述多种语言风格对应的第一选项卡;多个第一选项卡中的一者处于选中状态;所述第一选项卡的内容区域具体包括:对应语言风格的预设内容,或者,对应语言风格的至少一个内容标签。In view of the technical problem of low input efficiency of personalized content in the related art, an embodiment of the present invention provides a data processing solution, the solution may specifically include: if the input environment feature is a social environment feature, determining the social environment feature The corresponding multiple language styles; the first tabs corresponding to the multiple language styles are displayed respectively; one of the multiple first tabs is selected; the content area of the first tab specifically includes: the corresponding language The preset content of the style, or at least one content tag corresponding to the language style.
本发明实施例的社交环境特征可以对应社交平台,如微博平台、微信平台、社区平台等,可以理解,本发明实施例对于社交环境特征对应的具体社交平台不加以限制。The social environment feature in the embodiment of the present invention may correspond to a social platform, such as a microblog platform, a WeChat platform, a community platform, etc. It can be understood that the embodiment of the present invention does not limit the specific social platform corresponding to the social environment feature.
本发明实施例在输入环境特征为社交环境特征的情况下,确定该社交环境特征对应的多种语言风格,并针对单种语言风格分别提供对应的第一选项卡,以使用户在不同的第一选项卡之间进行切换,进而获得不同语言风格的预设内容的体验。In this 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 respectively provided for a single language style, so that the user can choose between different language styles. Switch between tabs to experience preset content in different language styles.
本发明实施例的预设内容,是与社交环境特征和语言风格相匹配的,可以反映在社交环境特征的条件下、对应语言风格的语言特性。本发明实施例的预设内容便于用户输入,例如,用户可以将所需的预设内容上屏,因此可以节省用户的操作成本,以及提高个性化内容的输入效率。The preset content in the embodiment of the present invention is matched with the characteristics of the social environment and the language style, and can reflect the language characteristics corresponding to the language style under the conditions of the characteristics of the social environment. The preset content in the embodiment of the present invention is convenient for user input. For example, the user can display the desired preset content on the screen, so the user's operation cost can be saved, and the input efficiency of personalized content can be improved.
并且,本发明实施例还可以提供语言风格的至少一个内容标签,上述内容标签可以对对应语言风格的预设内容进行细分,以提高预设内容的精细度。In addition, the embodiment of the present invention may further provide at least one content tag of the language style, and the content tag may subdivide the preset content corresponding to the language style, so as to improve the fineness of the preset content.
本领域技术人员可以根据实际应用需求,确定社交环境特征对应的多种语言风格。例如,上述语言风格可以包括如下语言风格中的至少两种:正能量风格、控评风格、刷屏风格、表白风格、严肃风格和幽默风格等。Those skilled in the art can determine multiple language styles corresponding to the features of the social environment according to actual application requirements. For example, the above language styles may include at least two of the following language styles: positive energy style, criticism style, screen brushing style, expressive style, serious style, humorous style, and the like.
其中,正能量指的是一种健康乐观、积极向上的动力和情感,是社会生活中积极向上的行为。Among them, positive energy refers to a healthy, optimistic, positive motivation and emotion, and is a positive behavior in social life.
控评即操控评论,把微博上好的评论点赞回复使其上热评,不好的评论就要么不搭理要么举报使其避免出现在前列,多用来描述粉丝控制明星相关新闻下的评论走向。Controlling comments means manipulating comments. Like and reply to good comments on Weibo to make them hot comments. Bad comments are either ignored or reported to prevent them from appearing in the forefront. It is mostly used to describe the comments under the news related to stars that are controlled by fans. towards.
刷屏可以表征互联网上某重复信息集中出现的现象。Swiping can represent a phenomenon that occurs in a certain repeated information set on the Internet.
表白,或称告白,意为向他人表示自己的想法或心意。在微博环境下,表白可以用于粉丝向明星告白。Confession, or confession, means to express one's thoughts or feelings to others. In the microblogging environment, confession can be used by fans to confess to celebrities.
本领域技术人员可以根据实际应用需求,确定语言风格的预设内容对应的内容标签。例如,可以针对实体词设置对应的内容标签。Those skilled in the art can determine the content tag 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.
本发明实施例中,实体是一个具体的事物或概念,实体一般会划分类型,例如人物类实体、电影类实体等;同一个实体可以对应多个实体实例,实体实例是在网络(或其它媒介)中对一个实体的描述性页面(内容),例如各种百科的页面中即包含实体对应的实体实例。实体词的例子可以包括但不限于:人名、地名、机构名、书名、歌名、影视剧名、产品名、品牌名等专有名词。在实际应用中,可以从互联网抓取实体相关数据,并对实体相关数据进行分析,以得到对应的实体词,并将该实体词存储至实体库,本发明实施例对于具体的实体词及其获取方式不加以限制。In this embodiment of the present invention, an entity is a specific thing or concept, and entities are generally classified into types, such as character entities, movie entities, etc.; the same entity can correspond to multiple entity instances, and entity instances are located in the network (or other media) ) in the descriptive page (content) of an entity, 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 person names, place names, organization names, book titles, song titles, film and television drama titles, product names, and brand names. In practical applications, entity-related data can be captured from the Internet, and the entity-related data can be analyzed to obtain a corresponding entity word, and store the entity word in an entity database. The method of obtaining is not limited.
由于实体词可以表征具体的事物或概念,因此本发明实施例可以支持针对具体的事物或概念,设置对应的内容标签,这样可以将具体的事物或概念对应的预设内容抽取出来,提高预设内容的精细度。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, and the preset content can be improved. granularity of content.
例如,可以针对某个人名,设置对应的内容标签,以快速提供该人名对应的预设内容。又如,可以针对某事件对应的实体词,设置对应的内容标签,以快速提供该事件对应的预设内容。For example, a corresponding content label can be set for a certain person's name, so as to quickly provide preset content corresponding to the person's name. For another example, a corresponding content label may be set for an entity word corresponding to an event, so as to quickly provide preset content corresponding to the event.
本发明实施例可以在社交环境特征的情况下,帮助用户快速输入对应的个性化内容。该个性化内容可以为用户发布的内容条目,或者,该个性化内容可以为用户针对已有内容条目的评论内容。The embodiment of the present invention can help the user to quickly input the corresponding personalized content under the condition of social environment characteristics. The personalized content may be a content item published by a user, or the personalized content may be a user's comment content on an existing content item.
在本发明的一种实施例中,在社交环境特征的评论场景下,可以提供多种语言风格对应的第一选项卡,以使用户获得所需语言风格的预设内容,并将所需的预设内容上屏,由此可以实现评论内容的快速输入。In an embodiment of the present invention, in the comment scenario of the social environment feature, the first tabs corresponding to multiple language styles can be provided, so that the user can obtain the preset content of the desired language style, and put the desired content in the desired language style. The preset content is displayed on the screen, so that the quick input of the comment content can be realized.
本发明实施例提供的数据处理方法可应用于客户端和服务端对应的应用环境中,客户端与服务端位于有线或无线网络中,通过该有线或无线网络,客户端与服务端进行数据交互。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, where the client and the server are located in a wired or wireless network, and through the wired or wireless network, the client and the server perform data interaction .
可选地,客户端可以运行在终端上,上述终端具体包括但不限:智能手机、平板电脑、电子书阅读器、MP3(动态影像专家压缩标准音频层面3,Moving Picture ExpertsGroup Audio Layer III)播放器、MP4(动态影像专家压缩标准音频层面4,Moving PictureExperts Group Audio Layer IV)播放器、膝上型便携计算机、车载电脑、台式计算机、机顶盒、智能电视机、可穿戴设备等等。上述终端中安装的操作系统可以包括:IOS、安卓、Windows、Linux等,可以理解,本发明实施例对于终端中安装的具体操作系统不加以限制。Optionally, the client can run on a terminal, and the above-mentioned terminal specifically includes but is not limited to: a smart phone, a tablet computer, an e-book reader, and MP3 (Moving Picture Experts Group Audio Layer III) playback Players, MP4 (Moving PictureExperts Group Audio Layer IV) players, laptops, car computers, desktop computers, set-top boxes, smart TVs, wearables, and more. The operating systems installed in the terminal may include: IOS, Android, Windows, Linux, etc. It can be understood that the embodiments of the present invention do not limit the specific operating system installed in the terminal.
上述客户端可以对应任意的应用程序,如输入法程序、社交类程序(如微博、微信、社区等)等。其中,输入法程序具有寄宿特性,可以寄宿在社交类程序对应的宿主程序环境中,向宿主程序提供服务。The above client can correspond to any application program, such as input method program, social program (such as Weibo, WeChat, community, etc.) and so on. Among them, the input method program has a host feature, and can be hosted in the host program environment corresponding to the social program to provide services to the host program.
本发明实施例的服务端可以为云服务端。云服务端是一种简单高效、安全可靠、处理能力可弹性伸缩的计算服务。云服务端的资源信息具有动态性,使得其处理能力可弹性伸缩。The server in the embodiment of the present invention may be a cloud server. The cloud server is a simple, efficient, safe and reliable computing service with elastically scalable processing capabilities. The resource information of the cloud server is dynamic, so that its processing capability can be elastically scaled.
输入法是指为了将各种文字输入计算机或其他设备(如手机、平板电脑)而采用的编码方法。输入界面是一种UI(用户界面,User Interface),UI是系统和用户之间进行交互和信息交换的媒介。Input method refers to a coding method used to input various characters into a computer or other devices (such as mobile phones and tablet computers). The input interface is a UI (User Interface), which is the medium for interaction and information exchange between the system and the user.
本发明实施例可应用于键盘符号输入、手写输入、语音输入等输入方式的输入法程序,为便于描述,本发明实施例将用户在上述输入方式下输入的编码字符串称为输入串。在输入法领域,对于例如中文、日文、韩文、或者其它语言的输入法程序,通常可以将用户输入的输入串转换成相应语言的候选项。以下主要以中文为例对本发明实施例的输入过程进行说明,其它语言相互参照即可。可以理解,上述中文输入法可以包括但不限于全拼、简拼、笔画、五笔等,本发明实施例对于某种语言对应的具体输入法程序不加以限制。Embodiments of the present invention can be applied to input method programs with input methods such as keyboard symbol input, handwriting input, and voice input. For ease of description, the embodiments of the present invention refer to encoded strings input by users in the above input methods as input strings. 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 candidates of the corresponding language. The following mainly takes Chinese as an example to describe the input process of the embodiment of the present invention, and other languages may refer to each other. It can be understood that the above Chinese input methods may include but are not limited to Quanpin, Jianpin, strokes, Wubi, etc. The embodiments of the present invention do not limit the specific input method program corresponding to a certain language.
根据一些实施例,上述输入串可以包括但不限于:用户通过按键所输入的一个按键符号或多个按键符号的组合。上述按键符号具体可以包括:拼音、笔画、假名等。According to some embodiments, the above-mentioned input string may include, but is not limited to, one key symbol or a combination of multiple key symbols input by the user through keys. The above-mentioned key symbols may specifically include: pinyin, strokes, pseudonyms, and the like.
本发明实施例可以响应于调起操作,在任意应用场景下调起输入法程序。可选地,该调起操作可以为针对输入窗口的触发操作等。输入窗口可以包括:输入框等。例如,若接收到针对输入框的点击操作,则调起输入法程序。In the embodiment of the present invention, the input method program can be activated in any application scenario in response to the activation operation. Optionally, the invoking operation may be a triggering operation for the input window or the like. The input window can include: input box and so on. For example, if a click operation on the input box is received, the input method program is invoked.
可选地,在调起输入法程序后,可以显示输入界面,以供用户通过输入界面实现输入内容的输入。输入界面可以包括键盘,键盘中通常包括多个按键。上述按键可以包括:字符按键和功能按键。功能按键可以包括:设置按键、搜索按键、回车按键等。字符按键可以进一步包括:字母按键、数字按键、符号按键、功能按键等。Optionally, after activating the input method program, 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 typically includes a plurality of keys. The above-mentioned keys may include: character keys and function keys. The function buttons may include: a setting button, a search button, an enter button, and the like. The character keys may further include: letter keys, numeric keys, symbol keys, function keys, and the like.
方法实施例一Method Embodiment 1
参照图1,示出了本发明的一种数据处理方法实施例一的步骤流程图,具体可以包括:Referring to FIG. 1, a flow chart of steps of Embodiment 1 of a data processing method of the present invention is shown, which may specifically include:
步骤101、若输入环境特征为社交环境特征,则确定上述社交环境特征对应的多种语言风格;Step 101: If the input environment feature is a social environment feature, determine multiple language styles corresponding to the above-mentioned social environment feature;
步骤102、分别展示上述多种语言风格对应的第一选项卡;多个第一选项卡中的一者处于选中状态;上述第一选项卡的内容区域具体包括:对应语言风格的预设内容,或者,对应语言风格的至少一个内容标签。Step 102: 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 specifically includes: preset content corresponding to the language style, Or, at least one content tag corresponding to the language style.
图1所示方法实施例一可由客户端执行。可以理解,本发明实施例对于方法所包括步骤的具体执行主体不加以限制。Embodiment 1 of the method shown in FIG. 1 may be executed by a client. It can be understood that the embodiments of the present invention do not limit the specific execution subject of the steps included in the method.
步骤101中,上述输入环境特征可以包括:应用程序环境特征、和/或、界面内容特征。In
本发明实施例中,输入环境特征可用于表征用户输入时终端所处的环境信息。由于上述输入环境特征与应用环境或界面内容相关,故输入环境特征可以在一定程度上反映用户对于个性化内容的输入需求。In this embodiment of the present invention, the input environment feature may be used to represent the environment information where the terminal is located when the user inputs. Since the above input environment features are related to the application environment or interface content, the input environment features can reflect the user's input requirements for personalized content to a certain extent.
本发明实施例中,可选的是,可以获取输入法程序正在服务的当前对象的识别特征可以确定对应的应用程序环境特征。例如,输入法程序在运行中,调用GetModuleFilename发现程序路径名“C:\ProgramFiles\MicrosoftOffice\OFFICE11\WINWORD.EXE”,即可确定对应的应用环境特征为“WinWord.exe”,也即输入串是在word应用程序中输入的。In this embodiment of the present invention, optionally, the identification feature of the current object being served by the input method program can be obtained, and the corresponding application program environment feature can be determined. For example, when the input method program is running, call GetModuleFilename to find the program path name "C:\ProgramFiles\MicrosoftOffice\OFFICE11\WINWORD.EXE", then you can determine that the corresponding application environment feature is "WinWord.exe", that is, the input string is entered in the word application.
本发明实施例中,上述界面内容特征包括:界面文本特征,用于表征界面中包含的文本对应的特征。上述界面文本特征可以包括:界面标题特征、和/或、界面正文特征。In this embodiment of the present invention, the above interface content features include: interface text features, which are used to represent features corresponding to text included in the interface. The above interface text features may include: interface title features, and/or interface text features.
本发明实施例中,可选的是,可以依据界面的屏幕图像,确定界面内容特征。可以采用截屏方式,确定界面的屏幕图像,并采用OCR(光学字符识别,Optical CharacterRecognition)技术,确定屏幕图像对应的字符,然后依据字符确定界面内容特征。界面内容特征可以包括:界面标题、或者界面正文等。界面正文可以包括:输入框周边的文本特征等。界面内容特征可以包括与输入需求相关的特征(简称输入需求特征),因此界面内容特征可以在一定程度上反映用户的输入需求。例如,微博评价界面的界面内容特征可以包括:“评价”、“分享”、“转发”相关的文本,因此可以依据“评价”、“分享”、“转发”相关的文本,确定界面内容特征为社交评论特征。In this embodiment of the present invention, optionally, the content feature of the interface may be determined according to a 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 determine the content characteristics of the interface according to the characters. The interface content feature may include: an interface title, or an interface text, and the like. 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 may reflect the user's input requirements to a certain extent. For example, the interface content features of the Weibo evaluation interface may include texts related to "evaluation", "sharing", and "forwarding", so the interface content features can be determined according to the texts related to "evaluation", "sharing" and "forwarding" is the social comment feature.
本发明实施例中,可选的是,可以预置社交环境特征与语言风格之间的映射关系,则可以依据上述映射关系,确定上述社交环境特征对应的多种语言风格。In the embodiment of the present invention, optionally, a mapping relationship between social environment features and language styles may be preset, and then multiple language styles corresponding to the social environment features may be determined according to the mapping relationship.
根据一种实施例,本领域技术人员可以根据实际应用需求,确定社交环境特征对应的多种语言风格。例如,上述语言风格可以包括如下语言风格中的至少两种:正能量风格、控评风格、刷屏风格、表白风格、严肃风格和幽默风格等。可以理解,本发明实施例对于具体的语言风格不加以限制。According to an embodiment, those skilled in the art can determine multiple language styles corresponding to social environment features according to actual application requirements. For example, the above language styles may include at least two of the following language styles: positive energy style, criticism style, screen brushing style, expressive style, serious style, humorous style, and the like. It can be understood that the embodiment of the present invention does not limit the specific language style.
根据另一种实施例,可以对社交环境特征对应的语料数据进行聚类,以得到社交环境特征对应的多种语言风格。可以理解,本发明实施例对于社交环境特征对应的多种语言风格的具体确定方式不加以限制。According to another embodiment, the corpus data corresponding to the social environment feature may be clustered to obtain multiple language styles corresponding to the social environment feature. It can be understood that the embodiments of the present invention do not limit the specific manner of determining the multiple language styles corresponding to the social environment feature.
步骤102中,选项卡可以为设置选项的模块。一个选项卡代表一个活动的区域。点击不同的选项卡,即可在其内容区域展现不同的内容。In
本发明实施例的选项卡可以包括:状态区域和内容区域。状态区域可用于显示选项卡的标识,如选项卡的名称,以使用户依据选项卡的标识,对选项卡进行切换。内容区域可用于显示选项卡的内容。The tabs in this embodiment of the present invention may include: a status area and a content area. The status area can be used to display the identification of the tab, such as the name of the tab, so that the user can switch between the tabs according to the identification of the tab. The content area can be used to display the content of the tab.
根据一种实施例,第一选项卡的内容区域用于呈现对应语言风格的预设内容。预设内容可以为本领域技术人员或用户设置的内容。例如,正能量风格的预设内容可以为“你是春天的雨,夏天的风,秋天的晴空,冬天的暖阳”等。According to an embodiment, the content area of the first tab is used to present preset content corresponding to the 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 can be "you are the rain in spring, the wind in summer, the clear sky in autumn, the warm sun in winter" and so on.
根据另一种实施例,第一选项卡的内容区域用于呈现对应语言风格的内容标签。上述内容标签可以对对应语言风格的预设内容进行细分,以提高预设内容的精细度。例如,某种语言风格的内容标签可以包括:人名标签、事件名标签等,以使用户依据内容标签,快速定位到内容标签对应的预设内容,如某个明星对应的预设内容。According to another embodiment, the content area of the first tab is used to present content labels corresponding to language styles. The above-mentioned content tag can subdivide the preset content corresponding to the language style, so as to improve the precision of the preset content. For example, a content tag of a certain language style may include: person name tag, event name tag, etc., so that the user can quickly locate the preset content corresponding to the content tag, such as preset content corresponding to a star, according to the content tag.
本发明实施例可以支持用户设置内容标签,以实现内容标签的定制化。The embodiment of the present invention can support the user to set content labels, so as to realize the customization of the content labels.
本发明实施例可以支持运营商设置内容标签,以实现内容标签的定制化和推广。可选地,在内容标签对应的一条预设内容被展示后,可以针对运营商,扣减对应的费用信息。The embodiment of the present invention can support the operator to set the content label, so as to realize the customization and promotion of the content label. Optionally, after a piece of preset content corresponding to the content tag is displayed, the corresponding fee information may be deducted for the operator.
参照图2,示出了本发明实施例的一种第一选项卡的示意。图2中的第一选项卡具体包括:第一选项卡A、第一选项卡B和第一选项卡C,其中,第一选项卡A处于选中状态,第一选项卡A的内容区域显示有:内容标签A1、内容标签A2、…等内容标签,以供用户选择和触发。Referring to FIG. 2 , a schematic diagram of a first tab in an embodiment of the present invention is shown. The first tab in FIG. 2 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 labels such as content label A1, content label A2, ... for user selection and triggering.
在本发明的一种可选实施例中,上述方法还可以包括:响应于用户针对目标内容标签的触发操作,在所述内容区域内显示所述目标内容标签对应的预设内容。In an optional embodiment of the present invention, the above method may further include: in response to a user triggering operation on the target content label, displaying preset content corresponding to the target content label in the content area.
在本发明的一种可选实施例中,所述内容区域还可以包括:刷新控件;In an optional embodiment of the present invention, the content area may further include: a refresh control;
则所述方法还可以包括:响应于用户针对所述刷新控件的触发操作,对所述内容区域内的预设内容进行切换。例如,第一选项卡A对应的预设内容包括:预设内容A1、预设内容A2、…、预设内容An等,假设第一选项卡A的内容区域显示有预设内容A1,则可以响应于用户针对所述刷新控件的触发操作,将预设内容A1切换为预设内容A2;进一步,可以响应于用户针对所述刷新控件的触发操作,将预设内容A2切换为预设内容A3等等。Then, the method may further include: in response to a user 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 the preset content A1, you can In response to the user's trigger operation on the refresh control, the preset content A1 is switched to the preset content A2; further, the preset content A2 can be switched to the preset content A3 in response to the user's trigger operation on the refresh control and many more.
在本发明的一种可选实施例中,可以预置语言风格与预设内容之间的映射关系。可选地,可以依据语言风格,对社交环境特征对应的语料数据进行分类,以得到一种语言风格对应的语料,作为该种语言风格对应的预设内容。In an optional embodiment of the present invention, the mapping relationship between the language style and the preset content can be preset. Optionally, the corpus data corresponding to the features of the social environment may be classified according to the language style, so as to obtain the corpus corresponding to a language style as the preset content corresponding to the language style.
在本发明的另一种可选实施例中,可以依据语言风格对应的内容标签,对语言风格对应的预设内容进行分类,以得到一种内容标签对应的预设内容。In another optional embodiment of the present invention, the preset content corresponding to the language style may be classified according to the content tag corresponding to the language style, so as to obtain preset content corresponding to a content tag.
本发明实施例中,可选的是,响应于用户针对预设内容的触发操作(如点击操作),将触发操作对应的预设内容上屏,以实现个性化内容的快速输入。In this embodiment of the present invention, optionally, in response to a user's trigger operation (eg, a click operation) on the preset content, the preset content corresponding to the trigger operation is displayed on the screen, so as to realize rapid input of personalized content.
综上,本发明实施例的数据处理方法,在输入环境特征为社交环境特征的情况下,确定该社交环境特征对应的多种语言风格,并针对单种语言风格分别提供对应的第一选项卡,以使用户在不同的第一选项卡之间进行切换,进而获得不同语言风格的预设内容的体验。To sum up, in the data processing method of the 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 respectively provided for a single language style , so that the user can switch between different first tabs, so as to obtain the experience of preset content in different language styles.
本发明实施例的预设内容,是与社交环境特征和语言风格相匹配的,可以反映在社交环境特征的条件下、对应语言风格的语言特性。本发明实施例的预设内容便于用户输入,例如,用户可以将所需的预设内容上屏,因此可以节省用户的操作成本,以及提高个性化内容的输入效率。The preset content in the embodiment of the present invention is matched with the characteristics of the social environment and the language style, and can reflect the language characteristics corresponding to the language style under the conditions of the characteristics of the social environment. The preset content in the embodiment of the present invention is convenient for user input. For example, the user can display the desired preset content on the screen, so the user's operation cost can be saved, and the input efficiency of personalized content can be improved.
并且,本发明实施例还可以提供语言风格的至少一个内容标签,上述内容标签可以对对应语言风格的预设内容进行细分,以提高预设内容的精细度。In addition, the embodiment of the present invention may further provide at least one content tag of the language style, and the content tag may subdivide the preset content corresponding to the language style, so as to improve the fineness of the preset content.
方法实施例二Method Embodiment 2
参照图3,示出了本发明的一种数据处理方法实施例二的步骤流程图,具体可以包括:Referring to FIG. 3 , a flowchart of steps of Embodiment 2 of a data processing method of the present invention is shown, which may specifically include:
步骤301、若输入环境特征为社交环境特征,则确定上述社交环境特征对应的多种语言风格;Step 301: If the input environment feature is a social environment feature, determine multiple language styles corresponding to the above-mentioned social environment feature;
步骤302、分别展示上述多种语言风格对应的第一选项卡;上述第一选项卡的内容区域具体包括:对应语言风格的预设内容,或者,对应语言风格的至少一个内容标签。Step 302: Display the 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.
相对于图1所示方法实施例一,本实施例的方法还可以包括:With respect to the first method embodiment shown in FIG. 1 , the method of this embodiment may further include:
步骤303、展示第二选项卡;多个第一选项卡和所述第二选项卡中的一者处于选中状态;
所述第二选项卡的内容区域用于呈现扩充内容的相关信息,所述扩充内容为依据所述社交环境特征对应的语料数据得到。The content area of the second tab is used to present relevant information of the expanded content, and the expanded content is obtained according to the corpus data corresponding to the social environment feature.
在本发明的一个可选实施例中,可基于训练数据对数学模型进行训练,以得到数据分析器。数据分析器可表征输入数据(已输入内容)和输出数据(扩充内容)之间的映射关系。In an optional embodiment of the present invention, a mathematical model may be trained based on training data to obtain a data analyzer. The data analyzer can characterize the mapping relationship between input data (input content) and output data (extended content).
本发明实施例的数据分析器可以依据上述社交环境特征对应的语料数据的特征,对上述已输入内容进行扩充,可以使得到的扩充内容符合社交环境特征对应的用户需求。因此,本发明实施例提供已输入内容和社交环境特征对应的扩充内容,可以节省用户的操作成本,以及提高个性化内容的输入效率。The data analyzer in the embodiment of the present invention can expand the above-mentioned input content according to the characteristics of the corpus data corresponding to the above-mentioned social environment characteristics, so that the obtained expanded content can meet user requirements corresponding to the social environment characteristics. Therefore, the embodiment of the present invention provides expanded content corresponding to the input content and the social environment feature, which can save the user's operation cost and improve the input efficiency of the personalized content.
在本发明的一种实施例中,服务端可以接收客户端发送的扩充请求,利用丰富的资源,针对得到对应的扩充内容,并向客户端下发扩充内容。上述扩充请求中可以包括已输入内容,或者,上述扩充请求中可以包括已输入内容和输入环境特征。In an embodiment of the present invention, the server can receive the expansion request sent by the client, utilize abundant resources to obtain the corresponding expanded content, and deliver the expanded content to the client. The above-mentioned expansion request may include input content, or, the above-mentioned expansion request may include input content and input environment characteristics.
在本发明的一个可选实施例中,可基于训练数据对数学模型进行训练,以得到数据分析器。数据分析器可表征输入数据(已输入内容)和输出数据(扩充内容)之间的映射关系。In an optional embodiment of the present invention, a mathematical model may be trained based on training data to obtain a data analyzer. The data analyzer can characterize the mapping relationship between input data (input content) and output data (extended content).
可选地,可以依据社交环境特征对应的语料数据,得到训练数据。本发明实施例可以收集社交环境特征对应的语料数据。上述语料数据可以包括:部分语料和整体语料,部分语料可以对应整体语料的前一部分。Optionally, the training data may be obtained according to the corpus data corresponding to the characteristics of the social environment. The embodiment of the present invention can collect corpus data corresponding to social environment features. The above-mentioned corpus data may include: partial corpus and whole corpus, and the partial corpus may correspond to the previous part of the whole corpus.
在用户的输入过程中,可以监测用户的上屏行为,以得到部分语料和整体语料。考虑到一段整体语料对应至少一次上屏行为,因此,一种整体语料可以对应多种部分语料。这样,可以使得数据分析器具备针对整体语料的开头进行扩充的能力。During the user's input process, the user's on-screen behavior can be monitored to obtain part of the corpus and the whole corpus. Considering that a piece of overall corpus corresponds to at least one screen-on-screen behavior, one overall corpus can correspond to multiple partial corpora. In this way, the data analyzer can be provided with the ability to expand to the beginning of the overall corpus.
例如,社交环境特征对应的整体语料A包括:“我好开心,不仅是因为今天天气好,更是因为见到了你,你是我永远的朋友”。该整体语料A可以对应多种部分语料,上述部分语料可以为整体语料A的前一部分,如“我好开心”、“我好开心,不仅是”、“我好开心,不仅是因为”等。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 saw you, you are my forever friend". The overall corpus A can correspond to a variety of partial corpora, and the above-mentioned partial corpus 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" and so on.
本发明实施例可以针对社交环境特征,分别训练得到对应的数据分析器,以使数据分析器反映社交环境特征对应的特征等。例如,社交环境特征具有媒体性和传播性广的特征,其可以传递正能量,以提高信息传播的积极性。According to the embodiment of the present invention, corresponding data analyzers can be respectively trained according to the social environment features, so that the data analyzers can reflect the features corresponding to the social environment features and the like. For example, the characteristics of social environment have the characteristics of media and wide dissemination, which can transmit positive energy to improve the enthusiasm of information dissemination.
数学模型是运用数理逻辑方法和数学语言建构的科学或工程模型,数学模型是针对参照某种事物系统的特征或数量依存关系,采用数学语言,概括地或近似地表述出的一种数学结构,这种数学结构是借助于数学符号刻画出来的关系结构。数学模型可以是一个或一组代数方程、微分方程、差分方程、积分方程或统计学方程及其组合,通过这些方程定量地或定性地描述系统各变量之间的相互关系或因果关系。除了用方程描述的数学模型外,还有用其他数学工具,如代数、几何、拓扑、数理逻辑等描述的模型。其中,数学模型描述的是系统的行为和特征而不是系统的实际结构。其中,可采用机器学习、深度学习方法等方法进行数学模型的训练,机器学习方法可包括:线性回归、决策树、随机森林等,深度学习方法可包括:卷积神经网络(Convolutional Neural Networks,CNN)、长短期记忆网络(LongShort-Term Memory,LSTM)、门控循环单元(Gated Recurrent Unit,GRU)等。Mathematical model is a scientific or engineering model constructed using mathematical logic methods and mathematical language. Mathematical model is a mathematical structure that is expressed in a general or approximate manner by using mathematical language with reference to the characteristics or quantitative dependencies of a certain system of things. This mathematical structure is a relational structure characterized by mathematical symbols. Mathematical models can be one or a set of algebraic equations, differential equations, difference equations, integral equations or statistical equations and combinations thereof, through which these equations quantitatively or qualitatively describe the interrelationships or causal relationships among 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, the mathematical model describes 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 can include: linear regression, decision trees, random forests, etc., and deep learning methods can include: Convolutional Neural Networks (CNN) ), Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), etc.
参照图4,示出了本发明实施例的一种选项卡的示意。图4中的选项卡包括:第一选项卡和第二选项卡。其中,第一选项卡具体包括:第一选项卡A、第一选项卡B和第一选项卡C,其中,第二选项卡处于选中状态,第二选项卡的内容区域显示有:输入框中已输入内容对应的扩充内容。Referring to FIG. 4 , a schematic diagram of a tab in an embodiment of the present invention is shown. The tabs in Figure 4 include: a first tab and a second tab. The first tab specifically includes: the first tab A, the first tab B and the first tab C, wherein the second tab is in the selected state, and the content area of the second tab displays: the input box The expanded content corresponding to the entered content.
输入框可用于进行内容的输入,已输入内容的类型可以包括但不限于:字符、或图片、或音视频等。The input box can be used to input content, and the type of the input content can include but not limited to: characters, or pictures, or audio and video.
已输入内容可以为用户使用输入法输入的内容,或者,已输入内容可以为用户使用剪贴板粘贴的内容,可以理解,本发明实施例对于具体的已输入内容不加以限制。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.
在本发明的一种可选实施例中,上述方法还可以包括:In an optional embodiment of the present invention, the above method may further include:
若符合第一触发条件,则确定所述已输入内容对应的扩充内容;If the first trigger condition is met, determining the expanded content corresponding to the inputted content;
所述第一触发条件具体包括:The first trigger condition specifically includes:
接收到用户针对预设按键的触发操作;和/或Receive a user's trigger operation for a preset key; and/or
检测到所述已输入内容的更新操作。An update operation of the entered content is detected.
在用户存在扩充需求的情况下,可以通过触发预设按键的方式产生请求,以触发本发明实施例的扩充操作。When the user has an expansion requirement, a request may be generated by triggering a preset button to trigger the expansion operation in the embodiment of the present invention.
预设按键可以为输入键盘中的任意按键。预设按键可以位于输入键盘中字母按键的上侧,以提高预设按键的使用率。当然,本发明实施例对于预设按键的具体位置不加以限制。The preset key can be any key in the input keyboard. The preset keys can be located on the upper side of the letter keys in the input keyboard, so as to improve the usage rate of the preset keys. Certainly, the embodiment of the present invention does not limit the specific positions of the preset keys.
可选地,该预设按键对应的图标可以为预设对象的图标,预设对象可以包括:人、虚拟人、动物、虚拟动物、植物、虚拟植物等。例如,预设对象可以为虚拟猫、虚拟狗等虚拟动物。预设按键的图标为例如虚拟动物的预设对象,可以提高预设按键对于用户的吸引度和参与度,在此基础上可以提高预设按键的操作的准确度。例如虚拟动物的预设对象,可以起到虚拟个人助力(VPA,Virtual Personal Assistant)的作用。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, and the like. For example, the preset objects may be virtual animals such as virtual cats and virtual dogs. The icon of the preset button is, for example, a preset object of a virtual animal, which can improve the attractiveness and participation of the preset button to the user, and on this basis, can improve the accuracy of the operation of the preset button. For example, the preset object of the virtual animal can play the role of a virtual personal assistant (VPA, Virtual Personal Assistant).
在检测到所述已输入内容的更新操作的情况下,可以认为已输入内容发生了更新,此种情况下,可以针对实时的已输入内容进行扩充,因此能够提高扩充内容的准确度。已输入内容的更新操作可以包括:上屏操作,例如,用户将“我好开心”上屏。当然,已输入内容的更新操作可以包括:粘贴操作等。When the update operation of the inputted content is detected, it can be considered that the inputted content has been updated. In this case, the real-time inputted content can be expanded, so that the accuracy of the expanded content can be improved. The update operation of the inputted content may include a screen-on-screen operation, for example, the user puts "I'm so happy" on the screen. Of course, the update operation of the input content may include a paste operation and the like.
在本发明的一种可选实施例中,上述方法还可以包括:显示扩充内容的处理状态;所述处理状态具体包括:空闲状态、处理中状态、或者处理完成状态。上述处理状态可以提示扩充内容的处理状态信息,帮助用户及时地查看扩充内容。可选地,可以经由第二选项卡的状态区域,显示所述扩充内容的处理状态。In an optional embodiment of the present invention, the above method may further include: displaying a processing status of the extended content; the processing status specifically includes: an idle status, a processing status, or a processing completed status. The above processing status can prompt the processing status information of the extended content, so as to help the user to view the extended content in time. Optionally, the processing status of the expanded content may be displayed via the status area of the second tab.
空闲状态可以表征未进行扩充内容的处理。处理中状态可以表征正在进行扩充内容的处理。处理完成状态可以表征已完成扩充内容的处理,也即,已确定或准备了扩充内容。The idle state may indicate that processing of the augmented content is not taking place. The in-process state may indicate that the processing of the augmented content is in progress. The processing completion status may represent that processing of the augmented content has been completed, ie, the augmented content has been determined or prepared.
本发明实施例可以依据图标和/或文本,表征上述处理状态。In this embodiment of the present invention, the above processing state may be represented according to icons and/or texts.
例如,可以依据图标的颜色,表征上述处理状态,不同的颜色可以表征不同的处理状态。例如,图标的颜色为灰色,表征空闲状态;图标的颜色为红色,表征处理中状态;图标的颜色为绿色,表征处理完成状态。For example, the above-mentioned processing state can be represented by the color of the icon, and different colors can represent different processing states. For example, the color of the icon is gray, which represents the idle state; the color of the icon is red, which represents the processing state; the color of the icon is green, which represents the processing completed state.
可选地,可以依据不同的文本,表征不同的处理状态。进一步,可以依据不同的文本,表征不同的空闲状态。Optionally, different processing states can be represented according to different texts. Further, different idle states can be represented according to different texts.
例如,在输入框中不存在已输入内容的情况下,第一空闲状态对应的第一文本为“试着打一些字,将为您智能扩写”,以提示用户在输入框中提供已输入内容。又如,在不存在已输入内容对应的扩充内容的情况下,第二空闲状态对应的第二文本为“暂时没有更多扩写建议了”,以提示用户不存在对应的扩充内容。再如,在已输入内容的字数超过阈值的情况下,第三空闲状态对应的第三文本为“字数超过XX的理解范围”,“XX”可以为预设对象的标识,以提示用户已输入内容的字数已超出输入框的范围。For example, if there is no entered content in the input box, the first text corresponding to the first idle state is "Try to type some words, it will be expanded for you intelligently" to prompt the user to provide the entered content in the input box content. For another example, in the case where there is no extended content corresponding to the inputted content, the second text corresponding to the second idle state is "There are no more extended suggestions for now" to prompt the user that there is no corresponding extended content. For another example, when the number of words of the input content exceeds the threshold, the third text corresponding to the third idle state is "the number of words exceeds the comprehension range of XX", and "XX" can be the identifier of the preset object to remind the user that the input has been The word count of the content exceeds the range of the input box.
可选地,可以依据动画,表征处理状态。例如,可以依据预设动画,表征处理中状态。预设动画可被循环播放,且在预设动画的第i次(i可以为大于0的自然数)播放完成后,检测是否存在已输入内容对应的扩充内容,若是,则对处理状态进行更新,否则,可以进行预设动画的第(i+1)次播放。在预设动画的第i次播放完成后,检测是否存在已输入内容对应的扩充内容,可以避免动画未播放的情况下检测导致的动画闪烁问题。Optionally, the processing state can be characterized according to animation. For example, the processing state can be represented according to 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 (i+1)th playback of the preset animation can be performed. 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 animation flickering problem caused by the detection when the animation is not played.
在本发明的一种可选实施例中,上述方法还可以包括:在符合第一触发条件的情况下,向服务端发送扩充请求,并将所述处理状态置为处理中状态。In an optional embodiment of the present invention, the above 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.
在本发明的另一种可选实施例中,上述方法还可以包括:在确定所述已输入内容对应的扩充内容后,例如,接收到服务端返回的扩充内容后,将所述处理状态置为处理完成状态。In another optional embodiment of the present invention, the above method may further include: after determining the extended content corresponding to the inputted content, for example, after receiving the extended content returned by the server, setting the processing status to For processing completion status.
在本发明的再一种可选实施例中,上述方法还可以包括:在符合第二触发条件的情况下,显示第一选项卡和第二选项卡。In yet another optional embodiment of the present invention, the above method may further include: displaying the first tab and the second tab when the second trigger condition is met.
本发明实施例经由第一选项卡和第二选项卡,提供预设内容和扩充内容两种功能,供用户选择和使用,能够增加功能的多样性。The embodiment of the present invention provides two functions of preset content and expanded content through the first tab and the second tab for the user to select and use, which can increase the diversity of functions.
需要说明的是,在应用于输入法程序的情况下,第一选项卡和第二选项卡可以位于输入键盘的上方,以避免影响用户依据输入键盘进行的输入行为。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 user's input behavior according to the input keyboard.
本发明实施例中,可选的是,可以支持针对选项卡的关闭。例如,可以经由选项卡的关闭控件,关闭选项卡。又如,在将第一选项卡的扩充内容上屏、或将第二选项卡的预设内容上屏后,关闭选项卡。In this embodiment of the present invention, optionally, the closing of tabs may be supported. For example, a tab can be closed via the tab's close control. For another example, after the extended 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.
本发明实施例中,可选的是,所述第二触发条件具体包括:In this embodiment of the present invention, optionally, the second trigger condition specifically includes:
触发条件1、在输入框中不存在已输入内容的情况下,接收到针对输入键盘的调起操作;或者Trigger condition 1. When there is no entered content in the input box, receive a call-up operation for the input keyboard; or
触发条件2、接收到用户针对预设按键的触发操作;或者Trigger condition 2. Receive a user's trigger operation for a preset button; or
触发条件3、接收到用户针对所述扩充内容对应链接的触发操作。Trigger condition 3: Receive a trigger operation from the user for the link corresponding to the expanded content.
对于触发条件1,在输入框中不存在已输入内容的情况下,若接收到针对输入键盘的调起操作,则可以显示第一选项卡和第二选项卡,此种情况下,可以设定第一选项卡或第二选项卡处于选中状态,例如,设定第一选项卡处于选中状态。其中,可以将预设语言风格的第一选项卡置为选中状态,或者,可以将任意的第一选项卡置为选中状态。For trigger condition 1, if 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, you can set The first tab or the second tab is selected, for example, the first tab is set to be selected. Wherein, the first tab of the preset language style may be set to a selected state, or any first tab may be set to a selected state.
对于触发条件2,对应的处理方式可以包括:For trigger condition 2, the corresponding processing methods can include:
处理方式1、在接收到用户针对预设按键的触发操作的情况下,若输入框中不存在已输入内容,则将所述第一选项卡置为选中状态;或者Processing method 1. In the case of receiving the trigger operation of the user for the preset button, if there is no input content in the input box, set the first tab to the selected state; or
处理方式2、在接收到用户针对预设按键的触发操作的情况下,若输入框中存在已输入内容、且所述已输入内容的字数超过阈值,则将所述第一选项卡置为选中状态;或者Processing mode 2: In the case of receiving the trigger operation of the user for the preset button, if there is input content in the input box, and the number of words in the input content exceeds the threshold, set the first tab to be selected status; or
处理方式3、在接收到用户针对预设按键的触发操作的情况下,若输入框中存在已输入内容、且所述已输入内容的字数不超过阈值,则依据用户的历史操作记录、和/或、所述扩充内容的处理状态,确定处于选中状态的选项卡。Processing mode 3. In the case of receiving the trigger operation of the user for the preset button, if there is input content in the input box, and the number of words of the input content does not exceed the threshold, then according to the user's historical operation records, and/ Or, the processing state of the extended content, determine the tab in the selected state.
对于处理方式3,可以依据历史操作记录,将最近一次使用的选项卡作为处于选中状态的选项卡。For processing mode 3, the most recently used tab can be regarded as the selected tab according to the historical operation record.
或者,在扩充内容的处理状态为处理中状态的情况下,依据历史操作记录,将最近一次使用的选项卡作为处于选中状态的选项卡。Or, when the processing status of the extended content is the processing status, the most recently used tab is regarded as the selected tab according to the historical operation record.
或者,在扩充内容的处理状态为处理完成状态的情况下,将第二选项卡作为处于选中状态的选项卡,并在第二选项卡的内容区域提供扩充内容。Or, when the processing state of the extended content is the processing completed state, the second tab is regarded as the tab in the selected state, and the extended content is provided in the content area of the second tab.
或者,在扩充内容的处理状态为休闲状态的情况下,将第一选项卡作为处于选中状态的选项卡。需要说明的是,在接收到用户针对预设按键的触发操作的情况下,可以向服务端发送扩充请求,并将处理状态置为处理中状态。此种情况下,处理状态为休闲状态的原因可以包括:不存在已输入内容对应扩充内容,或者,扩充内容的返回超时等等。Alternatively, when the processing state of the extended content is the idle state, the first tab is set as the tab in the selected state. It should be noted that, in the case of receiving the trigger operation of the user for the preset button, an expansion request may be sent to the server, and the processing state is set to the processing state. In this case, the reason why the processing state is the idle state may include: there is no expanded content corresponding to the input content, or the return of the expanded content times out, and so on.
本发明实施例在扩充内容的处理状态为处理完成状态的情况下,可以将第二选项卡作为处于选中状态的选项卡,并在第二选项卡的内容区域展现扩充内容,以使用户将上述扩充内容上屏。例如,用户可以通过点击扩充内容的方式,将上述扩充内容输出至输入框中,进而可以节省用户的输入成本。In this embodiment of the present invention, when the processing state of the extended content is the processing completed state, the second tab may be used as the tab in the selected state, and the extended content may be displayed in the content area of the second tab, so that the user can Expand content on the screen. For example, the user can click the expanded content to output the expanded content to the input box, thereby saving the user's input cost.
综上,本发明实施例的数据处理方法,在输入环境特征为社交环境特征的情况下,提供输入框中已输入内容对应的扩充内容。由于上述扩充内容可以为依据上述社交环境特征对应的语料数据得到,故本发明实施例可以使得到的扩充内容符合社交环境特征对应的用户需求。因此,本发明实施例提供已输入内容和社交环境特征对应的扩充内容,可以节省用户的操作成本,以及提高个性化内容的输入效率。To sum up, in the data processing method of the embodiment of the present invention, in the case where the input environment feature is a social environment feature, extended content corresponding to the input content in the input box is provided. Since the above-mentioned expanded content can be obtained according to the corpus data corresponding to the above-mentioned social environment characteristics, the embodiment of the present invention can make the obtained expanded content meet user requirements corresponding to the above-mentioned social environment characteristics. Therefore, the embodiment of the present invention provides expanded content corresponding to the input content and the social environment feature, which can save the user's operation cost and improve the input efficiency of the personalized content.
为使本领域技术人员更好地理解本发明实施例,在此提供本发明实施例的选项卡在社交环境特征的情况下的应用示例。For those skilled in the art to better understand the embodiment of the present invention, an application example of the tab of the embodiment of the present invention in the case of a social environment feature is provided here.
示例1、Example 1,
在输入框中不存在已输入内容的情况下,若接收到针对输入键盘的调起操作,则显示选项卡,第一选项卡处于选中状态。可以支持用户进行选项卡的切换。若接收到用户针对选项卡的内容区域中内容的上屏操作,则可以关闭选项卡。In the case that there is no input content in the input box, if a call-up operation for the input keyboard is received, a tab is displayed, and the first tab is in a selected state. It can support users to switch between tabs. The tab may be closed if a user touch-up operation for the content in the content area of the tab is received.
需要说明的是,在输入框中存在已输入内容的情况下,若接收到针对输入键盘的调起操作,则可以不显示选项卡。It should be noted that, when there is already input content in the input box, the tab may not be displayed if a call-up operation for the input keyboard is received.
示例2、Example 2,
在第一选项卡处于选中状态的情况下,若检测到用户的上屏操作,则向服务端发送扩充请求,并将所述处理状态置为处理中状态。When the first tab is in the selected state, if the user's screen-up operation is detected, an expansion request is sent to the server, and the processing state is set to the processing state.
在处于处理中状态的情况下,可以循环播放预设动画。在预设动画的第i次播放完成后,检测是否存在已输入内容对应的扩充内容,若是,则对处理状态进行更新,具体将处理状态更新为处理完成状态,否则,可以进行预设动画的第(i+1)次播放。在循环播放结束(例如,播放时长超过时长阈值)的情况下,若不存在已输入内容对应的扩充内容,则可以将处理状态更新为休闲状态。While in the Processing state, a preset animation can be looped. After the i-th playback of the preset animation is completed, it is detected whether there is extended content corresponding to the input content. If so, the processing status is updated, specifically, the processing status is updated to the processing completed status. Otherwise, the preset animation can be updated. (i+1)th play. When the loop playback ends (for example, the playback duration exceeds the duration threshold), if there is no extended content corresponding to the input content, the processing state may be updated to the idle state.
处理完成状态可以提示存在已输入内容对应的扩充内容,帮助用户将选项卡切换至第二选项卡,以实现针对第二选项卡中扩充内容的上屏。The processing completion status may prompt the existence of the extended content corresponding to the input content, and help the user to switch the tab to the second tab, so as to realize the up-screen for the extended content in the second tab.
在用户的输入过程中,可以判断已输入内容的字数是否超过阈值,若是,则可以将处理状态更新为休闲状态,否则可以响应于用户的上屏操作,向服务端发送扩充请求,并将所述处理状态置为处理中状态。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 state can be updated to the idle state. Otherwise, an expansion request can be sent to the server in response to the user's screen-up operation, and all The processing status is set to the processing status.
示例3、Example 3,
在第二选项卡处于选中状态的情况下,若输入框中不存在已输入内容,则处理状态可以为休闲状态,内容区域中可以显示前述的第一文本,以提示用户在输入框中提供已输入内容。When the second tab is selected, if there is no entered content in the input box, the processing state can be the idle state, and the aforementioned first text can be displayed in the content area to prompt the user to provide the entered content in the input box. Enter content.
若检测到用户的上屏操作,则向服务端发送扩充请求,并将所述处理状态置为处理中状态。If the screen-up operation of the user is detected, an expansion request is sent to the server, and the processing state is set to a processing state.
在处于处理中状态的情况下,内容区域可以显示第一文本,且可以循环播放预设动画。在预设动画的第i次播放完成后,检测是否存在已输入内容对应的扩充内容,若是,则对处理状态进行更新,具体将处理状态更新为处理完成状态,并在内容区域中显示扩充内容;否则,可以进行预设动画的第(i+1)次播放。在循环播放结束(例如,播放时长超过时长阈值)的情况下,若不存在已输入内容对应的扩充内容,则可以将处理状态更新为休闲状态,并在内容区域中显示第二文本。In the case of being in the processing state, the content area may display the first text, and the preset animation may be played in a loop. After the i-th playback of the preset animation is completed, it is detected whether there is extended content corresponding to the input content. If so, the processing status is updated, specifically, the processing status is updated to the processing completed status, and the extended content is displayed in the content area. ; otherwise, the (i+1)th playback of the preset animation can be performed. When the loop playback ends (for example, the playback duration exceeds the duration 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 is displayed in the content area.
处理完成状态可以提示存在已输入内容对应的扩充内容,帮助用户将选项卡切换至第二选项卡,以实现针对第二选项卡中扩充内容的上屏。The processing completion status may prompt the existence of the extended content corresponding to the input content, and help the user to switch the tab to the second tab, so as to realize the up-screen for the extended content in the second tab.
在用户的输入过程中,可以判断已输入内容的字数是否超过阈值,若是,则可以将处理状态更新为休闲状态,并在内容区域中显示第三文本;否则可以响应于用户的上屏操作,向服务端发送扩充请求,并将所述处理状态置为处理中状态。During the user's input process, it can be judged whether the number of words in the input content exceeds the threshold, and if so, the processing state can be updated to the idle state, and a third text can be displayed in the content area; otherwise, in response to the user's screen-up operation, Send an expansion request to the server, and set the processing state to a processing state.
示例4、Example 4,
在未显示选项卡的情况下,若检测到用户的上屏操作,则向服务端发送扩充请求,并将所述处理状态置为处理中状态。In the case where the tab is not displayed, if the user's screen-up operation is detected, an expansion request is sent to the server, and the processing state is set to the processing state.
若检测到存在已输入内容对应的扩充内容,则可以提供扩充内容对应链接。若接收到用户针对所述扩充内容对应链接的触发操作,则可以显示选项卡,并将第二选项卡置为选中状态。此种情况下,第二选项卡的处理状态为处理完成状态,其内容区域可以显示有扩充内容,以便于用户将扩充内容上屏。If it is detected that there is extended content corresponding to the input content, a link corresponding to the extended content can be provided. If a trigger operation by the user for the link corresponding to the expanded content is received, a tab may be displayed, and the second tab may be set to a selected state. In this case, the processing state of the second tab is a processing completed state, and the content area of the second tab may display extended content, so that the user can display the extended content on the screen.
示例5、Example 5,
在未显示选项卡的情况下,若接收到用户针对预设按键的触发操作,则可以判断输入框中是否存在已输入内容。In the case where the tab is not displayed, if a trigger operation of the user for the preset key is received, it can be determined whether there is input content in the input box.
若输入框中不存在已输入内容,则将所述第一选项卡置为选中状态;或者If there is no entered content in the input box, set the first tab to a selected state; or
若输入框中存在已输入内容、且所述已输入内容的字数超过阈值,则将所述第一选项卡置为选中状态。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.
若输入框中存在已输入内容、且所述已输入内容的字数不超过阈值,则依据用户的历史操作记录、和/或、所述扩充内容的处理状态,确定处于选中状态的选项卡。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 according to the user's historical operation record and/or the processing state of the expanded content.
例如,可以依据历史操作记录,将最近一次使用的选项卡作为处于选中状态的选项卡。For example, the most recently used tab can be selected as the selected tab based on the history of operations.
或者,在扩充内容的处理状态为处理中状态的情况下,依据历史操作记录,将最近一次使用的选项卡作为处于选中状态的选项卡。Or, when the processing status of the extended content is the processing status, the most recently used tab is regarded as the selected tab according to the historical operation record.
或者,在扩充内容的处理状态为处理完成状态的情况下,将第二选项卡作为处于选中状态的选项卡,并在第二选项卡的内容区域提供扩充内容。Or, when the processing state of the extended content is the processing completed state, the second tab is regarded as the tab in the selected state, and the extended content is provided in the content area of the second tab.
或者,在扩充内容的处理状态为休闲状态的情况下,将第一选项卡作为处于选中状态的选项卡。需要说明的是,在接收到用户针对预设按键的触发操作的情况下,可以向服务端发送扩充请求,并将处理状态置为处理中状态。此种情况下,处理状态为休闲状态的原因可以包括:不存在已输入内容对应扩充内容,或者,扩充内容的返回超时等等。Alternatively, when the processing state of the extended content is the idle state, the first tab is set as the tab in the selected state. It should be noted that, in the case of receiving the trigger operation of the user for the preset button, an expansion request may be sent to the server, and the processing state is set to the processing state. In this case, the reason why the processing state is the idle state may include: there is no expanded content corresponding to the input content, or the return of the expanded content times out, and so on.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的运动动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的运动动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的运动动作并不一定是本发明实施例所必须的。It should be noted that, for the sake of simple description, the method embodiments are all expressed 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 described motion action sequences , because according to embodiments of the present invention, certain steps may 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 motions involved are not necessarily required by the embodiments of the present invention.
装置实施例Device embodiment
参照图5,示出了本发明的一种数据处理装置实施例的结构框图,具体可以包括:Referring to FIG. 5, a structural block diagram of an embodiment of a data processing apparatus of the present invention is shown, which may specifically include:
语言风格确定模块501,用于若输入环境特征为社交环境特征,则确定上述社交环境特征对应的多种语言风格;A language
第一选项卡展示模块502,用于分别展示上述多种语言风格对应的第一选项卡;多个第一选项卡中的一者处于选中状态;上述第一选项卡的内容区域可以包括:对应语言风格的预设内容,或者,对应语言风格的至少一个内容标签。The first
可选地,上述装置还可以包括:Optionally, the above device may also include:
预设内容展示模块,用于响应于用户针对目标内容标签的触发操作,在上述内容区域内显示上述目标内容标签对应的预设内容。The preset content display module is configured to display the preset content corresponding to the above target content label in the above content area in response to the user's triggering operation on the target content label.
可选地,上述内容区域还可以包括:刷新控件;Optionally, the above content area may further include: a refresh control;
上述装置还可以包括:The above device may also include:
切换模块,用于响应于用户针对上述刷新控件的触发操作,对上述内容区域内的预设内容进行切换。The switching module is configured to switch the preset content in the content area in response to the user's triggering operation on the refresh control.
可选地,上述装置还可以包括:Optionally, the above device may also include:
第二选项卡展示模块,用于展示第二选项卡;多个第一选项卡和上述第二选项卡中的一者处于选中状态;The second tab display module is used to display the second tab; one of the plurality of first tabs and the above-mentioned second tab is in a selected state;
上述第二选项卡的内容区域用于呈现扩充内容的相关信息,上述扩充内容为依据上述社交环境特征对应的语料数据得到。The content area of the second tab is used to present relevant information of the expanded content, and the expanded content is obtained according to the corpus data corresponding to the above-mentioned social environment feature.
可选地,上述装置还可以包括:Optionally, the above device may also include:
扩充内容确定模块,用于若符合第一触发条件,则确定上述已输入内容对应的扩充内容;an expanded content determination module, configured to determine the expanded content corresponding to the above-mentioned input content if the first trigger condition is met;
上述第一触发条件可以包括:The above-mentioned first trigger condition may include:
接收到用户针对预设按键的触发操作;和/或Receive a user's trigger operation for a preset key; and/or
检测到上述已输入内容的更新操作。An update operation of the above entered content was detected.
可选地,上述第二选项卡的状态区域用于显示上述扩充内容的处理状态;上述处理状态可以包括:空闲状态、处理中状态、或者处理完成状态。Optionally, the status area of the second tab is used to display the processing status of the extended content; the processing status may include an idle status, a processing status, or a processing completed status.
可选地,上述装置还可以包括:Optionally, the above device may also include:
第一状态处理模块,用于在符合第一触发条件的情况下,向服务端发送扩充请求,并将上述处理状态置为处理中状态。The first state processing module is configured 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.
可选地,上述装置还可以包括:Optionally, the above device may also include:
第二状态处理模块,用于在确定上述已输入内容对应的扩充内容后,将上述处理状态置为处理完成状态。The second state processing module is configured to set the processing state to a processing completion state after determining the expanded content corresponding to the input content.
可选地,上述第一选项卡展示模块,具体用于在符合第二触发条件的情况下,显示第一选项卡和第二选项卡;Optionally, the above-mentioned first tab display module is specifically configured to display the first tab and the second tab when the second trigger condition is met;
上述第二触发条件可以包括:The above-mentioned second trigger condition may include:
在输入框中不存在已输入内容的情况下,接收到针对输入键盘的调起操作;或者In the case where there is no entered content in the input box, a call-up operation for the input keyboard is received; or
接收到用户针对预设按键的触发操作;或者Receive a user trigger operation for a preset key; or
接收到用户针对上述扩充内容对应链接的触发操作。A triggering operation from the user for the link corresponding to the expanded content is received.
可选地,上述装置还可以包括:Optionally, the above device may also include:
第一选项卡处理模块,用于在接收到用户针对预设按键的触发操作的情况下,若输入框中不存在已输入内容,则将上述第二选项卡置为选中状态;或者The first tab processing module is configured to set the above-mentioned second tab to the selected state if there is no input content in the input box under the condition of receiving the trigger operation of the user for the preset key; or
第二选项卡处理模块,用于在接收到用户针对预设按键的触发操作的情况下,若输入框中存在已输入内容、且上述已输入内容的字数超过阈值,则将上述第二选项卡置为选中状态;或者The second tab processing module is configured to, in the case of receiving a trigger operation by the user for the preset button, if there is input content in the input box and the number of characters in the input content exceeds the threshold, then the second tab set to selected; or
第三选项卡处理模块,用于在接收到用户针对预设按键的触发操作的情况下,若输入框中存在已输入内容、且上述已输入内容的字数不超过阈值,则依据用户的历史操作记录、和/或、上述扩充内容的处理状态,确定处于选中状态的选项卡。The third tab processing module is configured to, in the case of receiving the user's triggering operation for the preset button, if there is input content in the input box, and the number of characters in the input content does not exceed the threshold, then according to the user's historical operation Record, and/or, the processing status of the above-mentioned extended content, and determine the tab in the selected state.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned 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 described in detail here.
本发明实施例还提供了一种用于数据处理的装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:若输入环境特征为社交环境特征,则确定所述社交环境特征对应的多种语言风格;分别展示所述多种语言风格对应的第一选项卡;多个第一选项卡中的一者处于选中状态;所述第一选项卡的内容区域包括:对应语言风格的预设内容,或者,对应语言风格的至少一个内容标签。Embodiments of the present invention also provide an apparatus for data processing, including a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors Executing the one or more programs includes instructions for performing the following operations: if the input environment feature is a social environment feature, then determining multiple language styles corresponding to the social environment feature; respectively displaying the corresponding language styles of the multiple language styles A first tab; 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.
图6是根据一示例性实施例示出的一种用于数据处理的装置900作为终端时的结构框图。例如,装置900可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 6 is a structural block diagram of an
参照图6,装置900可以包括以下一个或多个组件:处理组件902,存储器904,电源组件906,多媒体组件908,音频组件910,输入/输出(I/O)的接口912,传感器组件914,以及通信组件916。6, the
处理组件902通常控制装置900的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件902可以包括一个或多个处理器920来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件902可以包括一个或多个模块,便于处理组件902和其他组件之间的交互。例如,处理组件902可以包括多媒体模块,以方便多媒体组件908和处理组件902之间的交互。The
存储器904被配置为存储各种类型的数据以支持在设备900的操作。这些数据的示例包括用于在装置900上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器904可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件906为装置900的各种组件提供电力。电源组件906可以包括电源管理系统,一个或多个电源,及其他与为装置900生成、管理和分配电力相关联的组件。
多媒体组件908包括在所述装置900和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件908包括一个前置摄像头和/或后置摄像头。当设备900处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件910被配置为输出和/或输入音频信号。例如,音频组件910包括一个麦克风(MIC),当装置900处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器904或经由通信组件916发送。在一些实施例中,音频组件910还包括一个扬声器,用于输出音频信号。
I/O接口912为处理组件902和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件914包括一个或多个传感器,用于为装置900提供各个方面的状态评估。例如,传感器组件914可以检测到设备900的打开/关闭状态,组件的相对定位,例如所述组件为装置900的显示器和小键盘,传感器组件914还可以检测装置900或装置900一个组件的位置改变,用户与装置900接触的存在或不存在,装置900方位或加速/减速和装置900的温度变化。传感器组件914可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件914还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件914还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件916被配置为便于装置900和其他设备之间有线或无线方式的通信。装置900可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件916经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件916还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置900可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment,
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器904,上述指令可由装置900的处理器920执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a
图7是本发明的一些实施例中服务器的结构示意图。该服务器1900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processingunits,CPU)1922(例如,一个或一个以上处理器)和存储器1932,一个或一个以上存储应用程序1942或数据1944的存储介质1930(例如一个或一个以上海量存储设备)。其中,存储器1932和存储介质1930可以是短暂存储或持久存储。存储在存储介质1930的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1922可以设置为与存储介质1930通信,在服务器1900上执行存储介质1930中的一系列指令操作。FIG. 7 is a schematic structural diagram of a server in some embodiments of the present invention. The
服务器1900还可以包括一个或一个以上电源1926,一个或一个以上有线或无线网络接口1950,一个或一个以上输入输出接口1958,一个或一个以上键盘1956,和/或,一个或一个以上操作系统1941,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置(终端或者服务器)的处理器执行时,使得装置能够执行一种数据处理方法,所述方法包括:若输入环境特征为社交环境特征,则确定所述社交环境特征对应的多种语言风格;分别展示所述多种语言风格对应的第一选项卡;多个第一选项卡中的一者处于选中状态;所述第一选项卡的内容区域包括:对应语言风格的预设内容,或者,对应语言风格的至少一个内容标签。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (terminal or server), the device can execute a data processing method, the method comprising: if an input environment is If the feature is a social environment feature, then multiple language styles corresponding to the social environment feature are determined; the first tabs corresponding to the multiple language styles are displayed respectively; one of the multiple first tabs is selected; all 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.
本发明实施例公开了A1、一种数据处理方法,包括:The embodiment of the present invention discloses A1, a data processing method, comprising:
若输入环境特征为社交环境特征,则确定所述社交环境特征对应的多种语言风格;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 selected; 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.
A2、根据A1所述的方法,所述方法还包括:A2. The method according to A1, further comprising:
响应于用户针对目标内容标签的触发操作,在所述内容区域内显示所述目标内容标签对应的预设内容。In response to the user's triggering operation on the target content label, the preset content corresponding to the target content label is displayed in the content area.
A3、根据A1所述的方法,所述内容区域还包括:刷新控件;A3. According to the method of A1, the content area further includes: a refresh control;
所述方法还包括:The method also includes:
响应于用户针对所述刷新控件的触发操作,对所述内容区域内的预设内容进行切换。In response to a user's triggering operation on the refresh control, the preset content in the content area is switched.
A4、根据A1至A3中任一所述的方法,所述方法还包括:A4. The method according to any one of A1 to A3, further comprising:
展示第二选项卡;多个第一选项卡和所述第二选项卡中的一者处于选中状态;displaying a second tab; one of the plurality of first tabs and the second tab is selected;
所述第二选项卡的内容区域用于呈现扩充内容的相关信息,所述扩充内容为依据所述社交环境特征对应的语料数据得到。The content area of the second tab is used to present relevant information of the expanded content, and the expanded content is obtained according to the corpus data corresponding to the social environment feature.
A5、根据A4所述的方法,所述方法还包括:A5. The method according to A4, further comprising:
若符合第一触发条件,则确定所述已输入内容对应的扩充内容;If the first trigger condition is met, determining the expanded content corresponding to the inputted content;
所述第一触发条件包括:The first trigger condition includes:
接收到用户针对预设按键的触发操作;和/或Receive a user's trigger operation for a preset key; and/or
检测到所述已输入内容的更新操作。An update operation of the entered content is detected.
A6、根据A4所述的方法,所述第二选项卡的状态区域用于显示所述扩充内容的处理状态;所述处理状态包括:空闲状态、处理中状态、或者处理完成状态。A6. The method according to A4, wherein the status area of the second tab is used to display the processing status of the extended content; the processing status includes: idle status, processing status, or processing completed status.
A7、根据A6所述的方法,所述方法还包括:A7. The method according to A6, further comprising:
在符合第一触发条件的情况下,向服务端发送扩充请求,并将所述处理状态置为处理中状态。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.
A8、根据A6所述的方法,所述方法还包括:A8. The method according to A6, further comprising:
在确定所述已输入内容对应的扩充内容后,将所述处理状态置为处理完成状态。After determining the extended content corresponding to the input content, the processing state is set to a processing completion state.
A9、根据A4所述的方法,所述方法还包括:A9. The method according to A4, further comprising:
在符合第二触发条件的情况下,显示第一选项卡和第二选项卡;Under the condition that the second trigger condition is met, display the first tab and the second tab;
所述第二触发条件包括:The second trigger condition includes:
在输入框中不存在已输入内容的情况下,接收到针对输入键盘的调起操作;或者In the case where there is no entered content in the input box, a call-up operation for the input keyboard is received; or
接收到用户针对预设按键的触发操作;或者Receive a user trigger operation for a preset key; or
接收到用户针对所述扩充内容对应链接的触发操作。A triggering operation from the user for the link corresponding to the expanded content is received.
A10、根据A9所述的方法,所述方法还包括:A10. The method according to A9, further comprising:
在接收到用户针对预设按键的触发操作的情况下,若输入框中不存在已输入内容,则将所述第二选项卡置为选中状态;或者In the case of receiving the user's trigger operation for the preset key, if there is no input content in the input box, the second tab is set to the selected state; or
在接收到用户针对预设按键的触发操作的情况下,若输入框中存在已输入内容、且所述已输入内容的字数超过阈值,则将所述第二选项卡置为选中状态;或者In the case of receiving a user's triggering operation for a preset key, if there is already entered content in the input box and the number of characters in the entered content exceeds a threshold, the second tab is set to a selected state; or
在接收到用户针对预设按键的触发操作的情况下,若输入框中存在已输入内容、且所述已输入内容的字数不超过阈值,则依据用户的历史操作记录、和/或、所述扩充内容的处理状态,确定处于选中状态的选项卡。In the case of receiving a user's trigger operation for a preset key, if there is input content in the input box, and the number of words in the input content does not exceed the threshold, the user's historical operation records, and/or the The processing status of the augmented content, which determines which tab is selected.
本发明实施例公开了B11、一种数据处理装置,所述装置包括:The embodiment of the present invention discloses B11, a data processing apparatus, and the apparatus includes:
语言风格确定模块,用于若输入环境特征为社交环境特征,则确定所述社交环境特征对应的多种语言风格;a language style determination module, configured to determine multiple language styles corresponding to the social environment feature if the input environment feature is a social environment feature;
第一选项卡展示模块,用于分别展示所述多种语言风格对应的第一选项卡;多个第一选项卡中的一者处于选中状态;所述第一选项卡的内容区域包括:对应语言风格的预设内容,或者,对应语言风格的至少一个内容标签。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: corresponding The preset content of the language style, or at least one content tag corresponding to the language style.
B12、根据B11所述的装置,所述装置还包括:B12. The device according to B11, further comprising:
预设内容展示模块,用于响应于用户针对目标内容标签的触发操作,在所述内容区域内显示所述目标内容标签对应的预设内容。A preset content display module, configured to display preset content corresponding to the target content tag in the content area in response to a user triggering operation on the target content tag.
B13、根据B11所述的装置,所述内容区域还包括:刷新控件;B13. The device according to B11, wherein the content area further comprises: a refresh control;
所述装置还包括:The device also includes:
切换模块,用于响应于用户针对所述刷新控件的触发操作,对所述内容区域内的预设内容进行切换。The switching module is configured to switch the preset content in the content area in response to a triggering operation of the refresh control by the user.
B14、根据B11至B13中任一所述的装置,所述装置还包括:B14. The device according to any one of B11 to B13, further comprising:
第二选项卡展示模块,用于展示第二选项卡;多个第一选项卡和所述第二选项卡中的一者处于选中状态;The second tab display module is used to display the 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 relevant information of the expanded content, and the expanded content is obtained according to the corpus data corresponding to the social environment feature.
B15、根据B14所述的装置,所述装置还包括:B15. The device according to B14, further comprising:
扩充内容确定模块,用于若符合第一触发条件,则确定所述已输入内容对应的扩充内容;an expanded content determination module, configured to determine the expanded content corresponding to the inputted content if the first trigger condition is met;
所述第一触发条件包括:The first trigger condition includes:
接收到用户针对预设按键的触发操作;和/或Receive a user's trigger operation for a preset key; and/or
检测到所述已输入内容的更新操作。An update operation of the entered content is detected.
B16、根据B14所述的装置,所述第二选项卡的状态区域用于显示所述扩充内容的处理状态;所述处理状态包括:空闲状态、处理中状态、或者处理完成状态。B16. The apparatus according to B14, wherein the status area of the second tab is used to display the processing status of the extended content; the processing status includes: an idle status, a processing status, or a processing completed status.
B17、根据B16所述的装置,所述装置还包括:B17. The device according to B16, further comprising:
第一状态处理模块,用于在符合第一触发条件的情况下,向服务端发送扩充请求,并将所述处理状态置为处理中状态。The first state processing module is configured to send an expansion request to the server when the first trigger condition is met, and set the processing state to a processing state.
B18、根据B16所述的装置,所述装置还包括:B18. The device according to B16, further comprising:
第二状态处理模块,用于在确定所述已输入内容对应的扩充内容后,将所述处理状态置为处理完成状态。The second state processing module is configured to set the processing state to a processing completed state after determining the expanded content corresponding to the input content.
B19、根据B14所述的装置,所述第一选项卡展示模块,具体用于在符合第二触发条件的情况下,显示第一选项卡和第二选项卡;B19. The device according to B14, wherein 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:
在输入框中不存在已输入内容的情况下,接收到针对输入键盘的调起操作;或者In the case where there is no entered content in the input box, a call-up operation for the input keyboard is received; or
接收到用户针对预设按键的触发操作;或者Receive a user trigger operation for a preset key; or
接收到用户针对所述扩充内容对应链接的触发操作。A triggering operation from the user for the link corresponding to the expanded content is received.
B20、根据B19所述的装置,所述装置还包括:B20. The device according to B19, further comprising:
第一选项卡处理模块,用于在接收到用户针对预设按键的触发操作的情况下,若输入框中不存在已输入内容,则将所述第二选项卡置为选中状态;或者a first tab processing module, configured to set the second tab to a selected state if there is no input content in the input box in the case of receiving a trigger operation by the user for a preset key; or
第二选项卡处理模块,用于在接收到用户针对预设按键的触发操作的情况下,若输入框中存在已输入内容、且所述已输入内容的字数超过阈值,则将所述第二选项卡置为选中状态;或者The second tab processing module is configured to, in the case of receiving a user triggering operation on a preset button, if there is input content in the input box and the number of words in the input content exceeds a threshold, then the tab is selected; or
第三选项卡处理模块,用于在接收到用户针对预设按键的触发操作的情况下,若输入框中存在已输入内容、且所述已输入内容的字数不超过阈值,则依据用户的历史操作记录、和/或、所述扩充内容的处理状态,确定处于选中状态的选项卡。The third tab processing module is configured to, in the case of receiving the triggering operation of the user for the preset button, if there is already entered content in the input box and the number of words in the entered content does not exceed the threshold, then according to the user's history The operation record, and/or the processing state of the expanded content, determines the tab in the selected state.
本发明实施例公开了C21、一种用于数据处理的装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:Embodiments of the present invention disclose C21, an apparatus for data processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the one or more programs The execution of the one or more programs by a computer includes instructions for:
若输入环境特征为社交环境特征,则确定所述社交环境特征对应的多种语言风格;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 selected; 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.
C22、根据C21所述的装置,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:C22. The device of C21, the device further configured to execute the one or more programs by one or more processors comprising instructions for:
响应于用户针对目标内容标签的触发操作,在所述内容区域内显示所述目标内容标签对应的预设内容。In response to the user's triggering operation on the target content label, the preset content corresponding to the target content label is displayed in the content area.
C23、根据C1所述的装置,所述内容区域还包括:刷新控件;C23. The device according to C1, wherein the content area further comprises: a refresh control;
所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:The device is also configured to execute, by one or more processors, the one or more programs including instructions for:
响应于用户针对所述刷新控件的触发操作,对所述内容区域内的预设内容进行切换。In response to a user's triggering operation on the refresh control, the preset content in the content area is switched.
C24、根据C21至C23中任一所述的装置,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:C24. The device of any one of C21 to C23, the device further configured to execute, by one or more processors, the one or more programs comprising instructions for:
展示第二选项卡;多个第一选项卡和所述第二选项卡中的一者处于选中状态;displaying a second tab; one of the plurality of first tabs and the second tab is selected;
所述第二选项卡的内容区域用于呈现扩充内容的相关信息,所述扩充内容为依据所述社交环境特征对应的语料数据得到。The content area of the second tab is used to present relevant information of the expanded content, and the expanded content is obtained according to the corpus data corresponding to the social environment feature.
C25、根据C24所述的装置,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:C25. The device of C24, the device further configured to execute the one or more programs by one or more processors comprising instructions for:
若符合第一触发条件,则确定所述已输入内容对应的扩充内容;If the first trigger condition is met, determining the expanded content corresponding to the inputted content;
所述第一触发条件包括:The first trigger condition includes:
接收到用户针对预设按键的触发操作;和/或Receive a user's trigger operation for a preset key; and/or
检测到所述已输入内容的更新操作。An update operation of the entered content is detected.
C26、根据C24所述的装置,所述第二选项卡的状态区域用于显示所述扩充内容的处理状态;所述处理状态包括:空闲状态、处理中状态、或者处理完成状态。C26. The apparatus according to C24, wherein the status area of the second tab is used to display the processing status of the extended content; the processing status includes: idle status, processing status, or processing completed status.
C27、根据C26所述的装置,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:C27. The device of C26, the device further configured to execute the one or more programs by one or more processors comprising instructions for:
在符合第一触发条件的情况下,向服务端发送扩充请求,并将所述处理状态置为处理中状态。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.
C28、根据C26所述的装置,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:C28. The device of C26, the device further configured to execute the one or more programs by one or more processors comprising instructions for:
在确定所述已输入内容对应的扩充内容后,将所述处理状态置为处理完成状态。After determining the extended content corresponding to the input content, the processing state is set to a processing completion state.
C29、根据C24所述的装置,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:C29. The device of C24, the device further configured to execute the one or more programs by one or more processors comprising instructions for:
在符合第二触发条件的情况下,显示第一选项卡和第二选项卡;Under the condition that the second trigger condition is met, display the first tab and the second tab;
所述第二触发条件包括:The second trigger condition includes:
在输入框中不存在已输入内容的情况下,接收到针对输入键盘的调起操作;或者In the case where there is no entered content in the input box, a call-up operation for the input keyboard is received; or
接收到用户针对预设按键的触发操作;或者Receive a user trigger operation for a preset key; or
接收到用户针对所述扩充内容对应链接的触发操作。A triggering operation from the user for the link corresponding to the expanded content is received.
C30、根据C29所述的装置,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:C30. The device of C29, the device further configured to execute the one or more programs by one or more processors comprising instructions for:
在接收到用户针对预设按键的触发操作的情况下,若输入框中不存在已输入内容,则将所述第二选项卡置为选中状态;或者In the case of receiving the user's trigger operation for the preset key, if there is no input content in the input box, the second tab is set to the selected state; or
在接收到用户针对预设按键的触发操作的情况下,若输入框中存在已输入内容、且所述已输入内容的字数超过阈值,则将所述第二选项卡置为选中状态;或者In the case of receiving a user's triggering operation for a preset key, if there is already entered content in the input box and the number of characters in the entered content exceeds a threshold, the second tab is set to a selected state; or
在接收到用户针对预设按键的触发操作的情况下,若输入框中存在已输入内容、且所述已输入内容的字数不超过阈值,则依据用户的历史操作记录、和/或、所述扩充内容的处理状态,确定处于选中状态的选项卡。In the case of receiving a user's trigger operation for a preset key, if there is input content in the input box, and the number of words in the input content does not exceed the threshold, the user's historical operation records, and/or the The processing status of the augmented content, which determines which tab is selected.
本发明实施例公开了D31、一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如A1至A10中一个或多个所述的数据处理方法。Embodiments of the present invention disclose D31, one or more machine-readable media, on which instructions are stored that, when executed by one or more processors, cause an apparatus to execute data as described in one or more of A1 to A10 Approach.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本发明旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention which follow the general principles of the invention and which include common knowledge or conventional techniques in the art not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying 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.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
以上对本发明所提供的一种数据处理方法、一种数据处理装置和一种用于数据处理的装置、以及一种机器可读介质,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A data processing method, a data processing apparatus, an apparatus for data processing, and a machine-readable medium provided by the present invention have been described in detail above. The principles and implementations have been described, and the descriptions of the above embodiments are only used to help understand the method of the present invention and its core idea; There will be changes in the above. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010682653.8A CN112000877B (en) | 2020-07-15 | 2020-07-15 | A data processing method, device and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010682653.8A CN112000877B (en) | 2020-07-15 | 2020-07-15 | A data processing method, device and medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112000877A true CN112000877A (en) | 2020-11-27 |
| CN112000877B CN112000877B (en) | 2024-10-01 |
Family
ID=73466613
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010682653.8A Active CN112000877B (en) | 2020-07-15 | 2020-07-15 | A data processing method, device and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112000877B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113313510A (en) * | 2021-04-25 | 2021-08-27 | 北京搜狗科技发展有限公司 | Data processing method, device and medium |
Citations (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6141011A (en) * | 1997-08-04 | 2000-10-31 | Starfish Software, Inc. | User interface methodology supporting light data entry for microprocessor device having limited user input |
| JP2001117913A (en) * | 1999-10-19 | 2001-04-27 | Hitachi Ltd | Face mark input device |
| US20070156747A1 (en) * | 2005-12-12 | 2007-07-05 | Tegic Communications Llc | Mobile Device Retrieval and Navigation |
| CN101013342A (en) * | 2007-01-22 | 2007-08-08 | 魏新成 | Chinese online input method based on Chinese network word base |
| CN103076892A (en) * | 2012-12-31 | 2013-05-01 | 百度在线网络技术(北京)有限公司 | Method and equipment for providing input candidate items corresponding to input character string |
| CN103376909A (en) * | 2012-04-19 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Method and system of adjusting sequence of candidate characters in use of input methods |
| CN104020950A (en) * | 2013-03-01 | 2014-09-03 | 腾讯科技(深圳)有限公司 | Input method based on touch screen and input device with touch screen |
| CN104021193A (en) * | 2014-06-13 | 2014-09-03 | 北京奇虎科技有限公司 | Search switching method and search switching device |
| CN104035966A (en) * | 2014-05-16 | 2014-09-10 | 百度在线网络技术(北京)有限公司 | Method and device for providing extended search terms |
| US20150100537A1 (en) * | 2013-10-03 | 2015-04-09 | Microsoft Corporation | Emoji for Text Predictions |
| US9071945B1 (en) * | 2007-09-17 | 2015-06-30 | Google Inc. | Caller feedback in mobile devices |
| CN106371711A (en) * | 2015-07-20 | 2017-02-01 | 联想(北京)有限公司 | Information input method and electronic equipment |
| CN107609092A (en) * | 2017-09-08 | 2018-01-19 | 北京百度网讯科技有限公司 | Intelligent response method and apparatus |
| CN107643833A (en) * | 2016-07-22 | 2018-01-30 | 北京搜狗科技发展有限公司 | A kind of input method and device, a kind of device for being used to input |
| CN107690781A (en) * | 2015-04-16 | 2018-02-13 | 三星电子株式会社 | Method and apparatus for recommending answer message |
| CN108021572A (en) * | 2016-11-02 | 2018-05-11 | 腾讯科技(深圳)有限公司 | Return information recommends method and apparatus |
| CN108541310A (en) * | 2016-06-22 | 2018-09-14 | 华为技术有限公司 | A kind of method, apparatus and graphic user interface of display candidate word |
| US20180302350A1 (en) * | 2016-08-03 | 2018-10-18 | Tencent Technology (Shenzhen) Company Limited | Method for determining candidate input, input prompting method and electronic device |
| CN108762862A (en) * | 2016-05-18 | 2018-11-06 | 苹果公司 | Equipment, method and graphic user interface for messaging |
| CN109144285A (en) * | 2017-06-16 | 2019-01-04 | 北京搜狗科技发展有限公司 | A kind of input method and device |
| CN109783244A (en) * | 2017-11-10 | 2019-05-21 | 北京搜狗科技发展有限公司 | Treating method and apparatus, the device for processing |
| CN110022258A (en) * | 2018-01-10 | 2019-07-16 | 腾讯科技(深圳)有限公司 | A kind of conversation controlling method and device, electronic equipment of instant messaging |
| CN112000766A (en) * | 2020-07-15 | 2020-11-27 | 北京搜狗科技发展有限公司 | A data processing method, device and medium |
-
2020
- 2020-07-15 CN CN202010682653.8A patent/CN112000877B/en active Active
Patent Citations (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6141011A (en) * | 1997-08-04 | 2000-10-31 | Starfish Software, Inc. | User interface methodology supporting light data entry for microprocessor device having limited user input |
| JP2001117913A (en) * | 1999-10-19 | 2001-04-27 | Hitachi Ltd | Face mark input device |
| US20070156747A1 (en) * | 2005-12-12 | 2007-07-05 | Tegic Communications Llc | Mobile Device Retrieval and Navigation |
| CN101013342A (en) * | 2007-01-22 | 2007-08-08 | 魏新成 | Chinese online input method based on Chinese network word base |
| US9071945B1 (en) * | 2007-09-17 | 2015-06-30 | Google Inc. | Caller feedback in mobile devices |
| CN103376909A (en) * | 2012-04-19 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Method and system of adjusting sequence of candidate characters in use of input methods |
| CN103076892A (en) * | 2012-12-31 | 2013-05-01 | 百度在线网络技术(北京)有限公司 | Method and equipment for providing input candidate items corresponding to input character string |
| CN104020950A (en) * | 2013-03-01 | 2014-09-03 | 腾讯科技(深圳)有限公司 | Input method based on touch screen and input device with touch screen |
| US20150100537A1 (en) * | 2013-10-03 | 2015-04-09 | Microsoft Corporation | Emoji for Text Predictions |
| CN104035966A (en) * | 2014-05-16 | 2014-09-10 | 百度在线网络技术(北京)有限公司 | Method and device for providing extended search terms |
| CN104021193A (en) * | 2014-06-13 | 2014-09-03 | 北京奇虎科技有限公司 | Search switching method and search switching device |
| CN107690781A (en) * | 2015-04-16 | 2018-02-13 | 三星电子株式会社 | Method and apparatus for recommending answer message |
| CN106371711A (en) * | 2015-07-20 | 2017-02-01 | 联想(北京)有限公司 | Information input method and electronic equipment |
| CN108762862A (en) * | 2016-05-18 | 2018-11-06 | 苹果公司 | Equipment, method and graphic user interface for messaging |
| CN108541310A (en) * | 2016-06-22 | 2018-09-14 | 华为技术有限公司 | A kind of method, apparatus and graphic user interface of display candidate word |
| CN107643833A (en) * | 2016-07-22 | 2018-01-30 | 北京搜狗科技发展有限公司 | A kind of input method and device, a kind of device for being used to input |
| US20180302350A1 (en) * | 2016-08-03 | 2018-10-18 | Tencent Technology (Shenzhen) Company Limited | Method for determining candidate input, input prompting method and electronic device |
| CN108021572A (en) * | 2016-11-02 | 2018-05-11 | 腾讯科技(深圳)有限公司 | Return information recommends method and apparatus |
| CN109144285A (en) * | 2017-06-16 | 2019-01-04 | 北京搜狗科技发展有限公司 | A kind of input method and device |
| CN107609092A (en) * | 2017-09-08 | 2018-01-19 | 北京百度网讯科技有限公司 | Intelligent response method and apparatus |
| CN109783244A (en) * | 2017-11-10 | 2019-05-21 | 北京搜狗科技发展有限公司 | Treating method and apparatus, the device for processing |
| CN110022258A (en) * | 2018-01-10 | 2019-07-16 | 腾讯科技(深圳)有限公司 | A kind of conversation controlling method and device, electronic equipment of instant messaging |
| CN112000766A (en) * | 2020-07-15 | 2020-11-27 | 北京搜狗科技发展有限公司 | A data processing method, device and medium |
Non-Patent Citations (1)
| Title |
|---|
| 王艳坤;: "汉字输入法及其专利保护", 中国发明与专利, no. 07, 31 July 2011 (2011-07-31) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113313510A (en) * | 2021-04-25 | 2021-08-27 | 北京搜狗科技发展有限公司 | Data processing method, device and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112000877B (en) | 2024-10-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI720062B (en) | Voice input method, device and terminal equipment | |
| CN110413756A (en) | Method, apparatus and device for natural language processing | |
| CN112000766B (en) | A data processing method, device and medium | |
| CN111708444A (en) | Input method, input device and input device | |
| CN109753205B (en) | Display method and device | |
| WO2020056948A1 (en) | Method and device for data processing and device for use in data processing | |
| CN112000877B (en) | A data processing method, device and medium | |
| CN112905079B (en) | Data processing method, device and medium | |
| CN113138676B (en) | Expression symbol display method and device | |
| CN113157966B (en) | Display method, device and electronic equipment | |
| CN112181163B (en) | Input method, device and device for input | |
| CN112929751B (en) | System, method and terminal for determining action execution | |
| CN114816036A (en) | An emotion processing method, device and medium | |
| CN111708443A (en) | Input method, device and device for input | |
| CN113589950A (en) | Input method, input device and input device | |
| CN113407099A (en) | Input method, device and machine readable medium | |
| CN114741613A (en) | A data processing method, device and medium | |
| CN114089840B (en) | Request processing method, device and medium | |
| CN111611030A (en) | A data processing method, device and device for data processing | |
| CN114594861B (en) | Recommendation method and device and electronic equipment | |
| CN112416139B (en) | Input method and device, and device for input | |
| CN112558848B (en) | Data processing method, device and medium | |
| CN115437509B (en) | Request processing method, device and medium | |
| CN113220468B (en) | Custom content processing method, device and medium | |
| CN113342180B (en) | Input method and device and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TG01 | Patent term adjustment | ||
| TG01 | Patent term adjustment |