Information processing method and related device

文档序号:590406 发布日期:2021-05-25 浏览:12次 中文

阅读说明:本技术 一种信息处理的方法及相关装置 (Information processing method and related device ) 是由 陈岩 于 2018-12-19 设计创作,主要内容包括:本申请实施例公开了一种信息处理的方法及相关装置,应用于电子设备,方法包括:当接收到用户进行信息输入的指令时,识别用户输入的信息中是否包含预设信息;当所述用户输入的信息中包含预设信息时,获取所述用户进行信息交互的对端用户的信息;根据所述对端用户的信息查找所述预设信息的替换信息;将所述用户输入的信息中的预设信息用所述替换信息进行替换,并将替换后的信息进行发送。可见,电子设备能够在用户进行信息输入时,识别用户输入的信息是否存在预设的信息,如果存在预设的信息则对预设信息自动替换后再进行发送,从而提高了用户发送信息的可读性,且增强了用户信息交互的及时性。(The embodiment of the application discloses an information processing method and a related device, which are applied to electronic equipment, wherein the method comprises the following steps: when an instruction of inputting information by a user is received, identifying whether the information input by the user contains preset information or not; when the information input by the user comprises preset information, acquiring information of an opposite-end user performing information interaction by the user; searching the replacement information of the preset information according to the information of the opposite-end user; and replacing preset information in the information input by the user with the replacement information, and sending the replaced information. Therefore, the electronic equipment can identify whether the information input by the user has the preset information when the user inputs the information, and automatically replace the preset information and then send the information if the preset information exists, so that the readability of the information sent by the user is improved, and the timeliness of information interaction of the user is enhanced.)

An information processing method applied to an electronic device, the method comprising:

when an instruction of inputting information by a user is received, identifying whether the information input by the user contains preset information or not;

when the information input by the user comprises preset information, acquiring information of an opposite-end user performing information interaction by the user;

searching the replacement information of the preset information according to the information of the opposite-end user;

and replacing preset information in the information input by the user with the replacement information, and sending the replaced information.

The method of claim 1, wherein the information input by the user can be text information or voice information; the identifying whether the information input by the user contains preset information includes:

acquiring information input by the user;

comparing the information input by the user with the content in a first preset list;

and if the information input by the user comprises the content in the first preset list, determining that the information input by the user comprises preset information.

The method of claim 1, wherein the information input by the user can be text information or voice information; the identifying whether the information input by the user contains preset information includes:

acquiring information input by the user;

importing the information input by the user into a semantic model to identify the semantics of the information input by the user;

and determining whether the information input by the user contains preset information or not according to the semantics.

The method according to claim 3, wherein the semantic model is obtained according to a preset neural network model, network expression and standard expression corresponding to the network expression.

The method of claim 4, further comprising:

traversing preset websites according to preset intervals to determine whether hot events exist; the hot event refers to an event with the access quantity larger than a preset value;

if yes, performing semantic analysis on the hot event to determine whether a new network expression exists;

and if the new network expression exists, updating the semantic model according to a preset neural network model and the new network expression.

The method of claim 5, wherein the predetermined neural network model is a recurrent neural network model or a long-short term memory model.

The method according to any one of claims 1 to 6, wherein the obtaining information of an opposite end user performing information interaction with the user comprises:

acquiring the identification of an opposite-end user for information interaction of the user;

and determining the information of the opposite-end user in a second preset list according to the identifier of the opposite-end user.

The method according to claim 7, wherein the searching for the replacement information of the preset information according to the information of the peer user comprises:

taking the information of the opposite-end user as a query identifier, and querying a third preset list to obtain replacement information of the preset information, wherein the third preset list comprises a corresponding relation between the information of the opposite-end user and an information reply standard; the information reply standard comprises an information reply standard expression and an information reply format.

The method of claim 8, further comprising:

when receiving the information sent by the opposite-end user, judging whether the received information contains the preset information;

when the received information contains the preset information, acquiring the information of the opposite-end user;

searching the replacement information of the preset information according to the information of the opposite-end user;

and marking the replacement information in brackets next to the preset information, and displaying the received information and the marked information.

A semantic conversion apparatus, applied to an electronic device, comprising a processing unit and a communication unit, wherein,

the processing unit is used for identifying whether the information input by the user contains preset information or not when receiving an instruction of inputting the information by the user; when the information input by the user comprises preset information, acquiring information of an opposite-end user performing information interaction by the user; searching for replacement information of the preset information according to the information of the opposite-end user; replacing preset information in the information input by the user with the replacement information;

and the communication unit is used for sending the replaced information.

An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-9.

A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-9.

30页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:人机交互的通信的证据记录

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类