Movatterモバイル変換


[0]ホーム

URL:


CN117193916A - Methods and devices for processing chat content - Google Patents

Methods and devices for processing chat content
Download PDF

Info

Publication number
CN117193916A
CN117193916ACN202311163958.8ACN202311163958ACN117193916ACN 117193916 ACN117193916 ACN 117193916ACN 202311163958 ACN202311163958 ACN 202311163958ACN 117193916 ACN117193916 ACN 117193916A
Authority
CN
China
Prior art keywords
input
chat
interface
target text
control
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.)
Pending
Application number
CN202311163958.8A
Other languages
Chinese (zh)
Inventor
周丹丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN202311163958.8ApriorityCriticalpatent/CN117193916A/en
Publication of CN117193916ApublicationCriticalpatent/CN117193916A/en
Priority to PCT/CN2024/116292prioritypatent/WO2025051087A1/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The application discloses a chat content processing method and device, and belongs to the technical field of communication equipment. The method comprises the following steps: associating target text in chat content with map information, wherein the target text is related to geographic position; receiving a first input of the target text; and displaying the map information in a preset manner in a chat interface in response to the first input.

Description

Translated fromChinese
聊天内容的处理方法和装置Methods and devices for processing chat content

技术领域Technical field

本申请属于通信技术领域,具体涉及一种聊天内容的处理方法和装置。The present application belongs to the field of communication technology, and specifically relates to a method and device for processing chat content.

背景技术Background technique

伴随着社交媒体和互联网技术的高度发展,人们更习惯于使用聊天软件来进行信息传递、分享生活和规划活动等。然而,在聊天过程中,用户的聊天内容通常会涉及到具体地点的信息,例如旅游景点、餐厅、聚会地点等。用户往往需要单独推送这些地点信息,或者需要到地图软件上查找。在聊天内容过多的情况下,用户需要花费更多的时间和精力去寻找相关的信息,效率较低,而且还会打断当前的聊天内容,用户体验较差。With the rapid development of social media and Internet technology, people are more accustomed to using chat software to transfer information, share life, and plan activities. However, during the chat process, the user's chat content usually involves information about specific locations, such as tourist attractions, restaurants, party locations, etc. Users often need to push these location information separately, or need to find it on map software. When there is too much chat content, users need to spend more time and energy looking for relevant information, which is less efficient and interrupts the current chat content, resulting in a poor user experience.

发明内容Contents of the invention

本申请实施例的目的是提供一种聊天内容的处理方法和装置,能够解决目前无法便捷地获取聊天内容提到的地理位置的问题。The purpose of the embodiments of the present application is to provide a method and device for processing chat content, which can solve the current problem of being unable to conveniently obtain the geographical location mentioned in the chat content.

第一方面,本申请实施例提供了一种聊天内容的处理方法,该方法包括:In a first aspect, embodiments of the present application provide a method for processing chat content, which method includes:

将聊天内容中的目标文本与地图信息进行关联,所述目标文本与地理位置相关;Associating target text in the chat content with map information, where the target text is related to the geographical location;

接收对所述目标文本的第一输入;receiving first input to the target text;

响应于所述第一输入,在聊天界面中以预设方式显示所述地图信息。In response to the first input, the map information is displayed in a preset manner in the chat interface.

第二方面,本申请实施例提供了一种聊天内容的处理装置,该装置包括:In a second aspect, embodiments of the present application provide a chat content processing device, which includes:

第一处理模块,用于将聊天内容中的目标文本与地图信息进行关联,所述目标文本与地理位置相关;The first processing module is used to associate the target text in the chat content with the map information, where the target text is related to the geographical location;

第一接收模块,用于接收对所述目标文本的第一输入;A first receiving module, configured to receive a first input to the target text;

第一响应模块,用于响应于所述第一输入,在聊天界面中以预设方式显示所述地图信息。A first response module, configured to respond to the first input and display the map information in a preset manner in the chat interface.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. The programs or instructions are processed by the processor. When the processor is executed, the steps of the method described in the first aspect are implemented.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented. .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. the method described.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method as described in the first aspect.

在本申请实施例中,通过将聊天内容中与地理位置相关的目标文本与地图信息进行关联;接收对所述目标文本的第一输入;响应于所述第一输入,在聊天界面中以预设方式显示所述地图信息。如此,能够使用户在聊天界面中即可便捷地获取聊天内容提到的地理位置,也不会造成聊天中断,且沟通效率高。In the embodiment of the present application, by associating the target text related to the geographical location in the chat content with the map information; receiving the first input of the target text; in response to the first input, in the chat interface with a preset Set the method to display the map information. In this way, the user can easily obtain the geographical location mentioned in the chat content in the chat interface without interrupting the chat, and the communication efficiency is high.

附图说明Description of the drawings

图1是本申请实施例中的聊天内容的处理方法的流程图之一;Figure 1 is one of the flow charts of the chat content processing method in the embodiment of the present application;

图2是本申请实施例中的聊天界面示意图之一;Figure 2 is one of the schematic diagrams of the chat interface in the embodiment of the present application;

图3是本申请实施例中的聊天界面示意图之二;Figure 3 is the second schematic diagram of the chat interface in the embodiment of the present application;

图4是本申请实施例中的聊天界面示意图之三;Figure 4 is the third schematic diagram of the chat interface in the embodiment of the present application;

图5是本申请实施例中的聊天界面示意图之四;Figure 5 is the fourth schematic diagram of the chat interface in the embodiment of the present application;

图6是本申请实施例中的聊天界面示意图之五;Figure 6 is the fifth schematic diagram of the chat interface in the embodiment of the present application;

图7是本申请实施例中的聊天界面示意图之六;Figure 7 is the sixth schematic diagram of the chat interface in the embodiment of the present application;

图8是本申请实施例中的聊天界面示意图之七;Figure 8 is the seventh schematic diagram of the chat interface in the embodiment of the present application;

图9是本申请实施例中的聊天界面示意图之八;Figure 9 is the eighth schematic diagram of the chat interface in the embodiment of the present application;

图10是本申请实施例中的聊天列表示意图;Figure 10 is a representation of the chat column in the embodiment of the present application;

图11是本申请实施例中的聊天界面示意图之九;Figure 11 is the ninth schematic diagram of the chat interface in the embodiment of the present application;

图12是本申请实施例中的聊天内容的处理方法的流程图之二;Figure 12 is the second flow chart of the chat content processing method in the embodiment of the present application;

图13是本申请实施例中的聊天内容的处理装置的结构框图;Figure 13 is a structural block diagram of a chat content processing device in an embodiment of the present application;

图14是本申请实施例中的电子设备的结构框图;Figure 14 is a structural block diagram of an electronic device in an embodiment of the present application;

图15是本申请实施例中的电子设备的硬件结构示意图。Figure 15 is a schematic diagram of the hardware structure of the electronic device in the embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的聊天内容的处理方法进行详细地说明。The chat content processing method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.

参见图1,本申请实施例提供一种聊天内容的处理方法,包括以下步骤:Referring to Figure 1, an embodiment of the present application provides a method for processing chat content, which includes the following steps:

步骤101:将聊天内容中的目标文本与地图信息进行关联,所述目标文本与地理位置相关。Step 101: Associate the target text in the chat content with the map information, where the target text is related to the geographical location.

步骤102:接收对所述目标文本的第一输入。Step 102: Receive a first input to the target text.

其中,第一输入为预先设置的输入,该第一输入可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第一输入可以为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。Wherein, the first input is a preset input, which may include but is not limited to at least one of click input, press input, long press input, pinch input, drag input, slide input and swipe input, or That is to say, the first input may be one of the above inputs, or may be a combination of two or more of the inputs.

步骤103:响应于所述第一输入,在聊天界面中以预设方式显示所述地图信息。Step 103: In response to the first input, display the map information in a preset manner in the chat interface.

可选地,预设方式包括以下至少一项:Optionally, the preset method includes at least one of the following:

地图信息为显示在地图窗口中的定位位置信息。Map information is the location information displayed in the map window.

地图信息为文字形式的地址信息。The map information is address information in text form.

地图信息为图片形式的地址信息。The map information is address information in the form of pictures.

示例性地,目标文本与地图信息的关联方式类似于超链接的方式,这样,在用户点击目标文本时,在聊天界面显示与目标文本关联的地图信息。For example, the target text is associated with the map information in a manner similar to a hyperlink, so that when the user clicks on the target text, the map information associated with the target text is displayed on the chat interface.

上述实施例中,通过将聊天内容中与地理位置有关的目标文本与地图信息进行关联,能够实现在接收到对目标文本的第一输入后,响应于第一输入,在聊天界面中显示所述地图信息。如此,能够使用户在聊天界面中即可便捷地获取聊天内容提到的地理位置,也不会造成聊天中断,提高沟通效率。In the above embodiment, by associating the target text related to the geographical location in the chat content with the map information, it is possible to display the target text in the chat interface in response to the first input after receiving the first input. Map information. In this way, users can easily obtain the geographical location mentioned in the chat content in the chat interface without interrupting the chat, thereby improving communication efficiency.

在一实施例中,上述步骤101中,将聊天内容中的目标文本与地图信息进行关联,包括:In one embodiment, in the above step 101, associating the target text in the chat content with the map information includes:

在第一用户启动第一聊天辅助功能的情况下,识别聊天内容中与地理位置有关的至少一个目标文本,并将所述目标文本与地图信息进行关联;所述聊天内容位于所述第一用户与第二用户的聊天界面中;When the first user activates the first chat auxiliary function, identify at least one target text related to the geographical location in the chat content, and associate the target text with map information; the chat content is located at the location of the first user In the chat interface with the second user;

其中,所述第一聊天辅助功能包括:自动识别聊天内容中与地理位置有关的目标文本,并将识别到的目标文本与地图信息进行关联。Wherein, the first chat auxiliary function includes: automatically identifying target text related to geographical location in the chat content, and associating the identified target text with map information.

示例性地,假设第一用户为“小明”,第二用户为“小红”,图2示出的是“小明”与“小红”的聊天界面,在“小明”启动第一聊天辅助功能的情况下,获取聊天界面中的聊天内容:“今天去哪里玩啦?”以及“我今天去黄山”,通过文字识别算法,从聊天内容中获取与地理位置有关的目标文本:“黄山”,并将黄山的地图信息与目标文本“黄山”进行关联。For example, assuming that the first user is "Xiao Ming" and the second user is "Xiao Hong", Figure 2 shows the chat interface between "Xiao Ming" and "Xiao Hong", and the first chat auxiliary function is started in "Xiao Ming" In the case of , obtain the chat content in the chat interface: "Where did you go today?" and "I went to Huangshan today". Through the text recognition algorithm, obtain the target text related to the geographical location from the chat content: "Huangshan", And associate the map information of Huangshan Mountain with the target text "Huangshan Mountain".

上述实施例中,通过启动第一聊天辅助功能,能够实现自动识别聊天内容中与地理位置有关的目标文本,并将目标文本与地图信息相关联。In the above embodiment, by activating the first chat auxiliary function, the target text related to the geographical location in the chat content can be automatically identified, and the target text can be associated with the map information.

在一实施例中,上述步骤101中,将聊天内容中的目标文本与地图信息进行关联,包括:In one embodiment, in the above step 101, associating the target text in the chat content with the map information includes:

在第一用户启动第一聊天辅助功能的情况下,接收对所述目标文本的第二输入;receiving a second input to the target text if the first user activates the first chat assistance function;

响应于所述第二输入,显示第一控件;In response to the second input, display a first control;

接收对所述第一控件的第三输入;receiving a third input to the first control;

响应于所述第三输入,显示地图界面;In response to the third input, display a map interface;

接收对所述地图界面的第四输入;receiving a fourth input to the map interface;

响应于所述第四输入,确定所述地图信息,并将所述目标文本与所述地图信息进行关联。In response to the fourth input, the map information is determined and the target text is associated with the map information.

其中,第二输入、第三输入和第四输入为预先设置的输入,可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第二输入、第三输入和第四输入可以分别为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。The second input, the third input and the fourth input are preset inputs, which may include but are not limited to at least one of click input, press input, long press input, pinch input, drag input, slide input and swipe input. One, that is to say, the second input, the third input and the fourth input can each be one of the above inputs, or they can also be a combination of two or more of the inputs.

示例性地,假设第一用户为“小明”,第二用户为“小红”,图3示出的是“小明”与“小红”的聊天界面,在“小明”启动第一聊天辅助功能的情况下,若小明发送了一下聊天内容:“我刚刚在唐记海鲜喝了砂锅粥,真不错”,在发送上述信息后,若未识别出聊天内容中与地理位置有关的目标文本,则“小明”可长按选择关键词信息“唐记海鲜”,基于“小明”的长按输入,显示提示框,点击提示框中的“关联”按钮(第一控件),显示如图4所示的地图窗口,在地图窗口中用户可滑动缩放查看该地点及其周边信息,用户在地图窗口中选定“唐记海鲜”对应的具体地图位置后,点击地图窗口中显示的“标记”按钮,即可将“唐记海鲜”与选定的地图位置进行关联,实现用户可以手动将目标文本与地图信息进行关联。可选地,若定位选择错误,可点击“修改”按钮完成关联信息修改。For example, assuming that the first user is "Xiao Ming" and the second user is "Xiao Hong", Figure 3 shows the chat interface between "Xiao Ming" and "Xiao Hong", and the first chat auxiliary function is started in "Xiao Ming" In the case of , if Xiao Ming sends the chat content: "I just had casserole porridge at Tangji Seafood, it was really good." After sending the above information, if the target text related to the geographical location in the chat content is not recognized, then "Xiao Ming" can long-press to select the keyword information "Tangji Seafood". Based on the long-press input of "Xiao Ming", a prompt box is displayed. Click the "Associate" button (first control) in the prompt box, and the display is shown in Figure 4. In the map window, the user can slide and zoom to view the location and its surrounding information. After the user selects the specific map location corresponding to "Tangji Seafood" in the map window, click the "Mark" button displayed in the map window. You can associate "Tangji Seafood" with the selected map location, allowing users to manually associate the target text with map information. Optionally, if the positioning selection is wrong, you can click the "Modify" button to complete the modification of the associated information.

可选地,在第一用户启动第一聊天辅助功能的情况下,若未在聊天界面中识别到目标文本,则显示提示信息,用于提示用户进行手动关联。Optionally, when the first user activates the first chat auxiliary function, if the target text is not recognized in the chat interface, prompt information is displayed to prompt the user to perform manual association.

上述实施例中,在用户启动第一聊天辅助功能的情况下,若未在聊天界面中识别到目标文本,则用户可以手动选择聊天内容中的目标文本,并将目标文本与地图信息进行关联。In the above embodiment, when the user activates the first chat auxiliary function, if the target text is not recognized in the chat interface, the user can manually select the target text in the chat content and associate the target text with the map information.

在一实施例中,上述步骤101,将所述目标文本与地图信息进行关联之前,所述方法还包括:In one embodiment, before associating the target text with map information in step 101, the method further includes:

在所述聊天界面中显示第一功能入口;Display the first function entrance in the chat interface;

接收对所述第一功能入口的第五输入;receiving a fifth input to the first function entry;

响应于所述第五输入,显示第一界面,所述第一界面包括第二控件;In response to the fifth input, display a first interface, the first interface including a second control;

接收对所述第二控件的第六输入;receiving a sixth input to the second control;

响应于所述第六输入启动所述第一聊天辅助功能。The first chat assistance function is activated in response to the sixth input.

其中,第五输入和第六输入为预先设置的输入,可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第五输入和第六输入可以分别为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。The fifth input and the sixth input are preset inputs, which may include but are not limited to at least one of click input, press input, long press input, pinch input, drag input, slide input, and swipe input. That is to say, the fifth input and the sixth input may respectively be one of the above-mentioned inputs, or may be a combination of two or more of the inputs.

示例性地,参见图2和图3所示的聊天界面,第一功能入口为如图2和图3中聊天界面中显示的设置图标a,在接收到用户对设置图标a的点击输入后,显示如图5所示的第一界面,第一界面包括第二控件b,接收对第二控件b的点击输入,选择开启或关闭第一聊天辅助功能,第一聊天辅助功能用于智能识别聊天内容中与地理位置有关的目标文本,并将目标文本与地图信息关联。For example, referring to the chat interface shown in Figures 2 and 3, the first function entrance is the setting icon a displayed in the chat interface in Figures 2 and 3. After receiving the user's click input on the setting icon a, The first interface shown in Figure 5 is displayed. The first interface includes a second control b, receives a click input on the second control b, and selects to turn on or off the first chat auxiliary function. The first chat auxiliary function is used to intelligently identify chats. Target text related to geographical location in the content and associate the target text with map information.

上述实施例中,通过在聊天界面中增加第一功能入口,使用户在需要第一聊天辅助功能时,能够基于第一功能入口进入第一界面,完成对第一聊天辅助功能的开启或关闭设置。In the above embodiment, by adding the first function entrance to the chat interface, when the user needs the first chat auxiliary function, he can enter the first interface based on the first function entrance and complete the setting of turning on or off the first chat auxiliary function. .

在一实施例中,所述第一界面还包括第二功能入口;上述聊天内容的处理方法还包括:In one embodiment, the first interface further includes a second function entrance; the method for processing the chat content further includes:

接收对所述第二功能入口的第七输入;receiving a seventh input to the second function entry;

响应于所述第七输入,显示第二界面,所述第二界面包括已关联有所述地图信息的目标文本列表。In response to the seventh input, a second interface is displayed, the second interface including a target text list associated with the map information.

其中,第七输入为预先设置的输入,可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第七输入可以分别为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。The seventh input is a preset input, which may include but is not limited to at least one of click input, press input, long press input, pinch input, drag input, sliding input and swipe input, that is to say, The seventh input may be one of the above inputs, or may be a combination of two or more of the inputs.

示例性地,图5示出有第一界面的示意图,第一界面中包括第二控件b和“查找已标记位置信息”这一文字形式的第二功能入口,在用户点击第二功能入口后,进入到如图6所示的第二界面,第二界面中包括已关联有所述地图信息的目标文本列表,如包括:“黄山”、“唐记海鲜”和“外滩”。Exemplarily, Figure 5 shows a schematic diagram of a first interface. The first interface includes a second control b and a second function entry in the text form of "Search for marked location information." After the user clicks on the second function entry, The second interface shown in Figure 6 is entered. The second interface includes a target text list associated with the map information, such as: "Huangshan", "Tangji Seafood" and "The Bund".

上述实施例中,通过在第一界面中设置第二功能入口,能够使用户便捷得获取已关联地图信息的目标文本。In the above embodiment, by setting the second function entrance in the first interface, the user can conveniently obtain the target text associated with the map information.

在一实施例中,上述步骤101,将聊天内容中的目标文本与地图信息进行关联之后,还包括:In one embodiment, the above step 101, after associating the target text in the chat content with the map information, also includes:

在第一用户启用第二聊天辅助功能的情况下,在所述第一用户所在的电子设备与所述目标文本对应的地理位置相距预设距离时,显示第一提示信息。When the first user activates the second chat auxiliary function, the first prompt information is displayed when the electronic device where the first user is located is a preset distance away from the geographical location corresponding to the target text.

可选地,第一提示信息可以包括以下至少一项:声音、文字、震动。Optionally, the first prompt information may include at least one of the following: sound, text, and vibration.

可选地,预设距离可以为用户预先设置的或预设默认值。Optionally, the preset distance may be preset by the user or a preset default value.

上述实施例中,能够基于第一提示信息及时提醒用户当前位置已与目标文本对应的地理位置邻近,避免用户错过聊天中提及的位置。In the above embodiment, the user can be promptly reminded based on the first prompt information that the current location is close to the geographical location corresponding to the target text, thereby preventing the user from missing the location mentioned in the chat.

在一实施例中,所述第二界面包括至少一个第三功能入口,每个所述第三功能入口对应所述目标文本列表中的一个所述目标文本;上述聊天内容的处理方法还包括:In one embodiment, the second interface includes at least one third function entrance, and each third function entrance corresponds to one of the target texts in the target text list; the method for processing the above chat content also includes:

接收对目标功能入口的第八输入;其中,所述目标功能入口为所述至少一个第三功能入口中的一个;receiving an eighth input to a target function entry; wherein the target function entry is one of the at least one third function entry;

响应于所述第八输入,显示第三界面,所述第三界面包括第三控件;In response to the eighth input, display a third interface, the third interface including a third control;

接收对所述第三控件的第九输入;receiving a ninth input to the third control;

响应于所述第九输入,启动第二聊天辅助功能。In response to the ninth input, a second chat assistance function is activated.

其中,第八输入和第九输入为预先设置的输入,可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第八输入和第九输入可以分别为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。The eighth input and the ninth input are preset inputs, which may include but are not limited to at least one of click input, press input, long press input, pinch input, drag input, sliding input and swipe input, and also That is to say, the eighth input and the ninth input may be one of the above inputs, or may be a combination of two or more of the inputs.

示例性地,在如图6显示的第二界面中,第二界面中包括:与“黄山”对应的第三功能入口d1,与“唐记海鲜”对应的第三功能入口d2,与“外滩”对应的第三功能入口d3;假设用户点击与“黄山”对应的第三功能入口d1,则显示如图5所示的第三界面,第三界面中包括如图7所示的第三控件c,基于对第三控件c的输入操作,可实现开启或关闭第二聊天辅助功能,在开启第二聊天辅助功能的情况下,在用户所在的电子设备与“黄山”关联的地理位置相距预设距离时,显示第一提示信息。For example, in the second interface as shown in Figure 6, the second interface includes: a third function entrance d1 corresponding to "Huangshan", a third function entrance d2 corresponding to "Tangji Seafood", and a third function entrance d2 corresponding to "The Bund". ” corresponds to the third function entrance d3; assuming that the user clicks on the third function entrance d1 corresponding to “Huangshan”, the third interface shown in Figure 5 is displayed, and the third interface includes the third control shown in Figure 7 c. Based on the input operation of the third control c, the second chat auxiliary function can be turned on or off. When the second chat auxiliary function is turned on, the predetermined distance between the user's electronic device and the geographical location associated with "Huangshan" When setting the distance, the first prompt message is displayed.

在一实施例中,所述将聊天内容中的目标文本与地图信息进行关联,包括:In one embodiment, associating the target text in the chat content with the map information includes:

在所述聊天内容中包括多个目标文本时,显示第四控件;When the chat content includes multiple target texts, display a fourth control;

接收对所述第四控件的第十输入;receiving a tenth input to said fourth control;

响应于所述第十输入,在所述聊天界面中显示控件列表;其中,所述控件列表中的每个控件对应一个所述目标文本;In response to the tenth input, a control list is displayed in the chat interface; wherein each control in the control list corresponds to one of the target texts;

接收对所述控件列表中的目标控件的第十一输入;receiving an eleventh input to a target control in the control list;

响应于所述第十一输入,将与所述目标控件对应的所述目标文本与地图信息进行关联。In response to the eleventh input, the target text corresponding to the target control is associated with map information.

示例性地,假设第一用户为“小明”,第二用户为“小红”,图8示出的是“小明”与“小红”的聊天界面,在“小明”启动第一聊天辅助功能的情况下,若小明发送了一下聊天内容:“我喜欢去上海的陆家嘴散步,看看高楼大厦和黄浦江的夜景”,基于该聊天内容可识别到“上海”、“陆家嘴”和“黄浦江”三个与地理位置有关的名词,在聊天消息右下角显示第四控件e,用户点击第四控件e,以浮窗的形式显示多个与地理位置对应的文字形式的控件,如图8中包括:与“上海”对应的控件、与“黄浦江”对应的控件和与“陆家嘴”对应的控件;若用户点击与“上海”对应的文字控件,则显示如图9所示的界面,该界面中将聊天内容中的“上海”这一目标文本与地图信息进行关联。可选地,控件列表过多时,控件列表支持翻页查看。For example, assuming that the first user is "Xiao Ming" and the second user is "Xiao Hong", Figure 8 shows the chat interface between "Xiao Ming" and "Xiao Hong", and the first chat auxiliary function is started in "Xiao Ming" In this case, if Xiao Ming sends the chat content: "I like to go for a walk in Lujiazui, Shanghai, to see the high-rise buildings and the night view of the Huangpu River", based on the chat content, "Shanghai", "Lujiazui" and "Huangpu River" can be identified "Three nouns related to geographical location. The fourth control e is displayed in the lower right corner of the chat message. The user clicks the fourth control e to display multiple text controls corresponding to the geographical location in the form of a floating window, as shown in Figure 8 Including: controls corresponding to "Shanghai", controls corresponding to "Huangpu River" and controls corresponding to "Lujiazui"; if the user clicks on the text control corresponding to "Shanghai", the interface shown in Figure 9 will be displayed. The interface associates the target text "Shanghai" in the chat content with the map information. Optionally, when there are too many control lists, the control list supports page turning.

上述实施例中,在聊天内容中识别到多个目标文本时,通过显示控件列表,使每个目标文本一一对应一个控件,如此用户能够基于控件列表,有选择的确定需要与地图信息进行关联的目标文本,满足用户的使用需求。In the above embodiment, when multiple target texts are identified in the chat content, the control list is displayed so that each target text corresponds to a control one-to-one. In this way, the user can selectively determine the need to associate with map information based on the control list. The target text meets the user's needs.

在一实施例中,所述第三界面还包括第四功能入口;上述聊天内容的处理方法还包括:In one embodiment, the third interface further includes a fourth function entrance; the method for processing the above chat content further includes:

接收对所述第四功能入口的第十二输入;receiving a twelfth input to the fourth function portal;

响应于所述第十二输入,设置所述预设距离。In response to the twelfth input, the preset distance is set.

其中,第十二输入为预先设置的输入,可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第十二输入可以分别为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。The twelfth input is a preset input, which may include but is not limited to at least one of click input, press input, long press input, pinch input, drag input, sliding input and swipe input, that is to say , the twelfth input may be one of the above inputs, or may be a combination of two or more of the inputs.

示例性地,在如图7所示的第三界面中,包括“距离设置”这一文字形式的第四功能入口,用户可以基于第四功能入口编辑和设置预设距离,以实现在用户所持电子设备与所述目标功能入口对应的地理位置相距预设距离时,显示第一提示信息。For example, in the third interface as shown in Figure 7, a fourth function entry in the form of "distance setting" is included. The user can edit and set the preset distance based on the fourth function entry to achieve the purpose of setting the distance on the electronic device held by the user. When the device is at a preset distance from the geographical location corresponding to the target function entrance, the first prompt information is displayed.

在一实施例中,所述第三界面还包括第五功能入口;上述聊天内容的处理方法还包括:In one embodiment, the third interface further includes a fifth function entrance; the method for processing the above chat content further includes:

接收对所述第五功能入口的第十三输入;receiving a thirteenth input to said fifth function entry;

响应于所述第十三输入,在所述聊天界面中定位到目标聊天内容;其中,所述目标聊天内容为所述目标功能入口对应的目标文本所在的聊天内容。In response to the thirteenth input, the target chat content is located in the chat interface; wherein the target chat content is the chat content where the target text corresponding to the target function entrance is located.

其中,第十三输入为预先设置的输入,可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第十三输入可以分别为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。Wherein, the thirteenth input is a preset input, which may include but is not limited to at least one of click input, press input, long press input, pinch input, drag input, sliding input and swipe input, that is to say , the thirteenth input may be one of the above inputs, or may be a combination of two or more of the inputs.

示例性地,在如图7所示的针对“黄山”这一目标文本显示的第三界面中,包括“定位到聊天位置”这一第五功能入口,在接收到用户对第五功能入口的输入操作后,显示聊天界面并在聊天界面中显示“黄山”这一目标文本所在的聊天内容,以及上下文聊天内容,即在聊天界面中定位到“黄山”这一目标文本所在的聊天内容所在位置。For example, in the third interface displayed for the target text "Huangshan" as shown in Figure 7, the fifth function entry "Locate to chat location" is included. After receiving the user's request for the fifth function entry After the input operation, the chat interface is displayed and the chat content where the target text "Huangshan" is located is displayed in the chat interface, as well as the contextual chat content, that is, the chat content where the target text "Huangshan" is located is located in the chat interface. .

上述实施例中,通过提供第五功能入口,能够便于用户查找已关联地图信息的聊天记录。In the above embodiment, by providing the fifth function entrance, it is possible to facilitate users to search chat records associated with map information.

在一实施例中,上述聊天内容的处理方法还包括:In one embodiment, the above chat content processing method further includes:

在第一用户接收到第二用户发送的聊天内容的情况下,若所述聊天内容中的所述目标文本关联标记有地图信息,则在所述第一用户与所述第二用户的聊天界面中将所述目标文本显示为关联标记状态。When the first user receives the chat content sent by the second user, if the target text in the chat content is associated with map information, then in the chat interface between the first user and the second user The target text is displayed in the associated mark state.

可选地,关联标记状态可以包括:颜色突出状态、高亮显示状态、加粗显示状态、加下划线显示状态等。示例性地,如图2和图9中,关联有地图信息的“黄山”和“上海”被标记为加粗和下划线状态。Optionally, the associated mark state may include: color highlighting state, highlighted display state, bold display state, underline display state, etc. For example, in Figures 2 and 9, "Huangshan" and "Shanghai" associated with map information are marked in bold and underlined states.

上述实施例中,通过将目标文本显示为关联标记状态,能够便于用户快速识别已关联地图信息的目标文本,从而通过对目标文本的输入操作,便捷地获取与目标文本关联的地图信息。In the above embodiment, by displaying the target text in the associated mark state, the user can quickly identify the target text associated with the map information, and thereby conveniently obtain the map information associated with the target text through the input operation of the target text.

在一实施例中,上述聊天内容的处理方法还包括:In one embodiment, the above chat content processing method further includes:

在第一用户接收到第二用户发送的聊天内容时,若所述聊天内容关联有所述地图信息,且所述第一用户未进入与所述第二用户的聊天界面,则在第一用户的聊天列表界面中显示提醒信息。When the first user receives the chat content sent by the second user, if the chat content is associated with the map information and the first user has not entered the chat interface with the second user, then the first user Reminder information is displayed in the chat list interface.

示例性地,在如图10所示的聊天列表界面中,用户“小红”接收到了用户“小红”发送的聊天消息,其中由于该聊天消息中的目标文本关联有地图信息,因此,在用户“小红”的聊天列表界面中显示有“【关联位置】对方标记了一条消息”的提醒信息。以便用户及时获知聊天消息关联的地图信息。进一步地,用户“小红”进入与用户“小明”的聊天界面,如图11所示,其示出的是聊天界面示意图,用户点击“唐记海鲜”这样目标文本,即可在聊天界面上显示与“唐记海鲜”关联的地图窗口,地图窗口中标记有“唐记海鲜”的位置信息。For example, in the chat list interface shown in Figure 10, user "Xiaohong" receives a chat message sent by user "Xiaohong". Since the target text in the chat message is associated with map information, therefore, in The chat list interface of user "Xiaohong" displays a reminder message that "[Associated location] The other party has marked a message." So that users can know the map information associated with chat messages in a timely manner. Further, the user "Xiao Hong" enters the chat interface with the user "Xiao Ming", as shown in Figure 11, which shows a schematic diagram of the chat interface. The user clicks on the target text such as "Tangji Seafood" to enter the chat interface on the chat interface. The map window associated with "Tang Kee Seafood" is displayed, and the location information of "Tang Kee Seafood" is marked in the map window.

进一步地,在一实施例中,在接收到用户对目标文本的第一输入后,方法还包括:Further, in one embodiment, after receiving the user's first input of the target text, the method further includes:

响应于第一输入,显示地图窗口,并在地图窗口中标记地图信息;其中,地图窗口中还包括:第五控件;In response to the first input, a map window is displayed, and map information is marked in the map window; wherein the map window also includes: a fifth control;

接收对第五控件的第十四输入;receiving a fourteenth input to the fifth control;

响应于第十四输入,启动第二聊天辅助功能。In response to the fourteenth input, the second chat assistance function is activated.

示例性地,如图11中,在接收到用户对目标文本的第一输入后,以浮窗的形式显示地图窗口,用户可在地图窗口中滑动缩放查看标记的地图信息及周边信息;第五控件为地图窗口中示出的图标控件f,用户可以通过对图标控件f进行输入操作,启动第二聊天辅助功能,实现在用户所在的电子设备与“唐记海鲜”对应的地理位置相距预设距离(可为默认值,如500m)时,显示第一提示信息。可选地,用户也可以基于聊天界面中的第二控件b进入到如图5第一界面,进一步通过第一界面进入到如图6所示的第二界面,针对被标记的目标文本,对应修改预设距离。Exemplarily, as shown in Figure 11, after receiving the user's first input of the target text, the map window is displayed in the form of a floating window, and the user can slide and zoom in the map window to view the marked map information and surrounding information; fifth The control is the icon control f shown in the map window. The user can input the icon control f to start the second chat auxiliary function and realize the preset distance between the user's electronic device and the geographical location corresponding to "Tangji Seafood". distance (can be the default value, such as 500m), the first prompt message is displayed. Optionally, the user can also enter the first interface as shown in Figure 5 based on the second control b in the chat interface, and further enter the second interface as shown in Figure 6 through the first interface. For the marked target text, the corresponding Modify the preset distance.

下面结合图12对本申请提供的聊天内容的处理方法进行介绍。具体可以包括以下步骤:The method for processing chat content provided by this application will be introduced below with reference to Figure 12. Specifically, it may include the following steps:

步骤1:开启智能地点识别功能(即第一聊天辅助功能);Step 1: Turn on the intelligent location recognition function (i.e. the first chat auxiliary function);

步骤2:智能识别聊天内容中与地理位置有关的目标文本;Step 2: Intelligently identify target text related to geographical location in the chat content;

步骤3:判断是否识别到目标文本;若是,则进行步骤4;若否,则进行步骤5;Step 3: Determine whether the target text is recognized; if so, proceed to step 4; if not, proceed to step 5;

步骤4:将目标文本与地图信息进行关联;Step 4: Associate the target text with map information;

步骤5:手动选择目标文本并将目标文本与地图信息进行关联;Step 5: Manually select the target text and associate the target text with map information;

步骤6:是否设置近距离提醒(即是否设置第二聊天辅助功能);若是,则进行步骤7;若否,则结束;Step 6: Whether to set the proximity reminder (that is, whether to set the second chat auxiliary function); if so, proceed to step 7; if not, end;

步骤7:判断是否达到预设距离;若是,则进行步骤8;若否,则结束;Step 7: Determine whether the preset distance is reached; if so, proceed to step 8; if not, end;

步骤8:振动响铃提醒。Step 8: Vibrate the ring reminder.

上述实施例中,将聊天内容中的地点信息与地图进行智能关联,在旅游出行,行程安排等聊天场景中更具实用性,在让用户更加方便地了解和查找相关位置信息的同时,也更具人性化。In the above embodiment, the location information in the chat content is intelligently associated with the map, which is more practical in chat scenarios such as travel and itinerary arrangements. It not only allows users to understand and find relevant location information more conveniently, but also more conveniently. Humanized.

本申请实施例提供的聊天内容的处理方法,执行主体可以为聊天内容的处理装置。本申请实施例中以聊天内容的处理装置执行聊天内容的处理方法为例,说明本申请实施例提供的聊天内容的处理装置。For the chat content processing method provided by the embodiments of the present application, the execution subject may be a chat content processing device. In the embodiment of the present application, the chat content processing device executing the chat content processing method is taken as an example to illustrate the chat content processing device provided by the embodiment of the present application.

参见图13,本申请实施例提供一种聊天内容的处理装置1300,包括:Referring to Figure 13, an embodiment of the present application provides a chat content processing device 1300, which includes:

第一处理模块1301,用于将聊天内容中的目标文本与地图信息进行关联,所述目标文本与地理位置相关;The first processing module 1301 is used to associate the target text in the chat content with map information, where the target text is related to the geographical location;

第一接收模块1302,用于接收对所述目标文本的第一输入;The first receiving module 1302 is used to receive the first input of the target text;

第一响应模块1303,用于响应于所述第一输入,在聊天界面中以预设方式显示所述地图信息。The first response module 1303 is configured to display the map information in a preset manner in the chat interface in response to the first input.

可选地,所述第一处理模块1301,包括:Optionally, the first processing module 1301 includes:

第一处理子模块,用于在第一用户启动第一聊天辅助功能的情况下,识别聊天内容中与地理位置有关的至少一个目标文本,并将所述目标文本与地图信息进行关联;所述聊天内容位于所述第一用户与第二用户的聊天界面中;其中,所述第一聊天辅助功能包括:自动识别聊天内容中与地理位置有关的目标文本,并将识别到的目标文本与地图信息进行关联;或者,A first processing submodule configured to identify at least one target text related to the geographical location in the chat content and associate the target text with map information when the first user activates the first chat auxiliary function; the The chat content is located in the chat interface between the first user and the second user; wherein the first chat auxiliary function includes: automatically identifying the target text related to the geographical location in the chat content, and comparing the identified target text with the map information; or,

第二处理子模块,用于在第一用户启动第一聊天辅助功能的情况下,接收对所述目标文本的第二输入;响应于所述第二输入,显示第一控件;接收对所述第一控件的第三输入;响应于所述第三输入,显示地图界面;接收对所述地图界面的第四输入;响应于所述第四输入,确定所述地图信息,并将所述目标文本与所述地图信息进行关联。The second processing submodule is configured to receive a second input to the target text when the first user activates the first chat auxiliary function; to display the first control in response to the second input; to receive the second input to the target text. a third input of the first control; in response to the third input, displaying a map interface; receiving a fourth input to the map interface; in response to the fourth input, determining the map information and setting the target The text is associated with the map information.

可选地,所述装置1300还包括:Optionally, the device 1300 also includes:

第一显示模块,用于在第一用户启用第二聊天辅助功能的情况下,在所述第一用户所在的电子设备与所述目标文本对应的地理位置相距预设距离时,显示第一提示信息。A first display module configured to display a first prompt when the first user activates the second chat auxiliary function and the electronic device where the first user is located is a preset distance away from the geographical location corresponding to the target text. information.

可选地,所述装置1300还包括:Optionally, the device 1300 also includes:

第二显示模块,用于在所述聊天界面中显示第一功能入口;a second display module, used to display the first function entrance in the chat interface;

第二接收模块,用于接收对所述第一功能入口的第五输入;a second receiving module, configured to receive the fifth input to the first function entrance;

第二响应模块,用于响应于所述第五输入,显示第一界面,所述第一界面包括第二控件;a second response module, configured to display a first interface in response to the fifth input, where the first interface includes a second control;

第三接收模块,用于接收对所述第二控件的第六输入;a third receiving module, configured to receive the sixth input to the second control;

第三响应模块,用于响应于所述第六输入,启动所述第一聊天辅助功能。A third response module configured to activate the first chat auxiliary function in response to the sixth input.

可选地,所述第一界面还包括第二功能入口;Optionally, the first interface also includes a second function entrance;

所述装置1300还包括:The device 1300 also includes:

第四接收模块,用于接收对所述第二功能入口的第七输入;a fourth receiving module, configured to receive the seventh input to the second function entrance;

第四响应模块,用于响应于所述第七输入,显示第二界面,所述第二界面包括已关联有所述地图信息的目标文本列表。A fourth response module, configured to display a second interface in response to the seventh input, where the second interface includes a target text list associated with the map information.

可选地,所述第二界面包括至少一个第三功能入口,每个所述第三功能入口对应所述目标文本列表中的一个所述目标文本;Optionally, the second interface includes at least one third function entrance, each third function entrance corresponding to one of the target texts in the target text list;

所述装置1300还包括:The device 1300 also includes:

第五接收模块,用于接收对目标功能入口的第八输入;其中,所述目标功能入口为至少一个第三功能入口中的一个;A fifth receiving module, configured to receive an eighth input to a target function entry; wherein the target function entry is one of at least one third function entry;

第五响应模块,用于响应于所述第八输入,显示第三界面,所述第三界面包括第三控件;a fifth response module, configured to display a third interface in response to the eighth input, where the third interface includes a third control;

第六接收模块,用于接收对所述第三控件的第九输入;A sixth receiving module, configured to receive a ninth input to the third control;

第六响应模块,用于响应于所述第九输入,启动第二聊天辅助功能。A sixth response module is configured to activate the second chat auxiliary function in response to the ninth input.

可选地,所述第一处理模块1301,包括:Optionally, the first processing module 1301 includes:

第三处理子模块,用于在所述聊天内容中包括多个目标文本时,显示第四控件;A third processing submodule, configured to display a fourth control when the chat content includes multiple target texts;

第四处理子模块,用于接收对所述第四控件的第十输入;A fourth processing sub-module, configured to receive a tenth input to the fourth control;

第五处理子模块,用于响应于所述第十输入,在所述聊天界面中显示控件列表;其中,所述控件列表中的每个控件对应一个所述目标文本;A fifth processing submodule, configured to display a control list in the chat interface in response to the tenth input; wherein each control in the control list corresponds to one of the target texts;

第六处理子模块,用于接收对所述控件列表中的目标控件的第十一输入;The sixth processing sub-module is used to receive the eleventh input to the target control in the control list;

第七处理子模块,用于响应于所述第十一输入,将与所述目标控件对应的所述目标文本与地图信息进行关联。A seventh processing sub-module is configured to associate the target text corresponding to the target control with map information in response to the eleventh input.

本申请实施例中的聊天内容的处理装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The chat content processing device in the embodiment of the present application may be an electronic device, or may be a component of the electronic device, such as an integrated circuit or chip. The electronic device may be a terminal or other devices other than the terminal. For example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (MID), or augmented reality (AR)/virtual reality (VR). ) equipment, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., and can also be servers, network attached storage (Network Attached Storage, NAS), etc. ), personal computer (PC), television (TV), teller machine or self-service machine, etc., the embodiments of this application are not specifically limited.

本申请实施例中的聊天内容的处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The chat content processing device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.

本申请实施例提供的聊天内容的处理装置能够实现图1至图12的方法实施例实现的各个过程,为避免重复,这里不再赘述。The chat content processing device provided by the embodiment of the present application can implement various processes implemented by the method embodiments of Figures 1 to 12. To avoid duplication, they will not be described again here.

可选地,如图14所示,本申请实施例还提供一种电子设备1400,包括处理器1401和存储器1402,存储器1402上存储有可在所述处理器1401上运行的程序或指令,该程序或指令被处理器1401执行时实现上述聊天内容的处理方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 14, this embodiment of the present application also provides an electronic device 1400, including a processor 1401 and a memory 1402. The memory 1402 stores programs or instructions that can be run on the processor 1401. When the program or instruction is executed by the processor 1401, each step of the above chat content processing method embodiment is implemented, and the same technical effect can be achieved. To avoid duplication, the details will not be described here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图15为实现本申请实施例的一种电子设备的硬件结构示意图。Figure 15 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application.

该电子设备1500包括但不限于:射频单元1501、网络模块1502、音频输出单元1503、输入单元1504、传感器1505、显示单元1506、用户输入单元1507、接口单元1508、存储器1509、以及处理器1510等部件。The electronic device 1500 includes but is not limited to: radio frequency unit 1501, network module 1502, audio output unit 1503, input unit 1504, sensor 1505, display unit 1506, user input unit 1507, interface unit 1508, memory 1509, processor 1510, etc. part.

本领域技术人员可以理解,电子设备1500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图15中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1500 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 1510 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 15 does not constitute a limitation of the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .

其中,处理器1510,用于将聊天内容中的目标文本与地图信息进行关联,所述目标文本与地理位置相关;Among them, the processor 1510 is used to associate the target text in the chat content with the map information, where the target text is related to the geographical location;

用户输入单元1507,用于接收对所述目标文本的第一输入;User input unit 1507, configured to receive a first input to the target text;

显示单元1506,用于响应于所述第一输入,在聊天界面中以预设方式显示所述地图信息。The display unit 1506 is configured to display the map information in a preset manner in the chat interface in response to the first input.

可选地,处理器1510,具体用于在第一用户启动第一聊天辅助功能的情况下,识别聊天内容中与地理位置有关的至少一个目标文本,并将所述目标文本与地图信息进行关联;所述聊天内容位于所述第一用户与第二用户的聊天界面中;其中,所述第一聊天辅助功能包括:识别聊天内容中与地理位置有关的目标文本,并将识别到的目标文本与地图信息进行关联;或者,在第一用户启动第一聊天辅助功能的情况下,接收对所述目标文本的第二输入;响应于所述第二输入,显示第一控件;接收对所述第一控件的第三输入;响应于所述第三输入,显示地图界面;接收对所述地图界面的第四输入;响应于所述第四输入,确定所述地图信息,并将所述目标文本与所述地图信息进行关联。Optionally, the processor 1510 is specifically configured to identify at least one target text related to the geographical location in the chat content and associate the target text with map information when the first user activates the first chat auxiliary function. ; The chat content is located in the chat interface between the first user and the second user; wherein the first chat auxiliary function includes: identifying the target text related to the geographical location in the chat content, and converting the identified target text into associated with map information; or, in the case where the first user activates the first chat auxiliary function, receiving a second input to the target text; in response to the second input, displaying a first control; receiving an input to the target text. a third input of the first control; in response to the third input, displaying a map interface; receiving a fourth input to the map interface; in response to the fourth input, determining the map information and setting the target The text is associated with the map information.

可选地,显示单元1506,还用于在第一用户启用第二聊天辅助功能的情况下,在所述第一用户所在的电子设备与所述目标文本对应的地理位置相距预设距离时,显示第一提示信息。Optionally, the display unit 1506 is also configured to, when the first user activates the second chat auxiliary function, when the electronic device where the first user is located is a preset distance away from the geographical location corresponding to the target text, Display the first prompt information.

可选地,显示单元1506,还用于在所述聊天界面中显示第一功能入口;Optionally, the display unit 1506 is also used to display the first function entrance in the chat interface;

用户输入单元1507,还用于接收对所述第一功能入口的第五输入;The user input unit 1507 is also used to receive the fifth input to the first function entrance;

显示单元1506,还用于响应于所述第五输入,显示第一界面,所述第一界面包括第二控件;The display unit 1506 is further configured to display a first interface in response to the fifth input, where the first interface includes a second control;

用户输入单元1507,还用于接收对所述第二控件的第六输入;The user input unit 1507 is also used to receive the sixth input to the second control;

处理器1510,还用于响应于所述第六输入启动所述第一聊天辅助功能。The processor 1510 is further configured to activate the first chat auxiliary function in response to the sixth input.

可选地,所述第一界面还包括第二功能入口;Optionally, the first interface also includes a second function entrance;

用户输入单元1507,还用于接收对所述第二功能入口的第七输入;The user input unit 1507 is also used to receive the seventh input to the second function entrance;

显示单元1506,还用于响应于所述第七输入,显示第二界面,所述第二界面包括已关联有所述地图信息的目标文本列表。The display unit 1506 is further configured to display a second interface in response to the seventh input, where the second interface includes a target text list associated with the map information.

可选地,所述第二界面包括至少一个第三功能入口,每个所述第三功能入口对应所述目标文本列表中的一个所述目标文本;Optionally, the second interface includes at least one third function entrance, each third function entrance corresponding to one of the target texts in the target text list;

用户输入单元1507,还用于接收对目标功能入口的第八输入;其中,所述目标功能入口为所述至少一个第三功能入口中的一个;The user input unit 1507 is further configured to receive an eighth input to a target function entry; wherein the target function entry is one of the at least one third function entry;

显示单元1506,还用于响应于所述第八输入,显示第三界面,所述第三界面包括第三控件;The display unit 1506 is further configured to display a third interface in response to the eighth input, where the third interface includes a third control;

用户输入单元1507,还用于接收对所述第三控件的第九输入;The user input unit 1507 is also used to receive the ninth input to the third control;

处理器1510,还用于响应于所述第九输入,启动第二聊天辅助功能。The processor 1510 is also configured to activate the second chat auxiliary function in response to the ninth input.

可选地,显示单元1506,还用于在所述聊天内容中包括多个目标文本时,显示第四控件;Optionally, the display unit 1506 is also configured to display a fourth control when the chat content includes multiple target texts;

用户输入单元1507,还用于接收对所述第四控件的第十输入;The user input unit 1507 is also used to receive the tenth input to the fourth control;

显示单元1506,还用于响应于所述第十输入,在所述聊天界面中显示控件列表;其中,所述控件列表中的每个控件对应一个所述目标文本;The display unit 1506 is further configured to display a control list in the chat interface in response to the tenth input; wherein each control in the control list corresponds to one of the target texts;

用户输入单元1507,还用于接收对所述控件列表中的目标控件的第十一输入;The user input unit 1507 is also used to receive an eleventh input to the target control in the control list;

处理器1510,还用于响应于所述第十一输入,将与所述目标控件对应的所述目标文本与地图信息进行关联。The processor 1510 is further configured to, in response to the eleventh input, associate the target text corresponding to the target control with map information.

本申请实施例提供的电子设备,通过将聊天内容中与地理位置相关的目标文本与地图信息进行关联;接收对所述目标文本的第一输入;响应于所述第一输入,在聊天界面中显示所述地图信息。如此,能够使用户在聊天界面中即可便捷地获取聊天内容提到的地理位置,也不会造成聊天中断,且效率高。。The electronic device provided by the embodiment of the present application associates the target text related to the geographical location in the chat content with the map information; receives the first input of the target text; in response to the first input, in the chat interface Display the map information. In this way, the user can easily obtain the geographical location mentioned in the chat content in the chat interface without interrupting the chat, and is highly efficient. .

应理解的是,本申请实施例中,输入单元1504可以包括图形处理器(GraphicsProcessing Unit,GPU)15041和麦克风15042,图形处理器15041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1506可包括显示面板15061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板15061。用户输入单元1507包括触控面板15071以及其他输入设备15072中的至少一种。触控面板15071,也称为触摸屏。触控面板15071可包括触摸检测装置和触摸控制器两个部分。其他输入设备15072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in this embodiment of the present application, the input unit 1504 may include a graphics processor (Graphics Processing Unit, GPU) 15041 and a microphone 15042. The graphics processor 15041 is responsible for the image capture device (such as Process the image data of still pictures or videos obtained by the camera). The display unit 1506 may include a display panel 15061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1507 includes a touch panel 15071 and at least one of other input devices 15072 . Touch panel 15071, also known as touch screen. The touch panel 15071 may include two parts: a touch detection device and a touch controller. Other input devices 15072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.

存储器1509可用于存储软件程序以及各种数据。存储器1509可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1509可以包括易失性存储器或非易失性存储器,或者,存储器1509可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1509包括但不限于这些和任意其它适合类型的存储器。Memory 1509 may be used to store software programs as well as various data. The memory 1509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 1509 may include volatile memory or nonvolatile memory, or memory 1509 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 1509 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.

处理器1510可包括一个或多个处理单元;可选的,处理器1510集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1510中。The processor 1510 may include one or more processing units; optionally, the processor 1510 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 1510.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述聊天内容的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above chat content processing method embodiment is implemented, and can To achieve the same technical effect, to avoid repetition, we will not repeat them here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述聊天内容的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the above chat content processing method. Each process in the example can achieve the same technical effect. To avoid repetition, we will not repeat it here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述聊天内容的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above chat content processing method embodiment, and can achieve the same To avoid repetition, the technical effects will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (14)

CN202311163958.8A2023-09-082023-09-08 Methods and devices for processing chat contentPendingCN117193916A (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202311163958.8ACN117193916A (en)2023-09-082023-09-08 Methods and devices for processing chat content
PCT/CN2024/116292WO2025051087A1 (en)2023-09-082024-09-02Chat content processing method and apparatus

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202311163958.8ACN117193916A (en)2023-09-082023-09-08 Methods and devices for processing chat content

Publications (1)

Publication NumberPublication Date
CN117193916Atrue CN117193916A (en)2023-12-08

Family

ID=89001146

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202311163958.8APendingCN117193916A (en)2023-09-082023-09-08 Methods and devices for processing chat content

Country Status (2)

CountryLink
CN (1)CN117193916A (en)
WO (1)WO2025051087A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN119311362A (en)*2024-10-152025-01-14北京字跳网络技术有限公司 Information display method, device, electronic device, storage medium and program product
WO2025051087A1 (en)*2023-09-082025-03-13维沃移动通信有限公司Chat content processing method and apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105005457B (en)*2014-04-252019-04-09腾讯科技(深圳)有限公司Geographical location methods of exhibiting and device
CN106993085A (en)*2017-03-012017-07-28北京小米移动软件有限公司Positioning result display methods and device, electronic equipment
CN111124709A (en)*2019-12-132020-05-08维沃移动通信有限公司Text processing method and electronic equipment
CN112818094A (en)*2021-01-222021-05-18维沃移动通信(杭州)有限公司Chat content processing method and device and electronic equipment
CN117193916A (en)*2023-09-082023-12-08维沃移动通信有限公司 Methods and devices for processing chat content

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2025051087A1 (en)*2023-09-082025-03-13维沃移动通信有限公司Chat content processing method and apparatus
CN119311362A (en)*2024-10-152025-01-14北京字跳网络技术有限公司 Information display method, device, electronic device, storage medium and program product

Also Published As

Publication numberPublication date
WO2025051087A1 (en)2025-03-13

Similar Documents

PublicationPublication DateTitle
CN112988006B (en) Display method, device, electronic device and storage medium
CN117193916A (en) Methods and devices for processing chat content
CN112269798B (en) Information display method, device and electronic device
CN112099704A (en)Information display method and device, electronic equipment and readable storage medium
CN112181253A (en)Information display method and device and electronic equipment
WO2022247814A1 (en)Method and apparatus for selecting target character, electronic device, and storage medium
CN113849092A (en)Content sharing method and device and electronic equipment
CN114385049A (en)Message processing method, device, equipment and storage medium
CN114443203A (en) Information display method and device, electronic device and readable storage medium
WO2024012508A1 (en)Functional interface display method and apparatus
CN113114845A (en)Notification message display method and device
WO2023284640A1 (en)Picture processing method and electronic device
WO2022135259A1 (en)Speech input method and apparatus, and electronic device
WO2025040061A1 (en)Screenshot method and apparatus, electronic device, and readable storage medium
WO2024245176A1 (en)Display method and apparatus
WO2023134599A1 (en)Voice information sending method and apparatus, and electronic device
CN117519884A (en)Application remarking method and device, electronic equipment and storage medium
WO2024041510A1 (en)Contact determination method and apparatus, and electronic device and medium
CN116775982A (en) Search methods, apparatus, equipment and media
WO2023131153A1 (en)Information updating method, information updating apparatus, electronic device and medium
WO2022228294A1 (en)Method and apparatus for carrying out searching, electronic device, and readable storage medium
CN112764628B (en) Content display method, apparatus, electronic device and storage medium
CN115586937A (en)Interface display method and device, electronic equipment and readable storage medium
CN113010251A (en)Information processing method and device and electronic equipment
CN112764621A (en)Screenshot method and device and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp