技术领域technical field
本公开涉及操作系统领域,特别涉及一种推荐信息显示方法、装置及存储介质。The present disclosure relates to the field of operating systems, and in particular to a method, device and storage medium for displaying recommended information.
背景技术Background technique
在用户使用终端上的应用程序时,经常会对应用程序的用户界面中显示的地理位置信息进行搜索。终端可以是智能手机、平板电脑或电子书阅读器等。When a user uses an application program on a terminal, the geographical location information displayed on the user interface of the application program is often searched. The terminal can be a smartphone, a tablet, or an e-book reader, etc.
典型的搜索过程如下:1,用户在应用程序的用户界面中查看到地理位置信息后,长按地理位置信息;2,移动终端在接收到长按信号后,弹出复制工具栏,用户点击复制工具栏上的复制按钮,对地理位置信息进行复制;3,用户退出该应用程序,回到桌面;4,用户在桌面找到并打开浏览器;5,用户在浏览器中打开搜索网站;6,将地理位置信息粘贴到浏览器的搜索框中进行搜索,浏览器显示与地理位置信息有关的搜索结果。A typical search process is as follows: 1. After viewing the geographical location information in the user interface of the application, the user presses and holds the geographical location information; 2. After the mobile terminal receives the long-press signal, a copy toolbar pops up, and the user clicks the copy tool 3. The user exits the application and returns to the desktop; 4. The user finds and opens the browser on the desktop; 5. The user opens the search website in the browser; 6. The geographic location information is pasted into the search box of the browser for searching, and the browser displays search results related to the geographic location information.
由于用户需要6步操作才能完成一个地理位置信息的搜索过程,导致用户的操作流程非常繁琐,人机交互的效率较低。Since the user needs 6 operations to complete a search process of geographical location information, the user's operation process is very cumbersome, and the efficiency of human-computer interaction is low.
发明内容Contents of the invention
本公开提供一种推荐信息显示方法、装置及存储介质,可以解决相关技术中的操作流程非常繁琐且人机交互效率较低的问题。所述技术方案如下:The present disclosure provides a recommended information display method, device and storage medium, which can solve the problems of very cumbersome operation process and low human-computer interaction efficiency in related technologies. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供一种推荐信息显示方法,应用于运行有操作系统和应用程序的终端中,所述方法包括:According to the first aspect of the embodiments of the present disclosure, a method for displaying recommended information is provided, which is applied to a terminal running an operating system and an application program, and the method includes:
显示所述应用程序的用户界面,所述用户界面包括至少一个界面元素;displaying a user interface of the application, the user interface comprising at least one interface element;
接收在所述用户界面上的触发操作;receiving a trigger operation on the user interface;
根据所述触发操作选择所述至少一个界面元素中的目标界面元素,所述目标界面元素中包括有地点信息;selecting a target interface element in the at least one interface element according to the trigger operation, where the target interface element includes location information;
通过所述操作系统在所述用户界面的局部区域上叠加显示推荐信息,所述推荐信息包括基于所述地点信息搜索得到的信息。The operating system superimposes and displays recommendation information on a local area of the user interface, where the recommendation information includes information obtained by searching based on the location information.
在一个可选的实施例中,所述通过所述操作系统在所述用户界面的局部区域上叠加显示推荐信息,包括:In an optional embodiment, the superimposing and displaying recommendation information on a local area of the user interface through the operating system includes:
通过所述操作系统在所述用户界面的局部区域上叠加显示n个显示元素,n为正整数,所述显示元素的显示层级高于所述用户界面的显示层级,每个所述显示元素用于显示至少一个所述推荐信息的第一级信息。Overlay and display n display elements on a local area of the user interface through the operating system, where n is a positive integer, the display level of the display elements is higher than the display level of the user interface, and each of the display elements is used for displaying at least one first-level information of the recommended information.
在一个可选的实施例中,所述通过所述操作系统在所述用户界面的局部区域上叠加显示n个显示元素,包括:In an optional embodiment, the superimposing and displaying n display elements on a local area of the user interface through the operating system includes:
通过所述操作系统在所述用户界面的局部区域上叠加显示列表视图控件,所述列表视图控件包括n个显示元素,n≥2,所述n个显示元素在所述列表视图控件中按照第一方向排列且第i个显示元素的尾部与第i+1个显示元素的首部相接,i为正整数且i≤n-1。Overlaying and displaying a list view control on a partial area of the user interface through the operating system, the list view control includes n display elements, n≥2, and the n display elements are arranged according to the order of the list view control in the list view control Arranged in one direction and the tail of the i-th display element is connected to the head of the i+1-th display element, i is a positive integer and i≤n-1.
在一个可选的实施例中,所述地名信息是详细地址信息,所述详细地址信息是具有地址详情的地名信息;In an optional embodiment, the place name information is detailed address information, and the detailed address information is place name information with address details;
所述推荐信息包括基于所述详细地址信息搜索到的推荐信息。The recommendation information includes recommendation information searched based on the detailed address information.
在一个可选的实施例中,所述目标界面元素包括:地名简称信息和第一地区名,所述地名简称信息是具有地址名称但不具有地址详情的地名信息;In an optional embodiment, the target interface element includes: place name abbreviation information and a first area name, and the place name abbreviation information is place name information with an address name but without address details;
所述推荐信息包括基于所述地名简称信息搜索到的第一推荐信息,所述第一推荐信息是与所述第一地区名匹配的推荐信息。The recommendation information includes first recommendation information searched based on the place name abbreviation information, and the first recommendation information is recommendation information matching the first area name.
在一个可选的实施例中,所述第一推荐信息为至少两个,所述目标界面元素中还包括详细地址信息;In an optional embodiment, there are at least two pieces of first recommendation information, and the target interface element further includes detailed address information;
所述通过所述操作系统在所述用户界面的局部区域上叠加显示n个显示元素,包括:The superimposed display of n display elements on the local area of the user interface through the operating system includes:
通过所述操作系统在所述用户界面的局部区域上按照第一顺序叠加显示n个显示元素,每个所述显示元素用于显示所述第一推荐信息的第一级信息,所述第一顺序是按照所述第一推荐信息对应的地理位置与所述详细地址信息之间的距离由近到远排列的顺序。Overlaying and displaying n display elements in a first order on a local area of the user interface through the operating system, each of the display elements is used to display first-level information of the first recommendation information, and the first The order is arranged according to the distance between the geographic location corresponding to the first recommendation information and the detailed address information from shortest to farthest.
在一个可选的实施例中,所述第一推荐信息为至少两个,所述目标界面元素中不包括详细地址信息;In an optional embodiment, there are at least two pieces of first recommendation information, and the target interface element does not include detailed address information;
所述通过所述操作系统在所述用户界面的局部区域上叠加显示n个显示元素,包括:The superimposed display of n display elements on the local area of the user interface through the operating system includes:
通过所述操作系统在所述用户界面的局部区域上按照第二顺序叠加显示n个显示元素,每个所述显示元素用于显示所述第一推荐信息的第一级信息,所述第二顺序是按照所述第一推荐信息对应的地理位置与所述终端的当前所在位置之间的距离由近到远排列的顺序。Overlaying and displaying n display elements in a second order on a local area of the user interface through the operating system, each of the display elements is used to display the first-level information of the first recommendation information, and the second The order is arranged in descending order according to the distance between the geographic location corresponding to the first recommendation information and the current location of the terminal.
在一个可选的实施例中,所述目标界面元素包括:地名简称信息和至少两个第二地区名,所述第二地区名是具有地址名称但不具有地址详情的地名信息;In an optional embodiment, the target interface element includes: place name abbreviation information and at least two second area names, where the second area names are place name information with address names but without address details;
所述推荐信息包括基于所述地名简称信息搜索到的至少两组第二推荐信息,每组所述第二推荐信息是与所述至少两个第二地区名中的一个地区名匹配的推荐信息。The recommendation information includes at least two groups of second recommendation information searched based on the place name abbreviation information, each group of the second recommendation information is recommendation information that matches one of the at least two second region names .
在一个可选的实施例中,所述至少两组第二推荐信息中存在至少一组目标第二推荐信息为至少两个,所述目标界面元素中还包括详细地址信息;In an optional embodiment, there are at least two sets of target second recommendation information among the at least two groups of second recommendation information, and the target interface elements further include detailed address information;
所述通过所述操作系统在所述用户界面的局部区域上叠加显示n个显示元素,包括:The superimposed display of n display elements on the local area of the user interface through the operating system includes:
通过所述操作系统在所述用户界面的局部区域上按照第三顺序叠加显示n个显示元素,所述n个显示元素用于显示所述目标第二推荐信息,每个所述显示元素用于显示所述目标第二推荐信息的第一级信息,所述第三顺序是按照所述目标第二推荐信息对应的地理位置与所述详细地址信息之间的距离由近到远排列的顺序。Overlaying and displaying n display elements in a third order on a local area of the user interface by the operating system, the n display elements are used to display the target second recommendation information, and each of the display elements is used for The first-level information of the target second recommendation information is displayed, and the third order is arranged according to the distance between the geographic location corresponding to the target second recommendation information and the detailed address information from shortest to farthest.
在一个可选的实施例中,所述至少两组第二推荐信息中存在至少一组目标第二推荐信息为至少两个,所述目标界面元素中不包括详细地址信息;In an optional embodiment, there are at least two sets of target second recommendation information among the at least two groups of second recommendation information, and the target interface elements do not include detailed address information;
所述通过所述操作系统在所述用户界面的局部区域上叠加显示n个显示元素,包括:The superimposed display of n display elements on the local area of the user interface through the operating system includes:
通过所述操作系统在所述用户界面的局部区域上按照第四顺序叠加显示n个显示元素,所述n个显示元素用于显示所述目标第二推荐信息,每个所述显示元素用于显示所述目标第二推荐信息的第一级信息,所述第四顺序是按照所述目标第二推荐信息对应的地理位置与所述终端的当前所在位置之间的距离由近到远排列的顺序。Overlaying and displaying n display elements in a fourth order on a local area of the user interface by the operating system, the n display elements are used to display the target second recommendation information, and each of the display elements is used for Displaying the first-level information of the target second recommendation information, the fourth order is arranged in descending order according to the distance between the geographic location corresponding to the target second recommendation information and the current location of the terminal order.
在一个可选的实施例中,所述目标界面元素包括:地名简称信息,所述地名简称信息是具有地址名称但不具有地址详情的地名信息;In an optional embodiment, the target interface element includes: place name abbreviation information, where the place name abbreviation information is place name information that has an address name but does not have address details;
所述推荐信息包括基于所述地名简称信息搜索到的第三推荐信息,所述第三推荐信息是与所述终端当前所在的地区匹配的推荐信息。The recommendation information includes third recommendation information searched based on the place name abbreviation information, where the third recommendation information is recommendation information that matches the region where the terminal is currently located.
在一个可选的实施例中,所述局部区域包括:In an optional embodiment, the local area includes:
所述用户界面的底部区域;the bottom area of the user interface;
或,所述目标界面元素的相邻区域;Or, the adjacent area of the target interface element;
或,所述触发操作的操作位置的相邻区域。Or, the adjacent area of the operation position of the trigger operation.
在一个可选的实施例中,所述目标界面元素包括:文本控件、文本编辑控件、按钮控件、图像控件、对话框控件中的至少一种。In an optional embodiment, the target interface element includes: at least one of a text control, a text editing control, a button control, an image control, and a dialog control.
在一个可选的实施例中,所述通过所述操作系统在所述用户界面的局部区域上叠加显示推荐信息之后,还包括:In an optional embodiment, after superimposing and displaying the recommendation information on the local area of the user interface through the operating system, it further includes:
在第j个推荐信息上接收第一滑动操作,所述第一滑动操作是沿第一方向滑动的操作;将所述第j个推荐信息跟随所述第一滑动操作沿所述第一方向进行滑动显示,将所述第j个推荐信息滑出所述局部区域的部分进行隐藏,将第j-1个推荐信息滑入所述局部区域的部分进行显示,j为大于1的整数,且j小于或等于n;receiving a first sliding operation on the jth recommendation information, where the first sliding operation is an operation of sliding along a first direction; performing the jth recommendation information along the first direction following the first sliding operation Slide display, hide the part where the jth recommendation information slides out of the local area, and slide the j-1th recommendation information into the part of the local area for display, j is an integer greater than 1, and j less than or equal to n;
和/或,and / or,
在第k个推荐信息上接收第二滑动操作,所述第二滑动操作是沿第二方向滑动的操作;将所述第k个推荐信息跟随所述第二滑动操作沿所述第二方向进行滑动显示,将所述第k个推荐信息滑出所述局部区域的部分进行隐藏,将第k+1个推荐信息滑入所述局部区域的部分进行显示,k为小于n的整数;receiving a second sliding operation on the kth recommendation information, the second sliding operation is an operation of sliding along a second direction; performing the kth recommendation information along the second direction following the second sliding operation Slide display, hide the part where the kth recommendation information slides out of the local area, and display the part where the k+1th recommendation information slides into the local area, k is an integer less than n;
其中,所述第一方向和所述第二方向相反。Wherein, the first direction is opposite to the second direction.
在一个可选的实施例中,提供一种推荐信息显示方法,所述方法还包括:In an optional embodiment, a method for displaying recommended information is provided, the method further comprising:
根据所述选择操作提取所述目标界面元素中的内容信息;Extracting content information in the target interface element according to the selection operation;
向服务器发送所述内容信息;Send the content information to the server;
接收所述服务器反馈的所述推荐信息,所述推荐信息是所述服务器用于对所述内容信息中的词语进行分词和词性标注处理以得到标注有词性的至少一个分词结果,且根据所述词性从所述至少一个分词结果提取所述地点信息后搜索得到的。receiving the recommendation information fed back by the server, the recommendation information is used by the server to perform word segmentation and part-of-speech tagging processing on words in the content information to obtain at least one word segmentation result marked with part-of-speech, and according to the The part of speech is obtained by searching after extracting the location information from the at least one word segmentation result.
在一个可选的实施例中,所述根据所述选择操作提取所述目标元素中的内容信息,包括:In an optional embodiment, the extracting the content information in the target element according to the selection operation includes:
根据预设名单列表检测所述应用程序的上下文信息是否符合抓取条件,所述预设名单列表存储有符合所述抓取条件的上下文信息和/或不符合所述抓取条件的上下文信息;Detecting whether the context information of the application meets the capture condition according to a preset list list, the preset list list stores context information that meets the capture condition and/or context information that does not meet the capture condition;
若所述上下文信息符合所述抓取条件,则根据所述选择操作抓取所述目标界面元素的内容信息。If the context information meets the capture condition, then capture the content information of the target interface element according to the selection operation.
在一个可选的实施例中,所述方法还包括:In an optional embodiment, the method also includes:
接收在所述n个显示元素上的第i个显示元素上触发的触发操作;receiving a trigger operation triggered on the i-th display element on the n display elements;
在所述用户界面上的第二局部区域叠加显示所述第i个显示元素对应的信息窗口,所述信息窗口用于显示所述第i个显示元素对应的推荐信息的第二级信息。The information window corresponding to the i-th display element is superimposedly displayed in the second partial area on the user interface, and the information window is used to display the second-level information of the recommendation information corresponding to the i-th display element.
根据本公开实施例的第二方面,提供一种推荐信息显示方法,所述方法包括:According to a second aspect of an embodiment of the present disclosure, a method for displaying recommended information is provided, the method comprising:
接收终端发送的目标界面元素中的内容信息,所述目标界面元素是所述终端根据选择操作在应用程序的用户界面中的至少一个界面元素中选择出的,所述目标界面元素包括有地点信息;receiving the content information in the target interface element sent by the terminal, the target interface element is selected by the terminal from at least one interface element in the user interface of the application program according to the selection operation, and the target interface element includes location information ;
对所述目标界面元素中的词语进行分词和词性标注处理,得到标注有词性的至少一个分词结果;performing word segmentation and part-of-speech tagging processing on the words in the target interface element, and obtaining at least one part-of-speech tagged part-of-speech result;
根据所述词性从所述至少一个分词结果提取所述地名信息;extracting the place name information from the at least one word segmentation result according to the part of speech;
根据所述地名信息搜索得到推荐信息;Searching for recommended information according to the place name information;
向所述终端发送所述推荐信息,所述推荐信息用于由所述终端的操作系统在所述用户界面的局部区域上进行叠加显示。sending the recommendation information to the terminal, where the recommendation information is used for superimposed display on a local area of the user interface by the operating system of the terminal.
在一个可选的实施例中,所述根据所述地名信息搜索得到推荐信息,包括:In an optional embodiment, the searching for recommended information according to the place name information includes:
当所述地名信息中包括详细地址信息时,根据所述详细地址信息搜索到的所述推荐信息。When the place name information includes detailed address information, the recommendation information is searched based on the detailed address information.
在一个可选的实施例中,所述根据所述地名信息搜索得到推荐信息,包括:In an optional embodiment, the searching for recommended information according to the place name information includes:
当所述地名信息包括地名简称信息且所述分词结果中包括第一地区名时,根据所述地名简称信息搜索到至少两条候选推荐信息;When the place name information includes place name abbreviation information and the word segmentation result includes the first area name, at least two pieces of candidate recommendation information are searched according to the place name abbreviation information;
从所述至少两条候选推荐信息中筛选出与所述第一地区名匹配的推荐信息。The recommended information matching the first region name is selected from the at least two pieces of candidate recommended information.
在一个可选的实施例中,所述根据所述地名信息搜索得到推荐信息,包括:In an optional embodiment, the searching for recommended information according to the place name information includes:
当所述地名信息包括地名简称信息且所述分词结果中包括至少两个第二地区名时,根据所述地名简称信息搜索到至少两组候选推荐信息;When the place name information includes place name abbreviation information and the word segmentation result includes at least two second area names, at least two groups of candidate recommendation information are searched according to the place name abbreviation information;
从所述至少两组候选推荐信息中筛选出与所述至少两个第二地区名中的一个地区名匹配的推荐信息。The recommendation information matching one of the at least two second region names is selected from the at least two groups of candidate recommendation information.
在一个可选的实施例中,所述根据所述地名信息搜索得到推荐信息,包括:In an optional embodiment, the searching for recommended information according to the place name information includes:
接收所述终端发送的所述终端的当前所在的地区;receiving the current location of the terminal sent by the terminal;
当所述地名信息仅包括地名简称信息时,根据所述地名简称信息搜索到候选推荐信息;When the place name information only includes place name abbreviation information, candidate recommendation information is searched according to the place name abbreviation information;
从所述候选推荐信息中筛选出与所述终端当前所在的地区匹配的推荐信息。The recommendation information matching the region where the terminal is currently located is screened out from the candidate recommendation information.
在一个可选的实施例中,所述向所述终端发送所述推荐信息,包括:In an optional embodiment, the sending the recommendation information to the terminal includes:
根据所述词性从分词结果中提取详细地址信息;Extracting detailed address information from word segmentation results according to the part of speech;
根据所述推荐信息对应的地理位置与所述详细地址信息之间的距离由近到远对所述推荐信息进行排序,并将所述推荐信息发送到所述终端。sorting the recommendation information according to the distance between the geographic location corresponding to the recommendation information and the detailed address information in descending order, and sending the recommendation information to the terminal.
在一个可选的实施例中,所述向所述终端发送所述推荐信息,包括:In an optional embodiment, the sending the recommendation information to the terminal includes:
接收所述终端发送的所述终端的当前位置信息;receiving the current location information of the terminal sent by the terminal;
根据所述推荐信息对应的地理位置与所述所述终端的当前所在位置之间的距离由近到远对推荐信息进行排序,并将所述推荐信息发送到所述终端。sorting the recommendation information according to the distance between the geographic location corresponding to the recommendation information and the current location of the terminal in descending order, and sending the recommendation information to the terminal.
根据本公开实施例的第三方面,提供一种推荐信息显示装置,所述装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided a device for displaying recommended information, the device comprising:
显示模块,被配置为显示所述应用程序的用户界面,所述用户界面包括至少一个界面元素;a display module configured to display a user interface of the application, the user interface including at least one interface element;
交互模块,被配置为接收在所述用户界面上的触发操作;an interaction module configured to receive a trigger operation on the user interface;
选择模块,被配置为根据所述选择操作选择所述至少一个界面元素中的目标界面元素,所述目标界面元素中包括有地点信息;A selection module configured to select a target interface element in the at least one interface element according to the selection operation, where the target interface element includes location information;
所述显示模块,被配置为通过所述操作系统在所述用户界面的局部区域上叠加显示推荐信息,所述推荐信息包括基于所述地点信息搜索得到的信息。The display module is configured to superimpose and display recommendation information on a local area of the user interface through the operating system, where the recommendation information includes information obtained by searching based on the location information.
在一个可选的实施例中,所述显示模块,被配置为通过所述操作系统在所述用户界面的局部区域上叠加显示n个显示元素,n为正整数,所述显示元素的显示层级高于所述用户界面的显示层级,每个所述显示元素上用于显示至少一个所述推荐信息的第一级信息。In an optional embodiment, the display module is configured to superimpose and display n display elements on a partial area of the user interface through the operating system, where n is a positive integer, and the display level of the display elements is Above the display level of the user interface, each of the display elements is used to display at least one first-level information of the recommended information.
在一个可选的实施例中,所述显示模块,被配置为通过所述操作系统在所述用户界面的局部区域上叠加显示列表视图控件,所述列表视图控件包括n个显示元素,n≥2,所述n个显示元素在所述列表视图控件中按照第一方向排列且第i个显示元素的尾部与第i+1个显示元素的首部相接,i为正整数且i≤n-1。In an optional embodiment, the display module is configured to superimpose and display a list view control on a local area of the user interface through the operating system, the list view control includes n display elements, n≥ 2. The n display elements are arranged in the first direction in the list view control and the tail of the i-th display element is connected to the head of the i+1-th display element, i is a positive integer and i≤n- 1.
在一个可选的实施例中,所述地名信息是详细地址信息,所述详细地址信息是具有地址详情的地名信息;In an optional embodiment, the place name information is detailed address information, and the detailed address information is place name information with address details;
所述推荐信息包括基于所述详细地址信息搜索到的推荐信息。The recommendation information includes recommendation information searched based on the detailed address information.
在一个可选的实施例中,所述目标界面元素包括:地名简称信息和第一地区名,所述地名简称信息是具有地址名称但不具有地址详情的地名信息;In an optional embodiment, the target interface element includes: place name abbreviation information and a first area name, and the place name abbreviation information is place name information with an address name but without address details;
所述推荐信息包括基于所述地名简称信息搜索到的第一推荐信息,所述第一推荐信息是与所述第一地区名匹配的推荐信息。The recommendation information includes first recommendation information searched based on the place name abbreviation information, and the first recommendation information is recommendation information matching the first area name.
在一个可选的实施例中,所述第一推荐信息为至少两个,所述目标界面元素中还包括详细地址信息;In an optional embodiment, there are at least two pieces of first recommendation information, and the target interface element further includes detailed address information;
所述显示模块被配置为通过所述操作系统在所述用户界面的局部区域上按照第一顺序叠加显示n个显示元素,每个所述显示元素用于显示所述第一推荐信息的第一级信息,所述第一顺序是按照所述第一推荐信息对应的地理位置与所述详细地址信息之间的距离由近到远排列的顺序。The display module is configured to superimpose and display n display elements in a first order on a local area of the user interface through the operating system, and each of the display elements is used to display the first item of the first recommendation information. level information, the first order is an order arranged in descending order according to the distance between the geographic location corresponding to the first recommendation information and the detailed address information.
在一个可选的实施例中,所述第一推荐信息为至少两个,所述目标界面元素中不包括详细地址信息;In an optional embodiment, there are at least two pieces of first recommendation information, and the target interface element does not include detailed address information;
所述显示模块被配置为通过所述操作系统在所述用户界面的局部区域上按照第二顺序叠加显示n个显示元素,每个所述显示元素用于显示所述第一推荐信息的第一级信息,所述第二顺序是按照所述第一推荐信息对应的地理位置与所述终端的当前所在位置之间的距离由近到远排列的顺序。The display module is configured to superimpose and display n display elements in a second order on the local area of the user interface through the operating system, and each of the display elements is used to display the first item of the first recommendation information. level information, the second order is an order arranged in descending order according to the distance between the geographic location corresponding to the first recommendation information and the current location of the terminal.
在一个可选的实施例中,所述目标界面元素包括:地名简称信息和至少两个第二地区名,所述第二地区名是具有地址名称但不具有地址详情的地名信息;In an optional embodiment, the target interface element includes: place name abbreviation information and at least two second area names, where the second area names are place name information with address names but without address details;
所述推荐信息包括基于所述地名简称信息搜索到的至少两组第二推荐信息,每组所述第二推荐信息是与所述至少两个第二地区名中的一个地区名匹配的推荐信息。The recommendation information includes at least two groups of second recommendation information searched based on the place name abbreviation information, each group of the second recommendation information is recommendation information that matches one of the at least two second region names .
在一个可选的实施例中,所述至少两组第二推荐信息中存在至少一组目标第二推荐信息为至少两个,所述目标界面元素中还包括详细地址信息;In an optional embodiment, there are at least two sets of target second recommendation information among the at least two groups of second recommendation information, and the target interface elements further include detailed address information;
所述显示模块被配置为通过所述操作系统在所述用户界面的局部区域上按照第三顺序叠加显示n个显示元素,所述n个显示元素用于显示所述目标第二推荐信息,每个所述显示元素用于显示所述目标第二推荐信息的第一级信息,所述第三顺序是按照所述目标第二推荐信息对应的地理位置与所述详细地址信息之间的距离由近到远排列的顺序。The display module is configured to superimpose and display n display elements in a third order on the local area of the user interface through the operating system, and the n display elements are used to display the target second recommendation information, each The display elements are used to display the first-level information of the target second recommendation information, and the third order is determined by the distance between the geographic location corresponding to the target second recommendation information and the detailed address information. order from near to far.
在一个可选的实施例中,所述至少两组第二推荐信息中存在至少一组目标第二推荐信息为至少两个,所述目标界面元素中不包括详细地址信息;In an optional embodiment, there are at least two sets of target second recommendation information among the at least two groups of second recommendation information, and the target interface elements do not include detailed address information;
所述显示模块被配置为通过所述操作系统在所述用户界面的局部区域上按照第四顺序叠加显示n个显示元素,所述n个显示元素用于显示所述目标第二推荐信息,每个所述显示元素用于显示所述目标第二推荐信息的第一级信息,所述第四顺序是按照所述目标第二推荐信息对应的地理位置与所述终端的当前所在位置之间的距离由近到远排列的顺序。The display module is configured to superimpose and display n display elements in a fourth order on the local area of the user interface through the operating system, and the n display elements are used to display the target second recommendation information, each The display elements are used to display the first-level information of the target second recommendation information, and the fourth order is according to the relationship between the geographic location corresponding to the target second recommendation information and the current location of the terminal. Arranged in order of distance from closest to farthest.
在一个可选的实施例中,所述目标界面元素包括:地名简称信息,所述地名简称信息是具有地址名称但不具有地址详情的地名信息;In an optional embodiment, the target interface element includes: place name abbreviation information, where the place name abbreviation information is place name information that has an address name but does not have address details;
所述推荐信息包括基于所述地名简称信息搜索到的第三推荐信息,所述第三推荐信息是与所述终端当前所在的地区匹配的推荐信息。The recommendation information includes third recommendation information searched based on the place name abbreviation information, where the third recommendation information is recommendation information that matches the region where the terminal is currently located.
在一个可选的实施例中,所述局部区域包括:In an optional embodiment, the local area includes:
所述用户界面的底部区域;the bottom area of the user interface;
或,所述目标界面元素的相邻区域;Or, the adjacent area of the target interface element;
或,所述触发操作的操作位置的相邻区域。Or, the adjacent area of the operation position of the trigger operation.
在一个可选的实施例中,所述目标界面元素包括:文本控件、文本编辑控件、按钮控件、图像控件、对话框控件中的至少一种。In an optional embodiment, the target interface element includes: at least one of a text control, a text editing control, a button control, an image control, and a dialog control.
在一个可选的实施例中,所述交互模块,被配置为在第j个推荐信息上接收第一滑动操作,所述第一滑动操作是沿第一方向滑动的操作;所述显示模块,被配置为将所述第j个推荐信息跟随所述第一滑动操作沿所述第一方向进行滑动显示,将所述第j个推荐信息滑出所述局部区域的部分进行隐藏,将第j-1个推荐信息滑入所述局部区域的部分进行显示,j为大于1的整数,且j小于或等于n;In an optional embodiment, the interaction module is configured to receive a first sliding operation on the jth recommendation information, the first sliding operation is a sliding operation along a first direction; the display module, It is configured to slide and display the jth recommendation information along the first direction following the first sliding operation, hide the part where the jth recommendation information slides out of the local area, and hide the jth recommendation information -1 piece of recommended information slides into the part of the local area for display, j is an integer greater than 1, and j is less than or equal to n;
和/或,and / or,
所述交互模块,被配置为在第k个推荐信息上接收第二滑动操作,所述第二滑动操作是沿第二方向滑动的操作;所述显示模块,被配置为将所述第k个推荐信息跟随所述第二滑动操作沿所述第二方向进行滑动显示,将所述第k个推荐信息滑出所述局部区域的部分进行隐藏,将第k+1个推荐信息滑入所述局部区域的部分进行显示,k为小于n的整数;The interaction module is configured to receive a second sliding operation on the kth recommendation information, the second sliding operation is an operation of sliding along a second direction; the display module is configured to display the kth recommended information The recommended information is slid and displayed along the second direction following the second sliding operation, the part of the kth recommended information that slides out of the local area is hidden, and the k+1th recommended information is slid into the Part of the local area is displayed, k is an integer less than n;
其中,所述第一方向和所述第二方向相反。Wherein, the first direction is opposite to the second direction.
在一个可选的实施例中,In an alternative embodiment,
所述选择模块,被配置为根据所述选择操作提取所述目标界面元素中的内容信息;The selection module is configured to extract content information in the target interface element according to the selection operation;
发送模块,被配置为向服务器发送所述内容信息;a sending module configured to send the content information to a server;
接收模块,被配置为接收所述服务器反馈的所述推荐信息,所述推荐信息是所述服务器用于对所述内容信息中的词语进行分词和词性标注处理以得到标注有词性的至少一个分词结果,且根据所述词性从所述至少一个分词结果提取所述地名信息后搜索得到的。The receiving module is configured to receive the recommendation information fed back by the server, the recommendation information is used by the server to perform word segmentation and part-of-speech tagging processing on words in the content information to obtain at least one part-of-speech tagged word result, and is obtained by searching after extracting the place name information from the at least one word segmentation result according to the part of speech.
在一个可选的实施例中,所述选择模块,被配置为根据预设名单列表检测所述应用程序的上下文信息是否符合抓取条件,所述预设名单列表存储有符合所述抓取条件的上下文信息和/或不符合所述抓取条件的上下文信息;若所述上下文信息符合所述抓取条件,则根据所述选择操作抓取所述目标界面元素的内容信息。In an optional embodiment, the selection module is configured to detect whether the context information of the application meets the grabbing condition according to a preset list, and the preset list stores information that meets the grabbing condition. and/or context information that does not meet the grabbing condition; if the context information meets the grabbing condition, grab the content information of the target interface element according to the selection operation.
在一个可选的实施例中,所述交互模块,被配置为接收在所述n个显示元素上的第i个显示元素上触发的触发操作;所述显示模块,被配置为在所述用户界面上的第二局部区域叠加显示所述第i个显示元素对应的信息窗口,所述信息窗口用于显示所述第i个显示元素对应的推荐信息的第二级信息。In an optional embodiment, the interaction module is configured to receive a trigger operation triggered on the i-th display element on the n display elements; the display module is configured to The second partial area on the interface superimposes and displays the information window corresponding to the i-th display element, and the information window is used to display the second-level information of the recommendation information corresponding to the i-th display element.
根据本公开实施例的第四方面,提供一种推荐信息显示装置,所述装置包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided a device for displaying recommended information, the device comprising:
接收模块,被配置为接收终端发送的目标界面元素中的内容信息,所述目标界面元素是所述终端根据选择操作在应用程序的用户界面中的至少一个界面元素中选择出的,所述目标界面元素包括有地点信息;The receiving module is configured to receive the content information in the target interface element sent by the terminal, the target interface element is selected by the terminal from at least one interface element in the user interface of the application program according to the selection operation, the target Interface elements include location information;
处理模块,被配置为对所述目标界面元素中的词语进行分词和词性标注处理,得到标注有词性的至少一个分词结果;The processing module is configured to perform word segmentation and part-of-speech tagging processing on the words in the target interface element, and obtain at least one part-of-speech tagged part-of-speech result;
提取模块,被配置为根据所述词性从所述至少一个分词结果提取所述地名信息;An extraction module configured to extract the place name information from the at least one word segmentation result according to the part of speech;
搜索模块,被配置为根据所述地名信息搜索得到推荐信息;A search module configured to search for recommended information according to the place name information;
发送模块,被配置为向所述终端发送所述推荐信息,所述推荐信息用于由所述终端的操作系统在所述用户界面的局部区域上进行叠加显示。The sending module is configured to send the recommendation information to the terminal, where the recommendation information is used for superimposed display on a local area of the user interface by the operating system of the terminal.
在一个可选的实施例中,所述搜索模块,被配置为当所述地名信息中包括详细地址信息时,根据所述详细地址信息搜索到的所述推荐信息。In an optional embodiment, the search module is configured to search for the recommended information based on the detailed address information when the place name information includes detailed address information.
在一个可选的实施例中,所述搜索模块,被配置为当所述地名信息包括地名简称信息且所述分词结果中包括第一地区名时,根据所述地名简称信息搜索到至少两条候选推荐信息,从所述至少两条候选推荐信息中筛选出与所述第一地区名匹配的第一推荐信息。In an optional embodiment, the search module is configured to search for at least two items according to the place name abbreviation information when the place name information includes place name abbreviation information and the word segmentation result includes the first area name. Candidate recommendation information, selecting first recommendation information that matches the first region name from the at least two pieces of candidate recommendation information.
在一个可选的实施例中,所述搜索模块,被配置为当所述地名信息包括地名简称信息且所述分词结果中包括至少两个第二地区名时,根据所述地名简称信息搜索到至少两组候选推荐信息,从所述至少两组候选推荐信息中筛选出与所述至少两个第二地区名中的一个地区名匹配的第二推荐信息。In an optional embodiment, the search module is configured to, when the place name information includes place name abbreviation information and the word segmentation results include at least two second area names, search for At least two groups of candidate recommendation information, screening out the second recommendation information matching one of the at least two second region names from the at least two groups of candidate recommendation information.
在一个可选的实施例中,所述接收模块,被配置为接收所述终端发送的所述终端的当前所在的地区;所述搜索模块,被配置为当所述地名信息仅包括地名简称信息时,根据所述地名简称信息搜索得到候选推荐信息,从所述候选推荐信息中筛选出与所述终端当前所在的地区匹配的第三推荐信息。In an optional embodiment, the receiving module is configured to receive the current location of the terminal sent by the terminal; the searching module is configured to receive the place name information only when the place name information only includes place name abbreviation information At this time, the candidate recommendation information is obtained by searching according to the place name and abbreviation information, and the third recommendation information that matches the region where the terminal is currently located is selected from the candidate recommendation information.
在一个可选的实施例中,所述提取模块,被配置为根据所述词性从分词结果中提取详细地址信息;所述发送模块,被配置为根据所述推荐信息对应的地理位置与所述详细地址信息之间的距离由近到远对推荐信息进行排序,并将所述推荐信息发送到所述终端。In an optional embodiment, the extracting module is configured to extract detailed address information from word segmentation results according to the part of speech; the sending module is configured to match the geographic location corresponding to the recommendation information with the The distance between the detailed address information is sorted from short to far, and the recommended information is sent to the terminal.
在一个可选的实施例中,所述提取模块,被配置为接收所述终端发送的所述终端的当前位置信息;所述发送模块,被配置为根据所述推荐信息对应的地理位置与所述所述终端的当前所在位置之间的距离由近到远对推荐信息进行排序,并将所述推荐信息发送到所述终端。In an optional embodiment, the extracting module is configured to receive the current location information of the terminal sent by the terminal; the sending module is configured to match the location information corresponding to the recommended information with the The recommendation information is sorted according to the distance between the current locations of the terminals in descending order, and the recommendation information is sent to the terminal.
根据本公开实施例的第五方面,提供一种推荐信息显示装置,所述装置包括:According to a fifth aspect of an embodiment of the present disclosure, there is provided a device for displaying recommended information, the device comprising:
处理器;processor;
用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions;
其中,所述可执行指令被处理器加载并执行以实现上述任一方面所述的推荐信息显示方法。Wherein, the executable instructions are loaded and executed by the processor to implement the method for displaying recommended information in any one of the above aspects.
根据本公开实施例的第六方面,提供了一种计算机可读存储介质,所述可读存储介质中存储有至少一条指令,所述至少一条指令被处理器加载并执行以实现上述任一方面所述的推荐信息显示方法。According to a sixth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, the readable storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to achieve any of the above-mentioned aspects The method for displaying the recommended information.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过操作系统触发目标界面元素,提取目标界面元素中的地点信息,搜索得到与地点信息对应的推荐信息,直接在用户界面的局部区域上叠加显示推荐信息;解决了相关技术中信息推荐步骤繁琐的问题,在信息推荐步骤简化的同时,减少了用户的手动操作次数,提高了用户与终端间的人机交互效率。Trigger the target interface element through the operating system, extract the location information in the target interface element, search for the recommendation information corresponding to the location information, and directly superimpose and display the recommendation information on a local area of the user interface; solve the problem of cumbersome information recommendation steps in related technologies The problem is that while the information recommendation steps are simplified, the number of manual operations of the user is reduced, and the efficiency of human-computer interaction between the user and the terminal is improved.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并于说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据部分示例性实施例示出的一种推荐信息显示方法所涉及的实施环境的示意图;Fig. 1 is a schematic diagram of an implementation environment involved in a method for displaying recommended information according to some exemplary embodiments;
图2是根据一示例性实施例示出的推荐信息显示方法的流程图;Fig. 2 is a flowchart of a method for displaying recommended information according to an exemplary embodiment;
图3是根据另一示例性实施例示出的推荐信息显示方法的流程图;Fig. 3 is a flowchart of a method for displaying recommended information according to another exemplary embodiment;
图4是根据一示例性实施例示出的一种推荐信息显示方法的流程图;Fig. 4 is a flowchart showing a method for displaying recommended information according to an exemplary embodiment;
图5是根据另一示例性实施例示出的一种推荐信息显示方法的流程图;Fig. 5 is a flowchart of a method for displaying recommended information according to another exemplary embodiment;
图6是根据一示例性实施例示出的推荐信息显示方法在实施时的界面示意图;Fig. 6 is a schematic interface diagram during implementation of a method for displaying recommended information according to an exemplary embodiment;
图7是根据另一示例性实施例示出的推荐信息显示方法在实施时的界面示意图;Fig. 7 is a schematic interface diagram during implementation of a method for displaying recommended information according to another exemplary embodiment;
图8是根据另一示例性实施例示出的一种推荐信息显示方法的流程图;Fig. 8 is a flowchart of a method for displaying recommended information according to another exemplary embodiment;
图9是根据另一示例性实施例示出的推荐信息显示方法在实施时的界面示意图;Fig. 9 is a schematic interface diagram during implementation of a method for displaying recommended information according to another exemplary embodiment;
图10是根据另一示例性实施例示出的推荐信息显示方法在实施时的界面示意图;Fig. 10 is a schematic interface diagram during implementation of a method for displaying recommended information according to another exemplary embodiment;
图11是根据另一示例性实施例示出的推荐信息显示方法在实施时的界面示意图;Fig. 11 is a schematic interface diagram during implementation of a method for displaying recommended information according to another exemplary embodiment;
图12是根据另一示例性实施例示出的一种推荐信息显示方法的流程图;Fig. 12 is a flowchart of a method for displaying recommended information according to another exemplary embodiment;
图13是根据另一示例性实施例示出的一种推荐信息显示方法的流程图;Fig. 13 is a flowchart of a method for displaying recommended information according to another exemplary embodiment;
图14是根据另一示例性实施例示出的推荐信息显示方法在实施时的界面示意图;Fig. 14 is a schematic interface diagram during implementation of a method for displaying recommended information according to another exemplary embodiment;
图15是根据另一示例性实施例示出的一种推荐信息显示方法的流程图;Fig. 15 is a flowchart of a method for displaying recommended information according to another exemplary embodiment;
图16是根据另一示例性实施例示出的一种推荐信息显示方法的流程图;Fig. 16 is a flowchart of a method for displaying recommended information according to another exemplary embodiment;
图17是根据一示例性实施例示出的一种推荐信息显示装置的框图;Fig. 17 is a block diagram of a device for displaying recommendation information according to an exemplary embodiment;
图18是根据一示例性实施例示出的一种推荐信息显示装置的框图。Fig. 18 is a block diagram of a device for displaying recommendation information according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
图1是本公开一个示例性实施例提供的信息推荐显示系统的框图。该系统包括:终端120和服务器160。终端120和服务器160之间通过通信网络140相连。Fig. 1 is a block diagram of an information recommendation display system provided by an exemplary embodiment of the present disclosure. The system includes: a terminal 120 and a server 160 . The terminal 120 and the server 160 are connected through a communication network 140 .
终端120可以是智能手机、平板电脑、电子书阅读器、膝上型便携计算机和台式计算机等等。可选地,终端120具有触摸屏,该触摸屏是普通触摸屏,或支持悬浮触控的触摸屏,或支持压力感应的触摸屏。终端120中安装有操作系统和至少一个应用程序。该操作系统可以是安卓(Android)操作系统或苹果(IOS)操作系统。本申请实施例以该操作系统为安卓系统来举例说明。The terminal 120 may be a smartphone, a tablet computer, an e-book reader, a laptop computer, a desktop computer, and the like. Optionally, the terminal 120 has a touch screen, and the touch screen is a common touch screen, or a touch screen supporting hover touch, or a touch screen supporting pressure sensing. An operating system and at least one application program are installed in the terminal 120 . The operating system may be an Android (Android) operating system or an Apple (IOS) operating system. In this embodiment of the present application, the operating system is an Android system as an example for illustration.
终端120和服务器160之间通过通信网络140相连,该通信网络140可以是有线网络或无线网络,有线网络可以是城域网、局域网、光纤网等,无线网络可以是移动通信网络或无线保真网络(WIreless Fidelity,WiFi)。The terminal 120 and the server 160 are connected through a communication network 140, the communication network 140 can be a wired network or a wireless network, the wired network can be a metropolitan area network, a local area network, an optical fiber network, etc., and the wireless network can be a mobile communication network or a wireless fidelity network. Network (WIreless Fidelity, WiFi).
服务器160是可以是用于提供搜索服务以及提供搜索结果信息的服务器,也可以是同时用于提供分词处理服务的服务器。可选的,服务器160包括:搜索服务器、分词服务器和网页服务器中的至少一种。其中,搜索服务器提供与目标界面元素中内容信息对应的搜索结果信息,搜索服务器可以由操作系统对应的厂商提供;分词服务器用于提供对目标界面元素中的内容信息分词处理的分词结果,分词服务器可以由第三方应用程序的第一厂商提供;网页服务器用于提供与搜索结果信息对应的网页,网页服务器可以由第三方应用程序的第二厂商提供。本公开中的“第三方”是指除用户和操作系统两方之外的另一方,不排除第三方和操作系统提供方实质上是同一组织的可能性。当第三方应用程序包括多个或多类时,搜索服务器、分词服务器和网页服务器也可以是多个。任意两个服务器可以是同一厂商提供的,也可以是不同厂商提供的。The server 160 may be a server for providing search service and search result information, or a server for word segmentation processing service at the same time. Optionally, the server 160 includes: at least one of a search server, a word segmentation server, and a web page server. Wherein, the search server provides search result information corresponding to the content information in the target interface element, and the search server may be provided by the manufacturer corresponding to the operating system; the word segmentation server is used to provide word segmentation results for the content information in the target interface element, and the word segmentation server It may be provided by the first manufacturer of the third-party application program; the webpage server is used to provide the webpage corresponding to the search result information, and the webpage server may be provided by the second manufacturer of the third-party application program. The "third party" in the present disclosure refers to another party other than the user and the operating system, and the possibility that the third party and the operating system provider are substantially the same organization is not excluded. When the third-party application program includes multiple or multiple categories, there may also be multiple search servers, word segmentation servers and webpage servers. Any two servers can be provided by the same vendor, or they can be provided by different vendors.
在一个可选的实施例中,服务器160包括交互服务器101、分词服务器102和搜索服务器103,如图2所示。操作系统将目标界面元素中的内容信息由交互服务器101发送给分词服务器102,分词服务器102对内容信息分词处理得到分词结果,分词结果再由交互服务器101传送至搜索服务器103,由搜索服务器103最终搜索得到推荐信息。In an optional embodiment, the server 160 includes an interactive server 101, a word segmentation server 102 and a search server 103, as shown in FIG. 2 . The operating system sends the content information in the target interface element from the interactive server 101 to the word segmentation server 102, and the word segmentation server 102 performs word segmentation processing on the content information to obtain a word segmentation result, and the word segmentation result is then sent by the interactive server 101 to the search server 103, and the search server 103 finally Search for recommended information.
在另一个可选的实施例中,服务器160包括交互服务器101、分词服务器102、搜索服务器103和网页服务器104,如图3所示。操作系统将目标界面元素中的内容信息由交互服务器101发送给分词服务器102,分词服务器102对内容信息分词处理得到分词结果,分词结果再由交互服务器101传送至搜索服务器103,由搜索服务器103最终搜索得到推荐信息。可选的,分词结果由交互服务器101传送至网页服务器104,由网页服务器104最终搜索得到网页推荐信息。In another optional embodiment, the server 160 includes an interactive server 101, a word segmentation server 102, a search server 103 and a webpage server 104, as shown in FIG. 3 . The operating system sends the content information in the target interface element from the interactive server 101 to the word segmentation server 102, and the word segmentation server 102 performs word segmentation processing on the content information to obtain a word segmentation result, and the word segmentation result is then sent by the interactive server 101 to the search server 103, and the search server 103 finally Search for recommended information. Optionally, the word segmentation result is transmitted from the interactive server 101 to the web server 104, and the web server 104 finally searches to obtain web page recommendation information.
图4是根据一示例性实施例示出的一种推荐信息显示方法的流程图,该推荐信息显示方法应用于图1至图3所示的实施环境中的终端120中,终端120运行有操作系统和应用程序,包括以下步骤。Fig. 4 is a flow chart showing a method for displaying recommended information according to an exemplary embodiment. The method for displaying recommended information is applied to the terminal 120 in the implementation environment shown in Fig. 1 to Fig. 3 , and the terminal 120 runs an operating system and application, including the following steps.
在步骤201中,显示应用程序的用户界面,用户界面包括至少一个界面元素;In step 201, a user interface of the application program is displayed, and the user interface includes at least one interface element;
终端中安装的应用程序包括:操作系统提供的原生应用程序,和/或,用户自行安装的第三方应用程序。在本实施例中,应用程序是指操作系统中安装的任意应用程序或属于预设名单列表的应用程序。The application programs installed in the terminal include: native application programs provided by the operating system, and/or third-party application programs installed by the user. In this embodiment, an application program refers to any application program installed in the operating system or an application program belonging to a preset list.
对于一个应用程序,通常包括有多个用户界面。在终端中位于前台运行的应用程序的用户界面,会优先显示在终端的显示屏中。For an application program, there are usually multiple user interfaces included. The user interface of the application running in the foreground in the terminal will be preferentially displayed on the display screen of the terminal.
用户界面上包括至少一个界面元素,每个界面元素均为用户界面上的一个组成部分,界面元素包括但不限于文本控件、文本编辑控件、按钮控件、图像控件、对话框控件中的至少一种。The user interface includes at least one interface element, and each interface element is a component of the user interface. Interface elements include but are not limited to at least one of text controls, text edit controls, button controls, image controls, and dialog controls .
可选的,用户界面中的至少一个界面元素中存在地名信息、详细地址信息中的至少一种。Optionally, at least one of place name information and detailed address information exists in at least one interface element in the user interface.
在步骤202中,接收在用户界面上的触发操作;In step 202, a trigger operation on the user interface is received;
用户对文本内容进行触发操作,该触发操作包括但不限于:长按操作、压力触控操作、多次点击操作、悬浮触控操作、双指触控操作、指关节双击操作中的至少一种。The user performs a trigger operation on the text content, and the trigger operation includes but is not limited to: at least one of long press operation, pressure touch operation, multiple click operation, floating touch operation, two-finger touch operation, and double-knuckle double-click operation .
其中,长按操作是按压触摸屏的时长超过第一时长的操作;压力触控操作是按压压力超过预设压力值的操作;多次点击操作是在预定时长内点击次数超过预定次数的操作;悬浮触控操作是悬浮在触摸屏上方的时长超过第二时长的操作;双指触控操作是用户使用双指同时点击触摸屏的操作;指关节双击操作是用户使用指关节单击或双击触摸屏的操作。Among them, the long press operation is an operation in which the duration of pressing the touch screen exceeds the first duration; the pressure touch operation is an operation in which the pressing pressure exceeds a preset pressure value; the multiple click operation is an operation in which the number of clicks exceeds a predetermined number of times within a predetermined duration; A touch operation is an operation in which the user hovers above the touch screen for longer than a second duration; a two-finger touch operation is an operation in which the user uses two fingers to tap the touch screen at the same time; a knuckle double-click operation is an operation in which the user clicks or double-clicks the touch screen with a knuckle.
在步骤203中,根据触发操作选择至少一个界面元素中的目标界面元素,目标界面元素中包括有地点信息;In step 203, a target interface element among at least one interface element is selected according to the trigger operation, and the target interface element includes location information;
目标界面元素是至少一个界面元素中的一个目标界面元素(不排除是两个或更多的可能性),目标界面元素通常是包括文本的界面元素。目标界面元素中具有包括地点信息的内容信息。The target interface element is one of the at least one interface element (two or more possibilities are not excluded), and the target interface element is usually an interface element including text. The target interface element has content information including location information.
在步骤204中,通过操作系统在用户界面的局部区域上叠加显示推荐信息,推荐信息包括基于地点信息搜索得到的信息。In step 204, the recommended information is superimposed and displayed on a partial area of the user interface through the operating system, and the recommended information includes information obtained by searching based on location information.
通过操作系统在用户界面的局部区域上叠加显示n个显示元素,n为正整数,显示元素的显示层级高于用户界面的显示层级,每个显示元素用于显示至少一个推荐信息的第一级信息。Overlay and display n display elements on a partial area of the user interface through the operating system, where n is a positive integer, the display level of the display elements is higher than that of the user interface, and each display element is used to display at least one first level of recommended information information.
可选的,地点信息包括地名信息和/或详细地址信息,地名信息包括地名简称信息和/或地区名。Optionally, the location information includes place name information and/or detailed address information, and the place name information includes place name abbreviation information and/or area name.
可选的,用户界面的局部区域可以是用户界面的底部区域、顶部区域、左边框区域、右边框区域、目标界面元素的相邻区域或触发操作的操作位置的相邻区域。Optionally, the partial area of the user interface may be a bottom area, a top area, a left border area, a right border area of the user interface, an adjacent area of a target interface element, or an adjacent area of an operation position that triggers an operation.
可选的,推荐信息包括地理位置信息、影视影评、公司简介、旅游攻略、人物简介、科普知识、用户点评、同类推荐中的至少一种。该推荐信息可以来源于相同的服务器,也可以来源于不同的服务器。Optionally, the recommendation information includes at least one of geographic location information, film and television reviews, company profiles, travel guides, character profiles, popular science knowledge, user reviews, and similar recommendations. The recommendation information may come from the same server, or from different servers.
综上所述,本公开实施例中提供的推荐信息显示方法,通过操作系统触发目标界面元素,提取目标界面元素中的地点信息,搜索得到与地点信息对应的推荐信息,直接在用户界面的局部区域上叠加显示推荐信息;解决了相关技术中信息推荐步骤繁琐的问题,在信息推荐步骤简化的同时,减少了用户的手动操作次数,提高了用户与终端间的人机交互效率。To sum up, the recommended information display method provided in the embodiments of the present disclosure triggers the target interface element through the operating system, extracts the location information in the target interface element, searches for the recommended information corresponding to the location information, and directly displays the local information on the user interface. The recommended information is displayed superimposed on the area; the problem of cumbersome information recommendation steps in related technologies is solved, while the information recommendation steps are simplified, the number of manual operations by the user is reduced, and the efficiency of human-computer interaction between the user and the terminal is improved.
另外,由于n个推荐信息是由操作系统来添加的,所以不论应用程序是操作系统提供的原生应用程序,还是用户安装的第三方应用程序,本实施例提供的推荐信息显示方法都可以实施,也即向用户提供了一种在终端中的全局推荐信息能力,提高了该推荐信息显示方法的应用范围。In addition, since the n pieces of recommendation information are added by the operating system, no matter the application program is a native application program provided by the operating system or a third-party application program installed by the user, the method for displaying recommendation information provided by this embodiment can be implemented. That is, a global recommendation information capability in the terminal is provided to the user, and the application range of the method for displaying the recommendation information is improved.
基于图4的可选实施例中,目标界面元素中的文本内容,可能包括如下6种情况:In the optional embodiment based on Figure 4, the text content in the target interface element may include the following six situations:
1、文本内容中包括详细的地址信息;1. The text content includes detailed address information;
2、文本内容中包括地名简称信息、第一地区名与详细的地址信息;2. The content of the text includes the abbreviation information of the place name, the name of the first area and detailed address information;
3、文本内容中包括地名简称信息与第一地区名;3. The content of the text includes the abbreviation information of the place name and the name of the first area;
4、文本内容中包括地名简称信息、第二地区名与详细的地址信息;4. The content of the text includes the abbreviated information of the place name, the name of the second area and detailed address information;
5、文本内容中包括地名简称信息与第二地区名;5. The content of the text includes the abbreviation information of the place name and the name of the second area;
6、文本内容中包括地名简称信息。6. The text content includes place name abbreviation information.
其中,地名简称信息是不包括详细地址信息的地点信息,比如机构名、建筑物名、餐馆名、娱乐地点、游乐场所等。地区名是按照地形、行政、经济、民族、人口、国防中的至少一项因素所划分得到的区域名,常见的地区名是城市名、城市内的行政区名。第一地区名和第二地区名只是用来代表某一维度上不同的两个地区,并不代表先后关系。Wherein, the place name abbreviation information is location information that does not include detailed address information, such as institution names, building names, restaurant names, entertainment locations, amusement places, and the like. The area name is the area name obtained by dividing according to at least one factor among topography, administration, economy, ethnicity, population, and national defense. The common area names are the names of cities and administrative districts within cities. The first region name and the second region name are only used to represent two different regions in a certain dimension, and do not represent a sequence relationship.
以下采用图5实施例对第一种情况进行阐述、采用图8实施例对第二种情况进行阐述、采用图12实施例对第三种情况进行阐述、采用图13实施例对第四种情况进行阐述、采用图15实施例对第五种情况进行阐述、采用图16实施例对第六种情况进行阐述。The first case is described below using the embodiment of FIG. 5 , the second case is described using the embodiment of FIG. 8 , the third case is described using the embodiment of FIG. 12 , and the fourth case is described using the embodiment of FIG. 13 For elaboration, the fifth case is described using the embodiment in FIG. 15 , and the sixth case is described using the embodiment in FIG. 16 .
图5是根据另一示例性实施例示出的一种推荐信息显示方法的流程图,本实施例以该推荐信息显示方法应用于图1至图3任一所示的系统中来举例说明,该终端中安装有操作系统和至少一个应用程序。该方法包括:Fig. 5 is a flow chart of a method for displaying recommended information according to another exemplary embodiment. This embodiment is illustrated by taking the method for displaying recommended information in any of the systems shown in Fig. 1 to Fig. 3 as an example. An operating system and at least one application program are installed in the terminal. The method includes:
在步骤301中,终端显示应用程序的用户界面;In step 301, the terminal displays the user interface of the application program;
终端中安装的应用程序包括:操作系统提供的原生应用程序,和/或,用户自行安装的第三方应用程序。在本实施例中,应用程序是指操作系统中安装的任意应用程序。The application programs installed in the terminal include: native application programs provided by the operating system, and/or third-party application programs installed by the user. In this embodiment, the application program refers to any application program installed in the operating system.
对于一个应用程序,通常包括有多个用户界面。在终端中位于前台运行的应用程序的用户界面,会优先显示在终端的显示屏中。For an application program, there are usually multiple user interfaces included. The user interface of the application running in the foreground in the terminal will be preferentially displayed on the display screen of the terminal.
用户界面上包括至少一个界面元素,每个界面元素均为用户界面上的一个组成部分,界面元素包括但不限于文本控件、文本编辑控件、按钮控件、图像控件、对话框控件中的至少一种。The user interface includes at least one interface element, and each interface element is a component of the user interface. Interface elements include but are not limited to at least one of text controls, text edit controls, button controls, image controls, and dialog controls .
在步骤302中,终端接收用户界面上的触发操作;In step 302, the terminal receives a trigger operation on the user interface;
以触发操作为长按为例,用户在目标界面元素所在的屏幕区域上长按,终端接收到用户界面上的长按触发操作。Taking the trigger operation as an example of a long press, the user presses and long presses on the screen area where the target interface element is located, and the terminal receives the long press trigger operation on the user interface.
可选的,该长按操作会在操作系统中产生一个触摸事件,该触摸事件包括长按操作的操作坐标,该操作坐标用于指示选择操作在显示屏上的位置。该操作坐标所在的坐标系的横轴与显示屏的水平边缘平行,该操作坐标所在的坐标系的纵轴与显示屏的垂直边缘平行。Optionally, the long press operation will generate a touch event in the operating system, and the touch event includes operation coordinates of the long press operation, where the operation coordinates are used to indicate the position of the selection operation on the display screen. The horizontal axis of the coordinate system where the operation coordinates are located is parallel to the horizontal edge of the display screen, and the vertical axis of the coordinate system where the operation coordinates are located is parallel to the vertical edge of the display screen.
可选的,目标界面元素是用户界面上的一个(或不止一个)界面元素。Optionally, the target interface element is one (or more than one) interface elements on the user interface.
在步骤303中,终端根据触发操作选择界面元素中的目标界面元素;In step 303, the terminal selects a target interface element among the interface elements according to the trigger operation;
终端根据预设名单列表检测应用程序的上下文信息是否符合抓取条件,其中,预设名单列表存储有符合抓取条件的上下文信息和/或不符合所述抓取条件的上下文信息;The terminal detects whether the context information of the application meets the capture condition according to the preset list list, wherein the preset list list stores context information that meets the capture condition and/or context information that does not meet the capture condition;
若上下文信息符合抓取条件,操作系统根据触发操作抓取所述目标界面元素的内容信息。If the context information meets the capture condition, the operating system captures the content information of the target interface element according to the trigger operation.
在步骤304中,终端向服务器发送搜索请求,该搜索请求包括目标界面元素中的内容信息;In step 304, the terminal sends a search request to the server, and the search request includes content information in the target interface element;
终端通过无线网络或有线网络向服务器发送搜索请求,该搜索请求包括目标界面元素中的内容信息,该内容信息包括地点信息。The terminal sends a search request to the server through a wireless network or a wired network, the search request includes content information in the target interface element, and the content information includes location information.
在步骤305中,服务器接收搜索请求。In step 305, the server receives a search request.
在步骤306中,服务器对目标界面元素中的词语进行分词处理和词性标注处理,得到标注有词性的至少一个分词结果;In step 306, the server performs word segmentation processing and part-of-speech tagging processing on the words in the target interface element, and obtains at least one word segmentation result marked with part-of-speech;
当目标界面元素的内容信息是文本内容时,服务器做拆分文本内容的处理,并对拆分后得到的词语进行词性标注,得到标注有词性的至少一个分词结果,该分词结果包括有地点信息。When the content information of the target interface element is text content, the server splits the text content, and performs part-of-speech tagging on the words obtained after splitting, and obtains at least one part-of-speech tagged word segmentation result, which includes location information .
在步骤307中,服务器根据词性从至少一个分词结果提取地名信息,地名信息包括详细地址信息;In step 307, the server extracts place name information from at least one word segmentation result according to the part of speech, and the place name information includes detailed address information;
服务器根据分词结果的词性筛选出目标分词结果,目标分词结果是包括地名信息的分词结果,并在得到的目标分词结果中提取地名信息,地名信息包括详细的地址信息。The server screens out the target word segmentation result according to the part of speech of the word segmentation result. The target word segmentation result is a word segmentation result including place name information, and extracts the place name information from the obtained target word segmentation result. The place name information includes detailed address information.
在步骤308中,服务器根据详细地址信息,搜索得到推荐信息。In step 308, the server searches for recommended information according to the detailed address information.
在步骤309中,服务器向终端发送搜索得到的推荐信息。In step 309, the server sends the searched recommended information to the terminal.
服务器通过无线网络或有线网络向终端发送搜索得到的推荐信息。The server sends the searched recommendation information to the terminal through a wireless network or a wired network.
在步骤310中,终端接收搜索得到的推荐信息。In step 310, the terminal receives the recommended information obtained from the search.
在步骤311中,终端通过操作系统在用户界面的局部区域上叠加显示推荐信息的第一级信息;In step 311, the terminal superimposes and displays the first-level information of the recommended information on a local area of the user interface through the operating system;
推荐信息的显示由操作系统控制实现,所以推荐信息的显示层级高于用户界面的显示层级。推荐信息的显示可以是卡片式的,示意性的,推荐信息的显示界面呈矩形,在矩形内显示有文字和/或图标。可选的,文字用于表示搜索得到的推荐信息,图标用于表示推荐信息的图像标识,例如,推荐信息是商店A的位置信息,图标则是商店A的商标。The display of the recommendation information is controlled by the operating system, so the display level of the recommendation information is higher than that of the user interface. The display of the recommendation information may be in the form of a card, schematically, the display interface of the recommendation information is rectangular, and text and/or icons are displayed in the rectangle. Optionally, the text is used to represent the recommended information obtained from the search, and the icon is used to represent the image identification of the recommended information. For example, the recommended information is the location information of the store A, and the icon is the trademark of the store A.
可选的,局部区域是底部区域,参考图6,用户界面420中存在目标界面元素440,该目标界面元素440中包括“公园A位于某市某县某咯某某号”这一内容信息,该内容信息包括详细地址信息,该详细地址信息是“某市某县某咯某某号”,当用户长按该目标界面元素440时,终端在底部区域显示推荐信息460,该推荐信息460可以是公园A的地理位置信息。Optionally, the local area is the bottom area. Referring to FIG. 6 , there is a target interface element 440 in the user interface 420, and the target interface element 440 includes the content information that "the park A is located in a certain number of a certain county in a certain city". The content information includes detailed address information, and the detailed address information is "a certain number in a certain city and county". When the user presses and holds the target interface element 440, the terminal displays recommendation information 460 in the bottom area, and the recommendation information 460 can be is the geographic location information of park A.
终端通过操作系统在用户界面的第一局部区域上叠加显示推荐信息的第一级信息之后,用户还可以通过操作系统触发打开提供推荐信息的应用程序,在用户界面的第三局部区域上叠加显示推荐信息,或在高于用户界面的显示层级上全屏叠加显示推荐信息。After the terminal superimposes and displays the first-level information of the recommended information on the first partial area of the user interface through the operating system, the user can also trigger the opening of the application program that provides the recommended information through the operating system, and superimposes the display on the third partial area of the user interface. recommended information, or overlay the recommended information in full screen on a display layer higher than the user interface.
参考图7,接收在显示元素460上的触发操作,在用户界面上的中央区域叠加显示显示元素460对应的推荐信息窗口480,推荐信息窗口480用于显示显示元素460对应的推荐信息。Referring to FIG. 7 , upon receiving a trigger operation on the display element 460 , a recommendation information window 480 corresponding to the display element 460 is superimposed and displayed on the central area of the user interface. The recommendation information window 480 is used to display the recommendation information corresponding to the display element 460 .
图8是根据另一示例性实施例示出的一种推荐信息显示方法的流程图,本实施例以该推荐信息显示方法应用于图1至图3任一所示的系统中来举例说明,该终端中安装有操作系统和至少一个应用程序。该方法包括以下步骤:Fig. 8 is a flow chart of a method for displaying recommended information according to another exemplary embodiment. This embodiment is illustrated by taking the method for displaying recommended information in any of the systems shown in Fig. 1 to Fig. 3 as an example. An operating system and at least one application program are installed in the terminal. The method includes the following steps:
在步骤501中,终端显示应用程序的用户界面;In step 501, the terminal displays the user interface of the application program;
终端中安装的应用程序包括:操作系统提供的原生应用程序,和/或,用户自行安装的第三方应用程序。在本实施例中,应用程序是指操作系统中安装的任意应用程序。The application programs installed in the terminal include: native application programs provided by the operating system, and/or third-party application programs installed by the user. In this embodiment, the application program refers to any application program installed in the operating system.
对于一个应用程序,通常包括有多个用户界面。在终端中位于前台运行的应用程序的用户界面,会优先显示在终端的显示屏中。For an application program, there are usually multiple user interfaces included. The user interface of the application running in the foreground in the terminal will be preferentially displayed on the display screen of the terminal.
用户界面上包括至少一个界面元素,每个界面元素均为用户界面上的一个组成部分,界面元素包括但不限于文本控件、文本编辑控件、按钮控件、图像控件、对话框控件中的至少一种。The user interface includes at least one interface element, and each interface element is a component of the user interface. Interface elements include but are not limited to at least one of text controls, text edit controls, button controls, image controls, and dialog controls .
在步骤502中,终端接收用户界面上的触发操作;In step 502, the terminal receives a trigger operation on the user interface;
以触发操作为长按为例,用户在目标界面元素所在的屏幕区域上长按,终端接收到用户界面上的长按触发操作。Taking the trigger operation as an example of a long press, the user presses and long presses on the screen area where the target interface element is located, and the terminal receives the long press trigger operation on the user interface.
可选地,该长按操作会在操作系统中产生一个触摸事件,该触摸事件包括长按操作的操作坐标,该操作坐标用于指示选择操作在显示屏上的位置。该操作坐标所在的坐标系的横轴与显示屏的水平边缘平行,该操作坐标所在的坐标系的纵轴与显示屏的垂直边缘平行。Optionally, the long press operation may generate a touch event in the operating system, and the touch event includes operation coordinates of the long press operation, where the operation coordinates are used to indicate the position of the selection operation on the display screen. The horizontal axis of the coordinate system where the operation coordinates are located is parallel to the horizontal edge of the display screen, and the vertical axis of the coordinate system where the operation coordinates are located is parallel to the vertical edge of the display screen.
可选的,目标界面元素是用户界面上的一个(或不止一个)界面元素。Optionally, the target interface element is one (or more than one) interface elements on the user interface.
在步骤503中,终端根据触发操作选择界面元素中的目标界面元素;In step 503, the terminal selects a target interface element among the interface elements according to the trigger operation;
终端根据预设名单列表检测应用程序的上下文信息是否符合抓取条件,其中,预设名单列表存储有符合抓取条件的上下文信息和/或不符合所述抓取条件的上下文信息;The terminal detects whether the context information of the application meets the capture condition according to the preset list list, wherein the preset list list stores context information that meets the capture condition and/or context information that does not meet the capture condition;
若上下文信息符合抓取条件,操作系统根据触发操作抓取所述目标界面元素的内容信息。If the context information meets the capture condition, the operating system captures the content information of the target interface element according to the trigger operation.
在步骤504中,终端向服务器发送搜索请求,该搜索请求包括目标界面元素中的内容信息;In step 504, the terminal sends a search request to the server, and the search request includes content information in the target interface element;
终端通过无线网络或有线网络向服务器发送搜索请求,该搜索请求包括目标界面元素中的内容信息。The terminal sends a search request to the server through a wireless network or a wired network, and the search request includes content information in the target interface element.
在步骤505中,服务器接收搜索请求。In step 505, the server receives a search request.
在步骤506中,服务器对目标界面元素中的词语进行分词处理和词性标注处理,得到标注有词性的分词结果;In step 506, the server performs word segmentation processing and part-of-speech tagging processing on the words in the target interface element, and obtains a part-of-speech tagged word segmentation result;
当目标界面元素的内容信息是文本内容时,服务器做拆分文本内容的处理,并对拆分后得到的词语进行词性标注,得到标注有词性的分词结果,该分词结果包括有地点信息。When the content information of the target interface element is text content, the server splits the text content, and performs part-of-speech tagging on the words obtained after splitting, and obtains a part-of-speech tagged word segmentation result, and the word segmentation result includes location information.
在步骤507中,服务器根据词性从分词结果提取地名信息,地名信息中包括地名简称信息、第一地区名与详细的地址信息;In step 507, the server extracts the place name information from the word segmentation result according to the part of speech, and the place name information includes place name abbreviation information, the first area name and detailed address information;
服务器根据分词结果的词性筛选出目标分词结果,目标分词结果包括地名信息,并在得到的目标分词结果中提取地名信息,地名信息包括地名简称信息、第一地区名与详细地址信息。The server screens out the target word segmentation result according to the part of speech of the word segmentation result. The target word segmentation result includes place name information, and extracts the place name information from the obtained target word segmentation result. The place name information includes place name abbreviation information, first area name and detailed address information.
在步骤508中,服务器根据地名信息中的地名简称信息,搜索得到至少两条候选推荐信息;In step 508, the server searches and obtains at least two pieces of candidate recommendation information according to the abbreviation information of the place name in the place name information;
两条候选推荐信息(也可以是多条推荐信息)可以是地名简称信息相同,详细地址信息不同的推荐信息。The two pieces of candidate recommendation information (may also be multiple pieces of recommendation information) may be recommendation information with the same place name abbreviation information but different detailed address information.
在步骤509中,服务器筛选出与第一地区名匹配的第一推荐信息;In step 509, the server screens out the first recommended information matching the first region name;
服务器在根据地名简称信息搜索得到的至少两条候选推荐信息中,筛选出与第一地区名匹配的第一推荐信息。The server screens out the first recommendation information that matches the first region name from at least two candidate recommendation information obtained by searching according to the place name abbreviation information.
在步骤510中,服务器根据推荐信息对应的地理位置与详细地址信息之间的距离由近到远对第一推荐信息进行排序,并向终端发送第一推荐信息;In step 510, the server sorts the first recommendation information from near to far according to the distance between the geographic location corresponding to the recommendation information and the detailed address information, and sends the first recommendation information to the terminal;
服务器计算推荐信息对应的地理位置与详细地址信息之间的距离,并以由近到远的排列顺序对第一推荐信息排列;服务器向终端发送第一推荐信息。The server calculates the distance between the geographic location corresponding to the recommendation information and the detailed address information, and arranges the first recommendation information in a sequence from near to far; the server sends the first recommendation information to the terminal.
在步骤512中,终端接收第一推荐信息。In step 512, the terminal receives first recommendation information.
在步骤513中,终端通过操作系统在用户界面的局部区域上叠加显示第一推荐信息的第一级信息;In step 513, the terminal superimposes and displays the first-level information of the first recommended information on a local area of the user interface through the operating system;
推荐信息的显示由操作系统控制实现,所以推荐信息的显示层级高于用户界面的显示层级。推荐信息的显示可以是卡片式的,示意性的,推荐信息的显示界面呈矩形,在矩形内显示有文字和/或图标。可选的,文字用于表示搜索得到的推荐信息,图标用于表示推荐信息的图像标识,例如,推荐信息是商店A的位置信息,图标则是商店A的商标。The display of the recommendation information is controlled by the operating system, so the display level of the recommendation information is higher than that of the user interface. The display of the recommendation information may be in the form of a card, schematically, the display interface of the recommendation information is rectangular, and text and/or icons are displayed in the rectangle. Optionally, the text is used to represent the recommended information obtained from the search, and the icon is used to represent the image identification of the recommended information. For example, the recommended information is the location information of the store A, and the icon is the trademark of the store A.
可选的,局部区域是底部区域,参考图9,用户界面420中存在目标界面元素620,该目标界面元素620是包括“某市某街某某号附近的某商家正在举办周年庆”的内容信息,该内容信息包括详细地址信息,该详细地址信息是“某市某街某某号”。当用户长按该目标界面元素620时,终端在底部区域显示推荐信息660。由于推荐信息可以是多个,受限于显示区域的大小,终端可以显示一部分推荐信息660,例如,仅显示出图标为“地图1”和“地图2”的两个推荐信息,两个推荐信息的地名简称信息相同,详细地址信息不同,图中地图1和地图2可以来源于相同服务器,也可以来源于不同服务器。Optionally, the partial area is the bottom area. Referring to FIG. 9 , there is a target interface element 620 in the user interface 420, and the target interface element 620 includes the content of "a business near a certain street in a certain city is holding an anniversary celebration" information, the content information includes detailed address information, and the detailed address information is "a certain number of a certain street in a certain city". When the user presses and holds the target interface element 620, the terminal displays recommendation information 660 in the bottom area. Since there can be multiple recommended information, limited by the size of the display area, the terminal can display a part of recommended information 660, for example, only two recommended information with icons "Map 1" and "Map 2" are displayed, and the two recommended information The abbreviated information of place names is the same, but the detailed address information is different. Map 1 and map 2 in the figure can come from the same server or different servers.
可选地,为了不遮挡用户界面的主要区域,显示元素的面积小于显示屏的整个显示区域的1/2。Optionally, in order not to block the main area of the user interface, the area of the display element is less than 1/2 of the entire display area of the display screen.
终端通过操作系统在用户界面的局部区域上叠加显示推荐信息的第一级信息后,可以根据在屏幕上滑动操作对位于局部区域中的推荐信息进行滑动显示。After the terminal superimposes and displays the first-level information of the recommended information on the local area of the user interface through the operating system, it can slide and display the recommended information located in the local area according to the sliding operation on the screen.
可选地,第一级信息是指推荐信息的摘要信息、或推荐信息的部分信息。推荐信息的部分信息可以是前n个字符所代表的信息。Optionally, the first-level information refers to summary information of the recommended information, or partial information of the recommended information. Part of the recommended information may be information represented by the first n characters.
可选的,终端接收在第i个显示元素上触发的第一滑动操作,第一滑动操作是沿第一方向进行滑动的操作,终端根据滑动操作将第i个显示元素沿第一方向进行滑动且将滑出显示屏的部分进行隐藏,将第i-1个显示元素沿第一方向进行滑动且将滑入显示屏的部分进行显示。Optionally, the terminal receives the first sliding operation triggered on the i-th display element, the first sliding operation is an operation of sliding along the first direction, and the terminal slides the i-th display element along the first direction according to the sliding operation And hide the part that slides out of the display screen, slide the i-1th display element along the first direction and display the part that slides into the display screen.
参考图10,终端接收在第3个推荐信息720上的右滑操作,终端根据右滑操作将第3个推荐信息720沿右方向在局部区域中进行滑动,并将滑出显示屏的显示区域的部分(第4个推荐)进行隐藏,将第2个推荐信息700沿右方向在局部区域中进行滑动,并将滑入显示屏的显示区域的第2个推荐信息700进行显示。Referring to FIG. 10, the terminal receives a right-swipe operation on the third recommendation information 720, and the terminal slides the third recommendation information 720 in a local area in the right direction according to the right-swipe operation, and slides out of the display area of the display screen hide the part (the fourth recommendation), slide the second recommendation information 700 in the local area along the right direction, and display the second recommendation information 700 that slides into the display area of the display screen.
可选地,终端接收在第i个显示元素上触发的第二滑动操作,第二滑动操作是沿第二方向进行滑动的操作,终端根据滑动操作将第i个显示元素沿第二方向进行滑动且将滑出显示屏的部分进行隐藏,将第i+1个显示元素沿第二方向进行滑动且将滑入显示屏的部分进行显示。Optionally, the terminal receives a second sliding operation triggered on the i-th display element, the second sliding operation is an operation of sliding along the second direction, and the terminal slides the i-th display element along the second direction according to the sliding operation And hide the part that slides out of the display screen, slide the i+1th display element along the second direction and display the part that slides into the display screen.
参考图11,终端接收在第6个推荐信息740上的左滑操作,终端根据左滑操作将第6个推荐信息740沿左方向在局部区域中进行滑动,并将滑出显示屏的显示区域的部分(第5个推荐信息)进行隐藏,将第7个推荐信息760沿左方向在局部区域中进行滑动,并将滑入显示屏的显示区域的部分(第7个推荐信息760)进行显示。Referring to FIG. 11, the terminal receives a left-swipe operation on the sixth recommendation information 740, and the terminal slides the sixth recommendation information 740 in the local area in the left direction according to the left-swipe operation, and slides out of the display area of the display screen hide the part (the fifth recommended information), slide the seventh recommended information 760 in the local area along the left direction, and display the part that slides into the display area of the display screen (the seventh recommended information 760) .
图12是根据另一示例性实施例示出的一种推荐信息显示方法的流程图,本实施例以该推荐信息显示方法应用于图1至图3任一所示的系统中来举例说明,该终端中安装有操作系统和至少一个应用程序。该方法包括以下步骤:Fig. 12 is a flow chart of a method for displaying recommended information according to another exemplary embodiment. This embodiment is illustrated by taking the method for displaying recommended information in any of the systems shown in Fig. 1 to Fig. 3 as an example. An operating system and at least one application program are installed in the terminal. The method includes the following steps:
在步骤801中,终端显示应用程序的用户界面;In step 801, the terminal displays the user interface of the application program;
终端中安装的应用程序包括:操作系统提供的原生应用程序,和/或,用户自行安装的第三方应用程序。在本实施例中,应用程序是指操作系统中安装的任意应用程序。The application programs installed in the terminal include: native application programs provided by the operating system, and/or third-party application programs installed by the user. In this embodiment, the application program refers to any application program installed in the operating system.
对于一个应用程序,通常包括有多个用户界面。在终端中位于前台运行的应用程序的用户界面,会优先显示在终端的显示屏中。For an application program, there are usually multiple user interfaces included. The user interface of the application running in the foreground in the terminal will be preferentially displayed on the display screen of the terminal.
用户界面上包括至少一个界面元素,每个界面元素均为用户界面上的一个组成部分,界面元素包括但不限于文本控件、文本编辑控件、按钮控件、图像控件、对话框控件中的至少一种。The user interface includes at least one interface element, and each interface element is a component of the user interface. Interface elements include but are not limited to at least one of text controls, text edit controls, button controls, image controls, and dialog controls .
在步骤802中,终端接收用户界面上的触发操作;In step 802, the terminal receives a trigger operation on the user interface;
以触发操作为长按为例,用户在目标界面元素所在的屏幕区域上长按,终端接收到用户界面上的长按触发操作。Taking the trigger operation as an example of a long press, the user presses and long presses on the screen area where the target interface element is located, and the terminal receives the long press trigger operation on the user interface.
可选的,该长按操作会在操作系统中产生一个触摸事件,该触摸事件包括长按操作的操作坐标,该操作坐标用于指示选择操作在显示屏上的位置。该操作坐标所在的坐标系的横轴与显示屏的水平边缘平行,该操作坐标所在的坐标系的纵轴与显示屏的垂直边缘平行。Optionally, the long press operation will generate a touch event in the operating system, and the touch event includes operation coordinates of the long press operation, where the operation coordinates are used to indicate the position of the selection operation on the display screen. The horizontal axis of the coordinate system where the operation coordinates are located is parallel to the horizontal edge of the display screen, and the vertical axis of the coordinate system where the operation coordinates are located is parallel to the vertical edge of the display screen.
可选的,目标界面元素是用户界面上的一个(或不止一个)界面元素。Optionally, the target interface element is one (or more than one) interface elements on the user interface.
在步骤803中,终端根据触发操作选择界面元素中的目标界面元素;In step 803, the terminal selects a target interface element among the interface elements according to the trigger operation;
终端根据预设名单列表检测应用程序的上下文信息是否符合抓取条件,其中,预设名单列表存储有符合抓取条件的上下文信息和/或不符合所述抓取条件的上下文信息;The terminal detects whether the context information of the application meets the capture condition according to the preset list list, wherein the preset list list stores context information that meets the capture condition and/or context information that does not meet the capture condition;
若上下文信息符合抓取条件,操作系统根据触发操作抓取所述目标界面元素的内容信息。If the context information meets the capture condition, the operating system captures the content information of the target interface element according to the trigger operation.
在步骤804中,终端向服务器发送终端当前的地理位置和搜索请求,该搜索请求包括目标界面元素中的内容信息;In step 804, the terminal sends the current geographic location of the terminal and a search request to the server, and the search request includes content information in the target interface element;
终端通过无线网络或有线网络向服务器发送终端当前的地理位置和搜索请求,该搜索请求包括有目标界面元素中的内容信息。The terminal sends the terminal's current geographic location and a search request to the server through a wireless network or a wired network, and the search request includes content information in the target interface element.
在步骤805中,服务器接收终端当前的地理位置和搜索请求。In step 805, the server receives the current geographic location of the terminal and the search request.
在步骤806中,服务器对目标界面元素中的词语进行分词处理和词性标注处理,得到标注有词性的至少一个分词结果;In step 806, the server performs word segmentation processing and part-of-speech tagging processing on the words in the target interface element, and obtains at least one word segmentation result marked with part-of-speech;
当目标界面元素的内容信息是文本内容时,服务器做拆分文本内容的处理,并对拆分后得到的词语进行词性标注,得到标注有词性的分词结果。When the content information of the target interface element is text content, the server splits the text content, and performs part-of-speech tagging on the words obtained after splitting, and obtains a part-of-speech tagged word segmentation result.
在步骤807中,服务器根据词性从分词结果提取地名信息,地名信息中包括地名简称信息与第一地区名;In step 807, the server extracts place name information from the word segmentation result according to the part of speech, and the place name information includes place name abbreviation information and the first area name;
服务器根据分词结果的词性筛选出目标分词结果,目标分词结果是包括地名信息分词结果,并在得到的目标分词结果中提取地名信息。The server screens out the target word segmentation result according to the part of speech of the word segmentation result, the target word segmentation result includes the word segmentation result of place name information, and extracts the place name information from the obtained target word segmentation result.
在步骤808中,服务器根据地名信息中的地名简称信息,搜索得到至少两条候选推荐信息;In step 808, the server searches for at least two candidate recommendation information according to the abbreviation information of the place name in the place name information;
两条候选推荐信息(也可以是多条候选推荐信息)可以是地名简称信息相同,详细地址信息不同的推荐信息。The two pieces of candidate recommendation information (or multiple pieces of candidate recommendation information) may be recommendation information with the same abbreviation information of place names and different detailed address information.
在步骤809中,服务器筛选出与第一地区名匹配的第一推荐信息;In step 809, the server screens out the first recommended information matching the first region name;
服务器在根据地名简称信息搜索得到的至少两条候选推荐信息中筛选出与第一地区名匹配的推荐信息。The server screens the recommended information that matches the first region name from at least two candidate recommended information searched according to the place name abbreviation information.
在步骤810中,服务器根据推荐信息对应的地理位置与终端当前位置之间的距离由近到远对第一推荐信息进行排序,并向终端发送第一推荐信息;In step 810, the server sorts the first recommendation information from near to far according to the distance between the geographic location corresponding to the recommendation information and the current location of the terminal, and sends the first recommendation information to the terminal;
服务器计算推荐信息对应的地理位置与终端当前位置之间的距离,并以由近到远的排列顺序对第一推荐信息进行排序;服务器向终端发送排序后的第一推送信息。The server calculates the distance between the geographic location corresponding to the recommendation information and the current location of the terminal, and sorts the first recommendation information in order from near to far; the server sends the sorted first push information to the terminal.
在步骤811中,终端接收第一推荐信息。In step 811, the terminal receives first recommendation information.
在步骤812中,终端通过操作系统在用户界面的局部区域上叠加显示第一推荐信息的第一级信息;In step 812, the terminal superimposes and displays the first-level information of the first recommended information on a local area of the user interface through the operating system;
推荐信息的显示由操作系统控制实现,所以推荐信息的显示层级高于用户界面的显示层级。推荐信息的显示可以是卡片式的,示意性的,推荐信息的显示界面呈矩形,在矩形内显示有文字和/或图标。可选的,文字用于表示搜索得到的推荐信息,图标用于表示推荐信息的图像标识,例如,推荐信息是商店A的位置信息,图标则是商店A的商标。The display of the recommendation information is controlled by the operating system, so the display level of the recommendation information is higher than that of the user interface. The display of the recommendation information may be in the form of a card, schematically, the display interface of the recommendation information is rectangular, and text and/or icons are displayed in the rectangle. Optionally, the text is used to represent the recommended information obtained from the search, and the icon is used to represent the image identification of the recommended information. For example, the recommended information is the location information of the store A, and the icon is the trademark of the store A.
图13是根据另一示例性实施例示出的一种推荐信息显示方法的流程图,本实施例以该推荐信息显示方法应用于图1至图3任一所示的系统中来举例说明,该终端中安装有操作系统和至少一个应用程序。该方法包括以下步骤:Fig. 13 is a flow chart of a method for displaying recommended information according to another exemplary embodiment. This embodiment is illustrated by taking the method for displaying recommended information in any of the systems shown in Fig. 1 to Fig. 3 as an example. An operating system and at least one application program are installed in the terminal. The method includes the following steps:
在步骤901中,终端显示应用程序的用户界面;In step 901, the terminal displays the user interface of the application program;
终端中安装的应用程序包括:操作系统提供的原生应用程序,和/或,用户自行安装的第三方应用程序。在本实施例中,应用程序是指操作系统中安装的任意应用程序。The application programs installed in the terminal include: native application programs provided by the operating system, and/or third-party application programs installed by the user. In this embodiment, the application program refers to any application program installed in the operating system.
对于一个应用程序,通常包括有多个用户界面。在终端中位于前台运行的应用程序的用户界面,会优先显示在终端的显示屏中。For an application program, there are usually multiple user interfaces included. The user interface of the application running in the foreground in the terminal will be preferentially displayed on the display screen of the terminal.
用户界面上包括至少一个界面元素,每个界面元素均为用户界面上的一个组成部分,界面元素包括但不限于文本控件、文本编辑控件、按钮控件、图像控件、对话框控件中的至少一种。The user interface includes at least one interface element, and each interface element is a component of the user interface. Interface elements include but are not limited to at least one of text controls, text edit controls, button controls, image controls, and dialog controls .
在步骤902中,终端接收用户界面上的触发操作;In step 902, the terminal receives a trigger operation on the user interface;
以触发操作为长按为例,用户在目标界面元素所在的屏幕区域上长按,终端接收到用户界面上的长按触发操作。Taking the trigger operation as an example of a long press, the user presses and long presses on the screen area where the target interface element is located, and the terminal receives the long press trigger operation on the user interface.
可选的,该长按操作会在操作系统中产生一个触摸事件,该触摸事件包括长按操作的操作坐标,该操作坐标用于指示选择操作在显示屏上的位置。该操作坐标所在的坐标系的横轴与显示屏的水平边缘平行,该操作坐标所在的坐标系的纵轴与显示屏的垂直边缘平行。Optionally, the long press operation will generate a touch event in the operating system, and the touch event includes operation coordinates of the long press operation, where the operation coordinates are used to indicate the position of the selection operation on the display screen. The horizontal axis of the coordinate system where the operation coordinates are located is parallel to the horizontal edge of the display screen, and the vertical axis of the coordinate system where the operation coordinates are located is parallel to the vertical edge of the display screen.
可选的,目标界面元素是用户界面上的一个(或不止一个)界面元素。Optionally, the target interface element is one (or more than one) interface elements on the user interface.
在步骤903中,终端根据触发操作选择界面元素中的目标界面元素;In step 903, the terminal selects a target interface element among the interface elements according to the trigger operation;
终端根据预设名单列表检测应用程序的上下文信息是否符合抓取条件,其中,预设名单列表存储有符合抓取条件的上下文信息和/或不符合所述抓取条件的上下文信息;The terminal detects whether the context information of the application meets the capture condition according to the preset list list, wherein the preset list list stores context information that meets the capture condition and/or context information that does not meet the capture condition;
若上下文信息符合抓取条件,操作系统根据触发操作抓取所述目标界面元素的内容信息。If the context information meets the capture condition, the operating system captures the content information of the target interface element according to the trigger operation.
在步骤904中,终端向服务器发送搜索请求,该搜索请求包括目标界面元素中的内容信息;In step 904, the terminal sends a search request to the server, and the search request includes content information in the target interface element;
终端通过无线网络或有线网络向服务器发送搜索请求,该搜索请求包括有目标界面元素中的内容信息。The terminal sends a search request to the server through a wireless network or a wired network, and the search request includes content information in the target interface element.
在步骤905中,服务器接收搜索请求。In step 905, the server receives a search request.
在步骤906中,服务器对目标界面元素中的词语进行分词处理和词性标注处理,得到标注有词性的分词结果;In step 906, the server performs word segmentation processing and part-of-speech tagging processing on the words in the target interface element, and obtains a part-of-speech tagged word segmentation result;
当目标界面元素的内容信息是文本内容时,服务器做拆分文本内容的处理,并对拆分后得到的词语进行词性标注,得到标注有词性的分词结果。When the content information of the target interface element is text content, the server splits the text content, and performs part-of-speech tagging on the words obtained after splitting, and obtains a part-of-speech tagged word segmentation result.
在步骤907中,服务器根据词性从分词结果提取地名信息,地名信息中包括地名简称信息、至少两个第二地区名与详细地址信息;In step 907, the server extracts place name information from the word segmentation result according to the part of speech, and the place name information includes place name abbreviation information, at least two second area names and detailed address information;
服务器根据分词结果的词性筛选出目标分词结果,目标分词结果是包括地名信息的分词结果,并在得到的目标分词结果中提取地名信息,地名信息包括地名简称信息、至少两个第二地区名与详细地址信息。The server screens out the target word segmentation result according to the part of speech of the word segmentation result. The target word segmentation result is a word segmentation result including place name information, and extracts the place name information from the obtained target word segmentation result. The place name information includes place name abbreviation information, at least two second area names and Detailed address information.
在步骤908中,服务器根据地名信息中的地名简称信息,搜索得到至少两组候选推荐信息;In step 908, the server searches for at least two groups of candidate recommendation information according to the abbreviation information of the place name in the place name information;
两组候选推荐信息(也可以是多组候选推荐信息)可以是地名简称信息相同,地区名不同的两组候选推荐信息(也可以是多组候选推荐信息)。The two sets of candidate recommendation information (or multiple sets of candidate recommendation information) may be two sets of candidate recommendation information (or multiple sets of candidate recommendation information) with the same place name abbreviation information and different region names.
在步骤909中,服务器筛选出与至少两个第二地区名分别匹配的第二推荐信息;In step 909, the server screens out the second recommendation information that matches at least two second region names respectively;
服务器根据地名简称信息搜索得到的至少两组候选推荐信息,推荐信息分组以地区名为参考,对应的地区名相同的推荐信息为一组,筛选出与至少两个地区名中分别匹配的第二推荐信息。The server searches at least two sets of candidate recommendation information based on the place name abbreviation information. The recommendation information is grouped with the region name as a reference. Recommended information.
在步骤910中,服务器根据推荐信息对应的地理位置与详细地址信息之间的距离由近到远对第二推荐信息进行排序,并向终端发送第二推荐信息;In step 910, the server sorts the second recommendation information from near to far according to the distance between the geographic location corresponding to the recommendation information and the detailed address information, and sends the second recommendation information to the terminal;
服务器计算推荐信息对应的地理位置与详细地址信息之间的距离,并以由近到远的排列顺序对第二推荐信息进行排序,服务器向终端发送第二推荐信息。The server calculates the distance between the geographic location corresponding to the recommendation information and the detailed address information, and sorts the second recommendation information in a sequence from near to far, and sends the second recommendation information to the terminal.
在步骤911中,终端接收第二推荐信息。In step 911, the terminal receives second recommendation information.
在步骤912中,终端通过操作系统在用户界面的局部区域上叠加显示第二推荐信息的第一级信息;In step 912, the terminal superimposes and displays the first-level information of the second recommended information on a local area of the user interface through the operating system;
可选地,推荐信息的显示由操作系统控制实现,所以推荐信息的显示层级高于用户界面的显示层级。推荐信息的显示可以是卡片式的,以组为单位集中显示,示意性的,推荐信息的显示界面呈矩形,在矩形内显示有文字和/或图标,文字在更小的卡片上显示。可选的,文字用于表示搜索得到的推荐信息,图标用于表示推荐信息的地区名的文字图像,例如,推荐信息是地区名是北京,图标则是有“北京”图样的图片。Optionally, the display of the recommendation information is controlled by the operating system, so the display level of the recommendation information is higher than that of the user interface. The display of recommended information can be in the form of cards, which are displayed collectively in units of groups. Schematically, the display interface of recommended information is rectangular, and text and/or icons are displayed in the rectangle, and the text is displayed on smaller cards. Optionally, the text is used to represent the recommended information obtained from the search, and the icon is used to represent the text image of the region name of the recommended information. For example, the recommended information is that the region name is Beijing, and the icon is a picture with a pattern of "Beijing".
可选的,局部区域是底部区域,参考图14,用户界面420中存在目标界面元素820,该目标界面元素820中包括“餐厅A是一家连锁餐厅,在A市和B市都有分店,其总店位于A市某街某某号”的内容信息。当用户长按该目标界面元素820时,终端在底部区域以地区名为根据分组显示推荐信息840,如图显示的两组“A市”和“B市”的推荐信息。由于推荐信息可以是多组,受限于显示区域的大小,终端可以显示一部分推荐信息840。Optionally, the partial area is the bottom area. Referring to FIG. 14 , there is a target interface element 820 in the user interface 420, which includes "Restaurant A is a chain restaurant with branches in City A and City B, and its The main store is located at a certain street in city A" content information. When the user presses the target interface element 820 for a long time, the terminal displays recommendation information 840 grouped by region name in the bottom area, as shown in the figure two sets of recommendation information of "City A" and "City B". Since there may be multiple groups of recommendation information, the terminal may display a part of recommendation information 840 limited by the size of the display area.
图15是根据另一示例性实施例示出的一种推荐信息显示方法的流程图,本实施例以该推荐信息显示方法应用于图1至图3任一所示的系统中来举例说明,该终端中安装有操作系统和至少一个应用程序。该方法包括以下步骤:Fig. 15 is a flow chart showing a method for displaying recommended information according to another exemplary embodiment. This embodiment is illustrated by taking the method for displaying recommended information in any of the systems shown in Fig. 1 to Fig. 3 as an example. An operating system and at least one application program are installed in the terminal. The method includes the following steps:
在步骤1001中,终端显示应用程序的用户界面;In step 1001, the terminal displays the user interface of the application program;
终端中安装的应用程序包括:操作系统提供的原生应用程序,和/或,用户自行安装的第三方应用程序。在本实施例中,应用程序是指操作系统中安装的任意应用程序。The application programs installed in the terminal include: native application programs provided by the operating system, and/or third-party application programs installed by the user. In this embodiment, the application program refers to any application program installed in the operating system.
对于一个应用程序,通常包括有多个用户界面。在终端中位于前台运行的应用程序的用户界面,会优先显示在终端的显示屏中。For an application program, there are usually multiple user interfaces included. The user interface of the application running in the foreground in the terminal will be preferentially displayed on the display screen of the terminal.
用户界面上包括至少一个界面元素,每个界面元素均为用户界面上的一个组成部分,界面元素包括但不限于文本控件、文本编辑控件、按钮控件、图像控件、对话框控件中的至少一种。The user interface includes at least one interface element, and each interface element is a component of the user interface. Interface elements include but are not limited to at least one of text controls, text edit controls, button controls, image controls, and dialog controls .
在步骤1002中,终端接收用户界面上的触发操作;In step 1002, the terminal receives a trigger operation on the user interface;
以触发操作为长按为例,用户在目标界面元素所在的屏幕区域上长按,终端接收到用户界面上的长按触发操作。Taking the trigger operation as an example of a long press, the user presses and long presses on the screen area where the target interface element is located, and the terminal receives the long press trigger operation on the user interface.
可选的,该长按操作会在操作系统中产生一个触摸事件,该触摸事件包括长按操作的操作坐标,该操作坐标用于指示选择操作在显示屏上的位置。该操作坐标所在的坐标系的横轴与显示屏的水平边缘平行,该操作坐标所在的坐标系的纵轴与显示屏的垂直边缘平行。Optionally, the long press operation will generate a touch event in the operating system, and the touch event includes operation coordinates of the long press operation, where the operation coordinates are used to indicate the position of the selection operation on the display screen. The horizontal axis of the coordinate system where the operation coordinates are located is parallel to the horizontal edge of the display screen, and the vertical axis of the coordinate system where the operation coordinates are located is parallel to the vertical edge of the display screen.
可选的,目标界面元素是用户界面上的一个(或不止一个)界面元素。Optionally, the target interface element is one (or more than one) interface elements on the user interface.
在步骤1003中,根据触发操作选择界面元素中的目标界面元素;In step 1003, a target interface element among the interface elements is selected according to the trigger operation;
终端根据预设名单列表检测应用程序的上下文信息是否符合抓取条件,其中,预设名单列表存储有符合抓取条件的上下文信息和/或不符合抓取条件的上下文信息;The terminal detects whether the context information of the application meets the capture conditions according to the preset list list, wherein the preset list list stores context information that meets the capture conditions and/or context information that does not meet the capture conditions;
若上下文信息符合抓取条件,操作系统根据触发操作抓取所述目标界面元素的内容信息。If the context information meets the capture condition, the operating system captures the content information of the target interface element according to the trigger operation.
在步骤1004中,终端向服务器发送终端当前的地理位置和搜索请求,该搜索请求包括目标界面元素中的内容信息;In step 1004, the terminal sends the current geographic location of the terminal and a search request to the server, and the search request includes content information in the target interface element;
终端通过无线网络或有线网络向服务器发送终端当前的地理位置和搜索请求,该搜索请求包括有目标界面元素中的内容信息。The terminal sends the terminal's current geographic location and a search request to the server through a wireless network or a wired network, and the search request includes content information in the target interface element.
在步骤1005中,服务器接收终端当前的地理位置和搜索请求。In step 1005, the server receives the current geographic location of the terminal and the search request.
在步骤1006中,服务器对目标界面元素中的词语进行分词处理和词性标注处理,得到标注有词性的分词结果;In step 1006, the server performs word segmentation processing and part-of-speech tagging processing on the words in the target interface element, and obtains a part-of-speech tagged word segmentation result;
当目标界面元素的内容信息是文本内容时,服务器做拆分文本内容的处理,并对拆分后得到的词语进行词性标注,得到标注有词性的分词结果。When the content information of the target interface element is text content, the server splits the text content, and performs part-of-speech tagging on the words obtained after splitting, and obtains a part-of-speech tagged word segmentation result.
在步骤1007中,服务器根据词性从分词结果提取地名信息,地名信息中包括地名简称信息与至少两个第二地区名;In step 1007, the server extracts place name information from the word segmentation result according to the part of speech, and the place name information includes place name abbreviation information and at least two second area names;
服务器根据分词结果的词性筛选出目标分词结果,目标分词结果是包括地名信息,并在得到的目标分词结果中提取地名信息,地名信息包括详细的地名简称信息与至少两个第二地区名。The server screens out the target word segmentation result according to the part of speech of the word segmentation result. The target word segmentation result includes place name information, and extracts the place name information from the obtained target word segmentation result. The place name information includes detailed place name abbreviation information and at least two second area names.
在步骤1008中,服务器根据地名信息中的地名简称信息,搜索得到至少两组候选推荐信息;In step 1008, the server searches for at least two groups of candidate recommendation information according to the abbreviation information of the place name in the place name information;
两组候选推荐信息(也可以是多组候选推荐信息)可以是地名简称信息相同,地区名不同的两组候选推荐信息(也可以是多组候选推荐信息)。The two sets of candidate recommendation information (or multiple sets of candidate recommendation information) may be two sets of candidate recommendation information (or multiple sets of candidate recommendation information) with the same place name abbreviation information and different region names.
在步骤1009中,服务器筛选出与至少两个第二地区名分别匹配的第二推荐信息;In step 1009, the server screens out the second recommendation information that matches at least two second region names respectively;
服务器根据地名简称信息搜索得到的至少两组候选推荐信息,推荐信息分组以地区名为参考,对应的地区名相同的推荐信息为一组,筛选出与至少两个地区名分别匹配的第二推荐信息。At least two sets of candidate recommendation information searched by the server according to the place name abbreviation information, the recommendation information is grouped with the region name as a reference, the corresponding recommendation information with the same region name is a group, and the second recommendation matching at least two region names is selected information.
在步骤1010中,服务器根据推荐信息对应的地理位置与终端当前的位置之间的距离由近到远对第二推荐信息进行排序,并向终端发送第二推荐信息。In step 1010, the server sorts the second recommendation information in descending order according to the distance between the geographic location corresponding to the recommendation information and the current location of the terminal, and sends the second recommendation information to the terminal.
在步骤1011中,终端接收第二推荐信息。In step 1011, the terminal receives second recommendation information.
在步骤1012中,终端通过操作系统在用户界面的局部区域上叠加显示第二推荐信息的第一级信息;In step 1012, the terminal superimposes and displays the first-level information of the second recommended information on a partial area of the user interface through the operating system;
可选地,推荐信息的显示由操作系统控制实现,所以推荐信息的显示层级高于用户界面的显示层级。推荐信息的显示可以是卡片式的,以组为单位集中显示,示意性的,推荐信息的显示界面呈矩形,在矩形内显示有文字和/或图标,文字在更小的卡片上显示。可选的,文字用于表示搜索得到的推荐信息,图标用于表示推荐信息的地区名的文字图像,例如,推荐信息是地区名是北京,图标则是有“北京”图样的图片。Optionally, the display of the recommendation information is controlled by the operating system, so the display level of the recommendation information is higher than that of the user interface. The display of recommended information can be in the form of cards, which are displayed collectively in units of groups. Schematically, the display interface of recommended information is rectangular, and text and/or icons are displayed in the rectangle, and the text is displayed on smaller cards. Optionally, the text is used to represent the recommended information obtained from the search, and the icon is used to represent the text image of the region name of the recommended information. For example, the recommended information is that the region name is Beijing, and the icon is a picture with a pattern of "Beijing".
图16是根据另一示例性实施例示出的一种推荐信息显示方法的流程图,本实施例以该推荐信息显示方法应用于图1至图3任一所示的系统中来举例说明,该终端中安装有操作系统和至少一个应用程序。该方法包括以下步骤:Fig. 16 is a flow chart of a method for displaying recommended information according to another exemplary embodiment. This embodiment is illustrated by taking the method for displaying recommended information in any of the systems shown in Fig. 1 to Fig. 3 as an example. An operating system and at least one application program are installed in the terminal. The method includes the following steps:
在步骤1101中,终端显示应用程序的用户界面;In step 1101, the terminal displays the user interface of the application program;
终端中安装的应用程序包括:操作系统提供的原生应用程序,和/或,用户自行安装的第三方应用程序。在本实施例中,应用程序是指操作系统中安装的任意应用程序。The application programs installed in the terminal include: native application programs provided by the operating system, and/or third-party application programs installed by the user. In this embodiment, the application program refers to any application program installed in the operating system.
对于一个应用程序,通常包括有多个用户界面。在终端中位于前台运行的应用程序的用户界面,会优先显示在终端的显示屏中。For an application program, there are usually multiple user interfaces included. The user interface of the application running in the foreground in the terminal will be preferentially displayed on the display screen of the terminal.
用户界面上包括至少一个界面元素,每个界面元素均为用户界面上的一个组成部分,界面元素包括但不限于文本控件、文本编辑控件、按钮控件、图像控件、对话框控件中的至少一种。The user interface includes at least one interface element, and each interface element is a component of the user interface. Interface elements include but are not limited to at least one of text controls, text edit controls, button controls, image controls, and dialog controls .
在步骤1102中,终端接收用户界面上的触发操作;In step 1102, the terminal receives a trigger operation on the user interface;
以触发操作为长按为例,用户在目标界面元素所在的屏幕区域上长按,终端接收到用户界面上的长按触发操作。Taking the trigger operation as an example of a long press, the user presses and long presses on the screen area where the target interface element is located, and the terminal receives the long press trigger operation on the user interface.
可选的,该长按操作会在操作系统中产生一个触摸事件,该触摸事件包括长按操作的操作坐标,该操作坐标用于指示选择操作在显示屏上的位置。该操作坐标所在的坐标系的横轴与显示屏的水平边缘平行,该操作坐标所在的坐标系的纵轴与显示屏的垂直边缘平行。Optionally, the long press operation will generate a touch event in the operating system, and the touch event includes operation coordinates of the long press operation, where the operation coordinates are used to indicate the position of the selection operation on the display screen. The horizontal axis of the coordinate system where the operation coordinates are located is parallel to the horizontal edge of the display screen, and the vertical axis of the coordinate system where the operation coordinates are located is parallel to the vertical edge of the display screen.
可选的,目标界面元素是用户界面上的一个(或不止一个)界面元素。Optionally, the target interface element is one (or more than one) interface elements on the user interface.
在步骤1103中,终端根据触发操作选择界面元素中的目标界面元素;In step 1103, the terminal selects a target interface element among the interface elements according to the trigger operation;
终端根据预设名单列表检测应用程序的上下文信息是否符合抓取条件,其中,预设名单列表存储有符合抓取条件的上下文信息和/或不符合所述抓取条件的上下文信息;The terminal detects whether the context information of the application meets the capture conditions according to the preset list list, wherein the preset list list stores context information that meets the capture conditions and/or context information that does not meet the capture conditions;
若上下文信息符合抓取条件,操作系统根据触发操作抓取所述目标界面元素的内容信息。If the context information meets the capture condition, the operating system captures the content information of the target interface element according to the trigger operation.
在步骤1104中,终端向服务器发送终端当前所在的地区和搜索请求,该搜索请求包括目标界面元素中的内容信息;In step 1104, the terminal sends the region where the terminal is currently located and a search request to the server, and the search request includes content information in the target interface element;
终端通过无线网络或有线网络向服务器发送终端当前所在的地区和搜索请求,该搜索请求包括有目标界面元素中的内容信息。The terminal sends the region where the terminal is currently located and a search request to the server through the wireless network or the wired network, and the search request includes content information in the target interface element.
在步骤1105中,服务器接收终端当前所在的地区和搜索请求。In step 1105, the server receives the region where the terminal is currently located and the search request.
在步骤1106中,服务器对目标界面元素中的词语进行分词处理和词性标注处理,得到标注有词性的至少一个分词结果;In step 1106, the server performs word segmentation and part-of-speech tagging on the words in the target interface element, and obtains at least one part-of-speech tagged result;
当目标界面元素的内容信息是文本内容时,服务器做拆分文本内容的处理,并对拆分后得到的词语进行词性标注,得到标注有词性的至少一个分词结果。When the content information of the target interface element is text content, the server splits the text content, and performs part-of-speech tagging on the split words to obtain at least one part-of-speech tagged word segmentation result.
在步骤1107中,服务器根据词性从至少一个分词结果提取地名信息,地名信息中包括地名简称信息;In step 1107, the server extracts place name information from at least one word segmentation result according to the part of speech, and the place name information includes place name abbreviation information;
服务器根据分词结果的词性筛选出目标分词结果,目标分词结果是包括地名信息的分词结果,并在得到的目标分词结果中提取地名信息,地名信息中包括地名简称信息。The server screens out the target word segmentation result according to the part of speech of the word segmentation result. The target word segmentation result is a word segmentation result including place name information, and extracts the place name information from the obtained target word segmentation result. The place name information includes place name abbreviation information.
在步骤1108中,服务器根据地名简称信息,搜索得到候选推荐信息。In step 1108, the server searches for candidate recommendation information according to the place name and abbreviation information.
在步骤1109中,服务器筛选出与终端当前所在的地区匹配的第三推荐信息。In step 1109, the server screens out the third recommendation information that matches the region where the terminal is currently located.
在步骤1110中,服务器向终端发送搜索得到的第三推荐信息;In step 1110, the server sends the searched third recommended information to the terminal;
服务器通过无线网络或有线网络向终端发送搜索得到的第三推荐信息。The server sends the searched third recommendation information to the terminal through a wireless network or a wired network.
在步骤1111中,终端接收搜索得到的第三推荐信息。In step 1111, the terminal receives the third recommendation information obtained through searching.
在步骤1112中,终端通过操作系统在用户界面的局部区域上叠加显示第三推荐信息的第一级信息;In step 1112, the terminal superimposes and displays the first-level information of the third recommended information on a local area of the user interface through the operating system;
可选地,推荐信息的显示由操作系统控制实现,所以推荐信息的显示层级高于用户界面的显示层级。推荐信息的显示可以是卡片式的,示意性的,推荐信息的显示界面呈矩形,在矩形内显示有文字和/或图标。可选的,文字用于表示搜索得到的推荐信息,图标用于表示推荐信息的图像标识,例如,推荐信息是商店A的位置信息,图标则是商店A的商标。Optionally, the display of the recommendation information is controlled by the operating system, so the display level of the recommendation information is higher than that of the user interface. The display of the recommendation information may be in the form of a card, schematically, the display interface of the recommendation information is rectangular, and text and/or icons are displayed in the rectangle. Optionally, the text is used to represent the recommended information obtained from the search, and the icon is used to represent the image identification of the recommended information. For example, the recommended information is the location information of the store A, and the icon is the trademark of the store A.
综上所述,本公开实施例中提供的推荐信息显示方法,通过操作系统触发目标界面元素,提取目标界面元素中的地点信息,在服务器中搜索得到推荐信息,直接在用户界面的局部区域上叠加显示推荐信息,简化了用户手动操作步骤,提高了人机交互的效率。To sum up, the recommended information display method provided in the embodiments of the present disclosure triggers the target interface element through the operating system, extracts the location information in the target interface element, searches the server to obtain the recommended information, and directly displays the recommended information on the local area of the user interface. The recommended information is superimposed and displayed, which simplifies the user's manual operation steps and improves the efficiency of human-computer interaction.
另外,由于n个推荐信息是由操作系统来添加的,所以不论应用程序是操作系统提供的原生应用程序,还是用户安装的第三方应用程序,本实施例提供的推荐信息显示方法都可以实施,也即向用户提供了一种在终端中的全局推荐信息能力,提高了该推荐信息显示方法的应用范围。In addition, since the n pieces of recommendation information are added by the operating system, no matter the application program is a native application program provided by the operating system or a third-party application program installed by the user, the method for displaying recommendation information provided by this embodiment can be implemented. That is, a global recommendation information capability in the terminal is provided to the user, and the application range of the method for displaying the recommendation information is improved.
图17是根据一示例性实施例示出的一种推荐信息显示装置的框图,该配件装配装置可以通过软件、硬件或者两者的结合实现成为电子设备的全部或一部分。该装置包括:Fig. 17 is a block diagram of an apparatus for displaying recommended information according to an exemplary embodiment. The apparatus for assembling accessories can be implemented as all or a part of an electronic device through software, hardware or a combination of the two. The unit includes:
显示模块1260,被配置为显示所述应用程序的用户界面,所述用户界面包括至少一个界面元素;A display module 1260, configured to display a user interface of the application program, where the user interface includes at least one interface element;
交互模块1220,被配置为接收在所述用户界面上的触发操作;An interaction module 1220, configured to receive a trigger operation on the user interface;
选择模块1240,被配置为根据所述选择操作选择所述至少一个界面元素中的目标界面元素,所述目标界面元素中包括有地点信息;The selection module 1240 is configured to select a target interface element in the at least one interface element according to the selection operation, and the target interface element includes location information;
所述显示模块1260,被配置为通过所述操作系统在所述用户界面的局部区域上叠加显示推荐信息,所述推荐信息包括基于所述地点信息搜索得到的信息。The display module 1260 is configured to superimpose and display recommendation information on a local area of the user interface through the operating system, where the recommendation information includes information obtained by searching based on the location information.
在一个可选的实施例中,所述显示模块1260,被配置为通过所述操作系统在所述用户界面的局部区域上叠加显示n个显示元素,n为正整数,所述显示元素的显示层级高于所述用户界面的显示层级,每个所述显示元素用于显示至少一个所述推荐信息的第一级信息。In an optional embodiment, the display module 1260 is configured to superimpose and display n display elements on a local area of the user interface through the operating system, where n is a positive integer, and the display of the display elements The level is higher than the display level of the user interface, and each of the display elements is used to display at least one first-level information of the recommended information.
在一个可选的实施例中,所述显示模块1260,被配置为通过所述操作系统在所述用户界面的局部区域上叠加显示列表视图控件,所述列表视图控件包括n个显示元素,n≥2,所述n个显示元素在所述列表视图控件中按照第一方向排列且第i个显示元素的尾部与第i+1个显示元素的首部相接,i为正整数且i≤n-1。In an optional embodiment, the display module 1260 is configured to superimpose and display a list view control on a local area of the user interface through the operating system, the list view control includes n display elements, n ≥2, the n display elements are arranged in the first direction in the list view control and the tail of the i-th display element is connected to the head of the i+1-th display element, i is a positive integer and i≤n -1.
在一个可选的实施例中,所述地名信息是详细地址信息,所述详细地址信息是具有地址详情的地名信息;In an optional embodiment, the place name information is detailed address information, and the detailed address information is place name information with address details;
所述推荐信息包括基于所述详细地址信息搜索到的推荐信息。The recommendation information includes recommendation information searched based on the detailed address information.
在一个可选的实施例中,所述目标界面元素包括:地名简称信息和第一地区名(第一地区名为一个),所述地名简称信息是具有地址名称但不具有地址详情的地名信息;In an optional embodiment, the target interface element includes: place name abbreviation information and a first area name (the first area name is one), and the place name abbreviation information is place name information that has an address name but does not have address details ;
所述推荐信息包括基于所述地名简称信息搜索到的第一推荐信息,所述第一推荐信息是与所述第一地区名匹配的推荐信息。The recommendation information includes first recommendation information searched based on the place name abbreviation information, and the first recommendation information is recommendation information matching the first area name.
在一个可选的实施例中,所述第一推荐信息为至少两个,所述目标界面元素中还包括详细地址信息;In an optional embodiment, there are at least two pieces of first recommendation information, and the target interface element further includes detailed address information;
所述显示模块1260被配置为通过所述操作系统在所述用户界面的局部区域上按照第一顺序叠加显示n个显示元素,每个所述显示元素用于显示所述第一推荐信息的第一级信息,所述第一顺序是按照所述第一推荐信息对应的地理位置与所述详细地址信息之间的距离由近到远排列的顺序。The display module 1260 is configured to superimpose and display n display elements in a first order on a local area of the user interface through the operating system, and each of the display elements is used to display the first recommendation information of the first recommendation information. For the first-level information, the first order is arranged in descending order according to the distance between the geographic location corresponding to the first recommendation information and the detailed address information.
在一个可选的实施例中,所述第一推荐信息为至少两个,所述目标界面元素中不包括详细地址信息;In an optional embodiment, there are at least two pieces of first recommendation information, and the target interface element does not include detailed address information;
所述显示模块1260被配置为通过所述操作系统在所述用户界面的局部区域上按照第二顺序叠加显示n个显示元素,每个所述显示元素用于显示所述第一推荐信息的第一级信息,所述第二顺序是按照所述第一推荐信息对应的地理位置与所述终端的当前所在位置之间的距离由近到远排列的顺序。The display module 1260 is configured to superimpose and display n display elements in a second order on the local area of the user interface through the operating system, and each of the display elements is used to display the first recommendation information of the first recommendation information. In the first-level information, the second order is arranged in descending order according to the distance between the geographic location corresponding to the first recommendation information and the current location of the terminal.
在一个可选的实施例中,所述目标界面元素包括:地名简称信息和至少两个第二地区名,所述第二地区名是具有地址名称但不具有地址详情的地名信息;In an optional embodiment, the target interface element includes: place name abbreviation information and at least two second area names, where the second area names are place name information with address names but without address details;
所述推荐信息包括基于所述地名简称信息搜索到的至少两组第二推荐信息,每组所述第二推荐信息是与所述至少两个第二地区名中的一个地区名匹配的推荐信息。The recommendation information includes at least two groups of second recommendation information searched based on the place name abbreviation information, each group of the second recommendation information is recommendation information that matches one of the at least two second region names .
在一个可选的实施例中,所述至少两组第二推荐信息中存在至少一组目标第二推荐信息为至少两个,所述目标界面元素中还包括详细地址信息;In an optional embodiment, there are at least two sets of target second recommendation information among the at least two groups of second recommendation information, and the target interface elements further include detailed address information;
所述显示模块1260被配置为通过所述操作系统在所述用户界面的局部区域上按照第三顺序叠加显示n个显示元素,所述n个显示元素用于显示所述目标第二推荐信息,每个所述显示元素用于显示所述目标第二推荐信息的第一级信息,所述第三顺序是按照所述目标第二推荐信息对应的地理位置与所述详细地址信息之间的距离由近到远排列的顺序。The display module 1260 is configured to superimpose and display n display elements in a third order on a local area of the user interface through the operating system, the n display elements are used to display the target second recommendation information, Each of the display elements is used to display the first-level information of the target second recommendation information, and the third order is according to the distance between the geographic location corresponding to the target second recommendation information and the detailed address information Arranged in order from near to far.
在一个可选的实施例中,所述至少两组第二推荐信息中存在至少一组目标第二推荐信息为至少两个,所述目标界面元素中不包括详细地址信息;In an optional embodiment, there are at least two sets of target second recommendation information among the at least two groups of second recommendation information, and the target interface elements do not include detailed address information;
所述显示模块1260被配置为通过所述操作系统在所述用户界面的局部区域上按照第四顺序叠加显示n个显示元素,所述n个显示元素用于显示所述目标第二推荐信息,每个所述显示元素用于显示所述目标第二推荐信息的第一级信息,所述第四顺序是按照所述目标第二推荐信息对应的地理位置与所述终端的当前所在位置之间的距离由近到远排列的顺序。The display module 1260 is configured to superimpose and display n display elements in a fourth order on a local area of the user interface through the operating system, the n display elements are used to display the target second recommendation information, Each of the display elements is used to display the first-level information of the target second recommendation information, and the fourth order is according to the distance between the geographic location corresponding to the target second recommendation information and the current location of the terminal. The distances are arranged in order from near to far.
在一个可选的实施例中,所述目标界面元素包括:地名简称信息,所述地名简称信息是具有地址名称但不具有地址详情的地名信息;In an optional embodiment, the target interface element includes: place name abbreviation information, where the place name abbreviation information is place name information that has an address name but does not have address details;
所述推荐信息包括基于所述地名简称信息搜索到的第三推荐信息,所述第三推荐信息是与所述终端当前所在的地区匹配的推荐信息。The recommendation information includes third recommendation information searched based on the place name abbreviation information, where the third recommendation information is recommendation information that matches the region where the terminal is currently located.
在一个可选的实施例中,所述局部区域包括:In an optional embodiment, the local area includes:
所述用户界面的底部区域;the bottom area of the user interface;
或,所述目标界面元素的相邻区域;Or, the adjacent area of the target interface element;
或,所述触发操作的操作位置的相邻区域。Or, the adjacent area of the operation position of the trigger operation.
在一个可选的实施例中,所述目标界面元素包括:文本控件、文本编辑控件、按钮控件、图像控件、对话框控件中的至少一种。In an optional embodiment, the target interface element includes: at least one of a text control, a text editing control, a button control, an image control, and a dialog control.
在一个可选的实施例中,所述交互模块1220,被配置为在第j个推荐信息上接收第一滑动操作,所述第一滑动操作是沿第一方向滑动的操作;所述显示模块1260,被配置为将所述第j个推荐信息跟随所述第一滑动操作沿所述第一方向进行滑动显示,将所述第j个推荐信息滑出所述局部区域的部分进行隐藏,将第j-1个推荐信息滑入所述局部区域的部分进行显示,j为大于1的整数,且j小于或等于n;In an optional embodiment, the interaction module 1220 is configured to receive a first sliding operation on the jth recommendation information, where the first sliding operation is a sliding operation along a first direction; the display module 1260, configured to slide and display the j-th recommendation information along the first direction following the first sliding operation, hide the part where the j-th recommendation information slides out of the local area, and The j-1th recommendation information slides into the part of the local area for display, j is an integer greater than 1, and j is less than or equal to n;
和/或,and / or,
所述交互模块1220,被配置为在第k个推荐信息上接收第二滑动操作,所述第二滑动操作是沿第二方向滑动的操作;所述显示模块1260,被配置为将所述第k个推荐信息跟随所述第二滑动操作沿所述第二方向进行滑动显示,将所述第k个推荐信息滑出所述局部区域的部分进行隐藏,将第k+1个推荐信息滑入所述局部区域的部分进行显示,k为小于n的整数;The interaction module 1220 is configured to receive a second sliding operation on the kth recommended information, the second sliding operation is an operation of sliding along a second direction; the display module 1260 is configured to display the k pieces of recommended information are slid and displayed along the second direction following the second sliding operation, the part of the kth recommended information that slides out of the local area is hidden, and the k+1th recommended information is slid into Part of the local area is displayed, and k is an integer less than n;
其中,所述第一方向和所述第二方向相反。Wherein, the first direction is opposite to the second direction.
在一个可选的实施例中,In an alternative embodiment,
所述选择模块1240,被配置为根据所述选择操作提取所述目标界面元素中的内容信息;The selection module 1240 is configured to extract content information in the target interface element according to the selection operation;
发送模块,被配置为向服务器发送所述内容信息;a sending module configured to send the content information to a server;
接收模块,被配置为接收所述服务器反馈的所述推荐信息,所述推荐信息是所述服务器用于对所述内容信息中的词语进行分词和词性标注处理以得到标注有词性的至少一个分词结果,且根据所述词性从所述至少一个分词结果提取所述地名信息后搜索得到的。The receiving module is configured to receive the recommendation information fed back by the server, the recommendation information is used by the server to perform word segmentation and part-of-speech tagging processing on words in the content information to obtain at least one part-of-speech tagged word result, and is obtained by searching after extracting the place name information from the at least one word segmentation result according to the part of speech.
在一个可选的实施例中,所述选择模块1240,被配置为根据预设名单列表检测所述应用程序的上下文信息是否符合抓取条件,所述预设名单列表存储有符合所述抓取条件的上下文信息和/或不符合所述抓取条件的上下文信息;若所述上下文信息符合所述抓取条件,则根据所述选择操作抓取所述目标界面元素的内容信息。In an optional embodiment, the selection module 1240 is configured to detect whether the context information of the application conforms to the capture condition according to a preset list, and the preset list stores information that meets the capture conditions. Conditional context information and/or context information that does not meet the capture condition; if the context information meets the capture condition, then capture the content information of the target interface element according to the selection operation.
在一个可选的实施例中,In an alternative embodiment,
所述交互模块1220,被配置为接收在所述n个显示元素上的第i个显示元素上触发的触发操作;The interaction module 1220 is configured to receive a trigger operation triggered on the i-th display element on the n display elements;
所述显示模块1260,被配置为在所述用户界面上的第二局部区域叠加显示所述第i个显示元素对应的信息窗口,所述信息窗口用于显示所述第i个显示元素对应的推荐信息的第二级信息。The display module 1260 is configured to superimpose and display an information window corresponding to the i-th display element in a second partial area on the user interface, and the information window is used to display the information window corresponding to the i-th display element. The second level information of recommended information.
综上所述,本公开实施例中提供的推荐信息显示方法,通过操作系统触发目标界面元素,提取目标界面元素中的地点信息,在服务器中搜索得到推荐信息,直接在用户界面的局部区域上叠加显示推荐信息,简化了用户手动操作步骤,提高了人机交互的效率。To sum up, the recommended information display method provided in the embodiments of the present disclosure triggers the target interface element through the operating system, extracts the location information in the target interface element, searches the server to obtain the recommended information, and directly displays the recommended information on the local area of the user interface. The recommended information is superimposed and displayed, which simplifies the user's manual operation steps and improves the efficiency of human-computer interaction.
另外,由于n个推荐信息是由操作系统来添加的,所以不论应用程序是操作系统提供的原生应用程序,还是用户安装的第三方应用程序,本实施例提供的推荐信息显示方法都可以实施,也即向用户提供了一种在终端中的全局推荐信息能力,提高了该推荐信息显示方法的应用范围。In addition, since the n pieces of recommendation information are added by the operating system, no matter the application program is a native application program provided by the operating system or a third-party application program installed by the user, the method for displaying recommendation information provided by this embodiment can be implemented. That is, a global recommendation information capability in the terminal is provided to the user, and the application range of the method for displaying the recommendation information is improved.
图18是根据一示例性实施例示出的一种推荐信息显示装置的框图。如图18,装置1700可以是智能手机、平板电脑、电子书阅读器、膝上型便携计算机和台式计算机等等。Fig. 18 is a block diagram of a device for displaying recommendation information according to an exemplary embodiment. As shown in FIG. 18, the device 1700 may be a smartphone, a tablet computer, an e-book reader, a laptop computer, a desktop computer, and the like.
参照图18,装置1700可以包括以下一个或多个组件:处理组件1702,存储器1704,电源组件1706,多媒体组件1708,音频组件1710,输入/输出(I/O)接口1712,传感器组件1714,以及通信组件1716。18, device 1700 may include one or more of the following components: processing component 1702, memory 1704, power supply component 1706, multimedia component 1708, audio component 1710, input/output (I/O) interface 1712, sensor component 1714, and Communication component 1716.
处理组件1702通常控制装置1700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1702可以包括一个或多个处理器1718来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1702可以包括一个或多个模块,便于处理组件1702和其他组件之间的交互。例如,处理组件1702可以包括多媒体模块,以方便多媒体组件1708和处理组件1702之间的交互。The processing component 1702 generally controls the overall operations of the device 1700, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1702 may include one or more processors 1718 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1702 may include one or more modules that facilitate interaction between processing component 1702 and other components. For example, processing component 1702 may include a multimedia module to facilitate interaction between multimedia component 1708 and processing component 1702 .
存储器1704被配置为存储各种类型的数据以支持在装置1700的操作。这些数据的示例包括用于在装置1700上操作的任何应用程序或方法的指令,比如联系人数据,电话簿数据,消息,图片,视频等。存储器1704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1704 is configured to store various types of data to support operations at the device 1700 . Examples of such data include instructions for any application or method operating on the device 1700, such as contact data, phonebook data, messages, pictures, videos, and the like. The memory 1704 can be realized by any type of volatile or non-volatile memory device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件1706为装置1700的各种组件提供电力。电源组件1706可以包括电源管理系统,一个或多个电源,及其他与为装置1700生成、管理和分配电力相关联的组件。The power supply component 1706 provides power to various components of the device 1700 . Power components 1706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1700 .
多媒体组件1708包括在装置1700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1708包括一个前置摄像头和/或后置摄像头。当装置1700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统。The multimedia component 1708 includes a screen that provides an output interface between the device 1700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1708 includes a front camera and/or a rear camera. When the device 1700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system.
音频组件1710被配置为输出和/或输入音频信号。例如,音频组件1710包括一个麦克风(MIC),当装置1700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1704或经由通信组件1716发送。在一些实施例中,音频组件1710还包括一个扬声器,用于输出音频信号。The audio component 1710 is configured to output and/or input audio signals. For example, the audio component 1710 includes a microphone (MIC), which is configured to receive external audio signals when the device 1700 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1704 or sent via communication component 1716 . In some embodiments, the audio component 1710 also includes a speaker for outputting audio signals.
I/O接口1712为处理组件1702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1712 provides an interface between the processing component 1702 and a peripheral interface module, and the above peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件1714包括一个或多个传感器,用于为装置1700提供各个方面的状态评估。例如,传感器组件1714可以检测到装置1700的打开/关闭状态,组件的相对定位,例如组件为装置1700的显示器和小键盘,传感器组件1714还可以检测装置1700或装置1700一个组件的位置改变,用户与装置1700接触的存在或不存在,装置1700方位或加速/减速和装置1700的温度变化。传感器组件1714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1714 includes one or more sensors for providing status assessments of various aspects of device 1700 . For example, the sensor component 1714 can detect the open/closed state of the device 1700, the relative positioning of components, such as the display and keypad of the device 1700, the sensor component 1714 can also detect a change in the position of the device 1700 or a component of the device 1700, the user Presence or absence of contact with device 1700, device 1700 orientation or acceleration/deceleration and temperature change of device 1700. Sensor assembly 1714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1714 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor assembly 1714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件1716被配置为便于装置1700和其他设备之间有线或无线方式的通信。装置1700可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件1716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1716 is configured to facilitate wired or wireless communication between the apparatus 1700 and other devices. The device 1700 can access wireless networks based on communication standards, such as Wi-Fi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置1700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述推荐信息显示方法。In an exemplary embodiment, apparatus 1700 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the recommended information display method described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1704,上述指令可由装置1700的处理器1718执行以完成上述推荐信息显示方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1704 including instructions, which can be executed by the processor 1718 of the device 1700 to implement the above-mentioned recommended information display method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
本申请还提供一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现上述方法实施例提供的推荐信息显示方法。The present application also provides a computer-readable storage medium, wherein at least one instruction, at least one program, code set or instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or The instruction set is loaded and executed by the processor to implement the recommended information display method provided by the above method embodiments.
本申请还提供了一种计算机程序产品,当其在电子设备上运行时,使得电子设备执行上述各个方法实施例所述的推荐信息显示方法。The present application also provides a computer program product, which, when running on an electronic device, causes the electronic device to execute the method for displaying recommended information described in the foregoing method embodiments.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810495566.4ACN108664663A (en) | 2018-05-22 | 2018-05-22 | Recommendation information display methods, device and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810495566.4ACN108664663A (en) | 2018-05-22 | 2018-05-22 | Recommendation information display methods, device and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN108664663Atrue CN108664663A (en) | 2018-10-16 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810495566.4APendingCN108664663A (en) | 2018-05-22 | 2018-05-22 | Recommendation information display methods, device and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN108664663A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110232155A (en)* | 2019-05-31 | 2019-09-13 | 三角兽(北京)科技有限公司 | The information recommendation method and electronic equipment of browser interface |
| CN110276014A (en)* | 2019-06-28 | 2019-09-24 | 京东方科技集团股份有限公司 | Recommended method, device, equipment and storage medium for digital works |
| CN111062778A (en)* | 2019-12-11 | 2020-04-24 | 北京小米移动软件有限公司 | Product browsing method, device, equipment and storage medium |
| CN111104016A (en)* | 2019-08-02 | 2020-05-05 | 广州三星通信技术研究有限公司 | Method and equipment for providing translation result |
| CN112181573A (en)* | 2020-09-28 | 2021-01-05 | 北京达佳互联信息技术有限公司 | Media resource display method, device, terminal, server and storage medium |
| CN112383662A (en)* | 2020-11-09 | 2021-02-19 | 维沃移动通信有限公司 | Information display method and device and electronic equipment |
| CN112799558A (en)* | 2021-02-01 | 2021-05-14 | 联想(北京)有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
| CN112818259A (en)* | 2019-11-15 | 2021-05-18 | 腾讯科技(深圳)有限公司 | Content recommendation method, electronic device and computer-readable storage medium |
| CN113034213A (en)* | 2019-12-09 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Cartoon content display method, device and equipment and readable storage medium |
| CN113568694A (en)* | 2021-07-20 | 2021-10-29 | 上海云轴信息科技有限公司 | Interactive method and equipment for interface authority configuration management |
| CN113961684A (en)* | 2021-10-18 | 2022-01-21 | 维沃移动通信有限公司 | Information processing method and device |
| CN114302205A (en)* | 2021-05-25 | 2022-04-08 | 海信视像科技股份有限公司 | Information recommendation method and display device |
| CN114595407A (en)* | 2022-04-01 | 2022-06-07 | 北京达佳互联信息技术有限公司 | Recommended object display method and device, electronic equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101266608A (en)* | 2008-05-09 | 2008-09-17 | 魏新成 | Method for on-line searching for computer screen displayed text character string |
| CN102024041A (en)* | 2010-12-08 | 2011-04-20 | 王宝全 | Search method and search system for electronic commerce |
| CN102945130A (en)* | 2012-11-21 | 2013-02-27 | 广东欧珀移动通信有限公司 | Information search method and system |
| CN107239528A (en)* | 2017-05-27 | 2017-10-10 | 北京小米移动软件有限公司 | Search result display methods and device |
| CN107256109A (en)* | 2017-05-27 | 2017-10-17 | 北京小米移动软件有限公司 | Method for information display, device and terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101266608A (en)* | 2008-05-09 | 2008-09-17 | 魏新成 | Method for on-line searching for computer screen displayed text character string |
| CN102024041A (en)* | 2010-12-08 | 2011-04-20 | 王宝全 | Search method and search system for electronic commerce |
| CN102945130A (en)* | 2012-11-21 | 2013-02-27 | 广东欧珀移动通信有限公司 | Information search method and system |
| CN107239528A (en)* | 2017-05-27 | 2017-10-10 | 北京小米移动软件有限公司 | Search result display methods and device |
| CN107256109A (en)* | 2017-05-27 | 2017-10-17 | 北京小米移动软件有限公司 | Method for information display, device and terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110232155B (en)* | 2019-05-31 | 2021-08-24 | 腾讯科技(深圳)有限公司 | Information recommendation method for browser interface and electronic equipment |
| CN110232155A (en)* | 2019-05-31 | 2019-09-13 | 三角兽(北京)科技有限公司 | The information recommendation method and electronic equipment of browser interface |
| CN110276014A (en)* | 2019-06-28 | 2019-09-24 | 京东方科技集团股份有限公司 | Recommended method, device, equipment and storage medium for digital works |
| CN111104016A (en)* | 2019-08-02 | 2020-05-05 | 广州三星通信技术研究有限公司 | Method and equipment for providing translation result |
| CN112818259B (en)* | 2019-11-15 | 2024-10-25 | 腾讯科技(深圳)有限公司 | Content recommendation method, electronic equipment and computer readable storage medium |
| CN112818259A (en)* | 2019-11-15 | 2021-05-18 | 腾讯科技(深圳)有限公司 | Content recommendation method, electronic device and computer-readable storage medium |
| CN113034213B (en)* | 2019-12-09 | 2023-09-26 | 腾讯科技(深圳)有限公司 | Cartoon content display method, device, equipment and readable storage medium |
| CN113034213A (en)* | 2019-12-09 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Cartoon content display method, device and equipment and readable storage medium |
| CN111062778A (en)* | 2019-12-11 | 2020-04-24 | 北京小米移动软件有限公司 | Product browsing method, device, equipment and storage medium |
| CN112181573A (en)* | 2020-09-28 | 2021-01-05 | 北京达佳互联信息技术有限公司 | Media resource display method, device, terminal, server and storage medium |
| CN112181573B (en)* | 2020-09-28 | 2024-09-20 | 北京达佳互联信息技术有限公司 | Media resource display method, device, terminal, server and storage medium |
| CN112383662A (en)* | 2020-11-09 | 2021-02-19 | 维沃移动通信有限公司 | Information display method and device and electronic equipment |
| CN112799558A (en)* | 2021-02-01 | 2021-05-14 | 联想(北京)有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
| CN114302205A (en)* | 2021-05-25 | 2022-04-08 | 海信视像科技股份有限公司 | Information recommendation method and display device |
| CN114302205B (en)* | 2021-05-25 | 2024-05-14 | 海信视像科技股份有限公司 | Information recommendation method and display device |
| CN113568694A (en)* | 2021-07-20 | 2021-10-29 | 上海云轴信息科技有限公司 | Interactive method and equipment for interface authority configuration management |
| CN113961684A (en)* | 2021-10-18 | 2022-01-21 | 维沃移动通信有限公司 | Information processing method and device |
| CN114595407A (en)* | 2022-04-01 | 2022-06-07 | 北京达佳互联信息技术有限公司 | Recommended object display method and device, electronic equipment and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| CN108664663A (en) | Recommendation information display methods, device and storage medium | |
| US10739958B2 (en) | Method and device for executing application using icon associated with application metadata | |
| CN105488112B (en) | Information-pushing method and device | |
| CN108829686B (en) | Translation information display method, device, equipment and storage medium | |
| CN109144285B (en) | Input method and device | |
| CN107193975A (en) | Information resources collecting method, device and computer-readable recording medium | |
| CN112269798B (en) | Information display method, device and electronic device | |
| CN107256509A (en) | Price comparing method and device, terminal, server and storage medium | |
| CN107193976A (en) | Information resources display methods, device and computer-readable recording medium | |
| CN107977431A (en) | Image processing method, device, computer device, and computer-readable storage medium | |
| CN104142991A (en) | A search method, search client, and electronic device | |
| CN107229705A (en) | Information resources lookup method, device and computer-readable recording medium | |
| CN111046210A (en) | An information recommendation method, device and electronic device | |
| CN108733397B (en) | Update state determination method, device and storage medium | |
| KR20140113155A (en) | Mobile device and control method for the same | |
| CN107358233A (en) | Information acquisition method and device | |
| CN107229403A (en) | A kind of information content system of selection and device | |
| CN113918661B (en) | Knowledge graph generation method, device and electronic device | |
| CN107908522B (en) | Information display method, device and computer-readable storage medium | |
| CN106294596A (en) | The method and device of information search | |
| CN108241438B (en) | Input method, input device and input device | |
| CN108268507B (en) | Browser-based processing method and device and electronic equipment | |
| CN106412199B (en) | Method and device for editing contact information, mobile terminal and server | |
| CN111435270B (en) | Recommendation method and device and electronic equipment | |
| CN108874172B (en) | Input method and device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |