Topic-based text input method

文档序号:7794 发布日期:2021-09-17 浏览:36次 中文

1. A topic-based text input method is characterized by comprising the following steps:

the current state of the text entry box is captured,

when the text input box is judged to be in the activated state, the text information input in the text input box by the user is collected and cached in real time,

requesting a topic list from a remote server when the amount of cached text information reaches a first threshold,

the topic list comprises at least one topic name which is marked as a first type topic name,

when the number of the cached text messages reaches a second threshold value, the first type of topic names are traversed one by one, the topic names in the text messages are compared with the cached text messages, and the topic names with topic guide symbols are replaced by the topic names.

2. The topic-based text entry method of claim 1, wherein the first threshold and the second threshold are both empirical values or adjustable set values.

3. A topic-based text input method as recited in claim 1 wherein the topic guide symbol is any one of:

the double well number "##" is used as a topic guide symbol,

the single well number + space "# space" is used as the topic guide symbol.

4. The topic-based text input method as recited in claim 3, wherein the step of replacing the topic name in the text message with a topic name with a topic guide symbol comprises the following steps:

determining a character string in the text information matching the topic name,

and inserting corresponding initial guide symbols and ending guide symbols in the topic guide symbols before the initial position and after the ending position of the character string respectively.

5. The topic-based text input method as recited in claim 1, wherein the topic names of the first class are traversed one by one through a character string similarity algorithm, the topic names are compared with the cached text information to obtain a text similarity result, and when the text similarity result is greater than or equal to a third threshold value, a character string matching the topic names is considered to exist in the text information.

6. The topic-based text entry method of claim 1 further comprising: replacing the topic name with the topic guide symbol with the topic name with the topic guide symbol and the topic level identifier;

the topic level identifier is used for identifying a parent topic and a child topic.

7. The topic-based text entry method of claim 6, wherein the parent topic and the child topic are each identified by an identification string, wherein:

the identification character string of the parent topic is a character string with a unique identification function, the character string with the unique identification function and the parent topic are in one-to-one correspondence relationship,

the identification character string of the sublevel topic has the structure that: character string of parent level topic with unique identification function + child level topic identification character string, wherein: the character string with the unique identification function of the parent topic is used for analyzing the corresponding relation between the child topic and the parent topic, and the identification character string of the child topic is in one-to-one correspondence with the child topic.

8. The topic-based text entry method of claim 6, wherein the topic level identifier is added to the text entry box in a hidden manner and is not directly presented to the user.

9. The topic-based text input method of claim 8, wherein when the cursor moves to the topic name area with topic guide symbols and topic level identifiers, after hovering for a short time, parent topics and child topics are presented to the user in a pop-up manner;

or when the topic name area with the topic guide symbol and the topic level identifier is touched and the touch is continued for a short time, the parent topic and the child topic are presented to the user in a popup mode for viewing.

10. The topic-based text input method of claim 1, wherein when the number of the cached text messages reaches a first threshold value, the latest n chat utterances of the user are also obtained in real time, the used topic names in the latest n chat utterances of the user are analyzed and marked as the topic names of the second type,

when the number of the cached text information reaches a second threshold value, traversing the second topic names one by one, comparing the second topic names with the cached text information, and replacing the topic names in the text information with topic names with topic guide symbols;

or:

when the number of the cached text messages reaches a first threshold value, the latest m chat records of the user and other people are also obtained in real time, the used topic names in the latest m chat records of the other people are analyzed and marked as a third type topic name,

when the number of the cached text information reaches a second threshold value, traversing the third types of topic names one by one, comparing the third types of topic names with the cached text information, and replacing the topic names in the text information with topic names with topic guide symbols;

furthermore, the name of the third type topic is set as a contact group, all users who participate in the topic are set as contact objects belonging to the contact group,

and when the published text information comprises the third type topic name, automatically actively broadcasting the text information to the contact group.

Background

In the existing Instant Messaging (Instant Messaging) technology, multimedia contents (audio, video, pictures and the like) enrich the information amount which can be acquired by a user, but the multimedia contents are more common or text information, and the information amount transmitted by the Instant Messaging technology is too large, so that the user is difficult to quickly grasp key contents when reading information, and for the situation, one of the solutions in the prior art is as follows:

the topic is generated based on the analysis of the information (usually, the analysis of the text information), then the topic is used as an index key word, the information which is the same as or similar to the index key word is associated, and then the topic is distributed to other users, so that a plurality of users can discuss in an instant messaging manner based on the same topic, thereby improving the communication efficiency and assisting the users to quickly grasp the key content of discussion.

However, in the text input, how to quickly introduce a proper topic is not focused and solved by the current text input control.

In a first embodiment of the existing text input control, the following functions can be provided for the user:

first, the user manually inputs a topic guide symbol double-well number "##" in a text input box,

then, the user manually enters the topic name between the two well numbers,

introducing a topic in a mode of # topic name #;

the foregoing parsing based on information specifically includes: with the double well number as a determination symbol, the generated topic is usually stored in a server (for example, the server maintains one or more topic lists, and the topic names of the topics are stored in the topic lists), and the server performs related topic management.

The topic introduction of the first embodiment depends on manual input of a user, so that the efficiency is low, the risk of input errors exists, and the first embodiment is inconvenient for the user to use.

In the second embodiment of the existing text input control, the functions that can be provided for the user are as follows:

firstly, the user manually inputs the single-well sign "#" of the topic guide symbol in the text input box,

then, the user follows the topic name after the single well number, and follows a space "" after the topic name,

introducing topics in a mode of "# topic name + space";

the foregoing parsing based on information specifically includes: with the single well number + space as a determination symbol, the generated topic is usually stored in a server (for example, the server maintains one or more topic lists, and the topic names of the topics are stored in the topic lists), and the server performs related topic management by analyzing the single well number and the space as a topic name regardless of the content between the single well number and the first space.

The problems of the second embodiment are substantially the same as those of the first embodiment.

In addition, because the information presentation of the Instant Messaging (Instant Messaging) technology is to use the information release time as a sorting keyword, when a plurality of topics are discussed alternately, the text input control (referred to as the second embodiment or the first embodiment) is adopted to introduce the topics, obviously, a lot of repeated labor is brought to the user, the input speed is influenced, the enthusiasm of the user for participating in the discussion aiming at a specific topic is influenced, and the stickiness of the user is not easy to improve.

The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.

Disclosure of Invention

Aiming at the defects in the prior art, the invention aims to provide a topic-based text input method, which optimizes the topic function, is more convenient and flexible to introduce topics, reduces the risk of input errors when topics are introduced, improves the topic introduction efficiency and improves the user experience.

In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:

a topic-based text input method is characterized by comprising the following steps:

the current state of the text entry box is captured,

when the text input box is judged to be in the activated state, the text information input in the text input box by the user is collected and cached in real time,

requesting a topic list from a remote server when the amount of cached text information reaches a first threshold,

the topic list comprises at least one topic name which is marked as a first type topic name,

when the number of the cached text messages reaches a second threshold value, the first type of topic names are traversed one by one, the topic names in the text messages are compared with the cached text messages, and the topic names with topic guide symbols are replaced by the topic names.

On the basis of the technical scheme, the first threshold and the second threshold are both empirical values or adjustable set values.

On the basis of the technical scheme, the topic guide symbol is any one of the following symbols:

the double well number "##" is used as a topic guide symbol,

the single well number + space "# space" is used as the topic guide symbol.

On the basis of the technical scheme, the replacing of the topic name in the text message by the topic name with the topic guide symbol specifically comprises the following steps:

determining a character string in the text information matching the topic name,

and inserting corresponding initial guide symbols and ending guide symbols in the topic guide symbols before the initial position and after the ending position of the character string respectively.

On the basis of the technical scheme, the first topic names are traversed one by one through a character string similarity algorithm and compared with the cached text information to obtain a text similarity result, and when the text similarity result is larger than or equal to a third threshold value, the character string matched with the topic names exists in the text information.

On the basis of the technical scheme, the method further comprises the following steps: replacing the topic name with the topic guide symbol with the topic name with the topic guide symbol and the topic level identifier;

the topic level identifier is used for identifying a parent topic and a child topic.

On the basis of the technical scheme, the parent-level topic and the child-level topic are identified by identification character strings, wherein:

the identification character string of the parent topic is a character string with a unique identification function, the character string with the unique identification function and the parent topic are in one-to-one correspondence relationship,

the identification character string of the sublevel topic has the structure that: character string of parent level topic with unique identification function + child level topic identification character string, wherein: the character string with the unique identification function of the parent topic is used for analyzing the corresponding relation between the child topic and the parent topic, and the identification character string of the child topic is in one-to-one correspondence with the child topic.

On the basis of the technical scheme, the topic level identifier is added to the text input box in a hidden mode and is not directly presented to the user.

On the basis of the technical scheme, when the cursor moves to a topic name area with a topic guide symbol and a topic level identifier, hovering for a short time, and presenting a parent topic and a child topic in a pop-up window mode for a user to view;

or when the topic name area with the topic guide symbol and the topic level identifier is touched and the touch is continued for a short time, the parent topic and the child topic are presented to the user in a popup mode for viewing.

On the basis of the technical scheme, when the number of the cached text messages reaches a first threshold value, the latest n times of chat speech of the user is also obtained in real time, the used topic names in the latest n times of chat speech of the user are analyzed and marked as second-class topic names,

when the number of the cached text information reaches a second threshold value, traversing the second topic names one by one, comparing the second topic names with the cached text information, and replacing the topic names in the text information with topic names with topic guide symbols;

or:

when the number of the cached text messages reaches a first threshold value, the latest m chat records of the user and other people are also obtained in real time, the used topic names in the latest m chat records of the other people are analyzed and marked as a third type topic name,

when the number of the cached text information reaches a second threshold value, traversing the third types of topic names one by one, comparing the third types of topic names with the cached text information, and replacing the topic names in the text information with topic names with topic guide symbols;

furthermore, the name of the third type topic is set as a contact group, all users who participate in the topic are set as contact objects belonging to the contact group,

and when the published text information comprises the third type topic name, automatically actively broadcasting the text information to the contact group.

The topic-based text input method has the following beneficial effects:

the method has the advantages that the functions of the topics are optimized, the topics are more convenient to introduce, flexibility is achieved, the risk of inputting errors when the topics are introduced is reduced, the efficiency of introducing the topics is improved, and the user experience is improved.

Drawings

The invention has the following drawings:

the drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:

FIG. 1 is a flowchart of a first embodiment of a topic-based text input method according to the invention.

Fig. 2 is a flowchart of a second embodiment of the topic-based text input method of the present invention.

Fig. 3 is a flowchart of a third embodiment of the topic-based text input method of the present invention.

FIG. 4 is a flowchart of a fourth embodiment of the topic-based text input method of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings. The detailed description, while indicating exemplary embodiments of the invention, is given by way of illustration only, in which various details of embodiments of the invention are included to assist understanding. Accordingly, it will be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

As shown in fig. 1, the topic-based text input method of the present invention specifically includes the following steps:

the current state of the text entry box is captured,

when the text input box is judged to be in the activated state, the text information input in the text input box by the user is collected and cached in real time,

requesting a topic list from a remote server when the amount of cached text information reaches a first threshold,

the topic list comprises at least one topic name which is marked as a first type topic name,

when the number of the cached text messages reaches a second threshold value, the first type of topic names are traversed one by one, the topic names in the text messages are compared with the cached text messages, and the topic names with topic guide symbols are replaced by the topic names.

As an alternative embodiment, the first threshold and the second threshold are both empirical values, or are adjustable set values.

On the basis of the technical scheme, the topic guide symbol is any one of the following symbols:

the double well number "##" is used as a topic guide symbol,

the single well number + space "# space" is used as the topic guide symbol.

The topic guide symbol is selected to take into account compatibility with existing algorithms.

On the basis of the technical scheme, the replacing of the topic name in the text message by the topic name with the topic guide symbol specifically comprises the following steps:

determining a character string in the text information matching the topic name,

and inserting corresponding initial guide symbols and ending guide symbols in the topic guide symbols before the initial position and after the ending position of the character string respectively.

When the double-well sign "#" is used as the topic guide sign, the initial guide sign is #, and the ending guide sign is #;

when the single well number + space "# space" is used as the topic guide symbol, the initial guide symbol is #, and the ending guide symbol is a space.

On the basis of the technical scheme, the first topic names are traversed one by one through a character string similarity algorithm and compared with the cached text information to obtain a text similarity result, and when the text similarity result is larger than or equal to a third threshold value, the character string matched with the topic names exists in the text information.

The character string similarity algorithm can adopt the existing known mature algorithm, does not belong to the scope of the invention, and is not described in detail.

The selection of the third threshold may refer to the selection of the first threshold and the second threshold, and will not be described in detail.

On the basis of the above technical solution, as shown in fig. 2, the method further includes: replacing the topic name with the topic guide symbol with the topic name with the topic guide symbol and the topic level identifier;

the topic level identifier is used for identifying a parent topic and a child topic.

On the basis of the technical scheme, the parent-level topic and the child-level topic are identified by identification character strings, wherein:

the identification character string of the parent topic is a character string with a unique identification function, the character string with the unique identification function and the parent topic are in one-to-one correspondence relationship,

the identification character string of the sublevel topic has the structure that: character string of parent level topic with unique identification function + child level topic identification character string, wherein: the character string with the unique identification function of the parent topic is used for analyzing the corresponding relation between the child topic and the parent topic, and the identification character string of the child topic is in one-to-one correspondence with the child topic.

On the basis of the technical scheme, the topic level identifier is added to the text input box in a hidden mode and is not directly presented to the user.

On the basis of the technical scheme, when the cursor moves to a topic name area with a topic guide symbol and a topic level identifier, hovering for a short time, and presenting a parent topic and a child topic in a pop-up window mode for a user to view;

or when the topic name area with the topic guide symbol and the topic level identifier is touched and the touch is continued for a short time, the parent topic and the child topic are presented to the user in a popup mode for viewing.

On the basis of the above technical solution, as shown in fig. 3, when the number of cached text messages reaches a first threshold, the latest n chat comments of the user are also obtained in real time, the topic names used in the latest n chat comments of the user are analyzed and marked as the second type of topic names,

and when the number of the cached text information reaches a second threshold value, traversing the second type of topic names one by one, comparing the second type of topic names with the cached text information, and replacing the topic names in the text information with topic names with topic guide symbols.

In an alternative embodiment, n is greater than or equal to 2.

The specific algorithm for comparison can be implemented by referring to the first topic name, and is not detailed.

On the basis of the above technical solution, as shown in fig. 4, when the number of the cached text messages reaches the first threshold, the latest m chat records of the user and other people are also obtained in real time, the topic names used in the latest m chat records of the other people are analyzed and marked as the topic names of the third kind,

and when the number of the cached text information reaches a second threshold value, traversing the third type of topic names one by one, comparing the third type of topic names with the cached text information, and replacing the topic names in the text information with topic names with topic guide symbols.

In an alternative embodiment, m is greater than or equal to 4.

The value of m can be the same as that of n, but the value of m is preferably larger than that of n, so that a user can freely select topics participating in discussion from more topic names.

The specific algorithm for comparison can be implemented by referring to the first topic name, and is not detailed.

On the basis of the technical scheme, the name of the third type of topic is set as a contact group, all users participating in the topic are set as contact objects belonging to the contact group,

and when the published text information comprises the third type topic name, automatically actively broadcasting the text information to the contact group.

Those not described in detail in this specification are within the skill of the art.

The above description is only a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above embodiment, but equivalent modifications or changes made by those skilled in the art according to the present disclosure should be included in the scope of the present invention as set forth in the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种softmax函数的硬件实现方法、模块、芯片和系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!