CN111782831A - Display method, device, medium and electronic device for media file - Google Patents

Display method, device, medium and electronic device for media file Download PDF

Info

Publication number
CN111782831A
CN111782831A CN202010633845.XA CN202010633845A CN111782831A CN 111782831 A CN111782831 A CN 111782831A CN 202010633845 A CN202010633845 A CN 202010633845A CN 111782831 A CN111782831 A CN 111782831A
Authority
CN
China
Prior art keywords
target
country
media file
user
tuple
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010633845.XA
Other languages
Chinese (zh)
Other versions
CN111782831B (en
Inventor
王鑫宇
张永华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010633845.XA priority Critical patent/CN111782831B/en
Publication of CN111782831A publication Critical patent/CN111782831A/en
Application granted granted Critical
Publication of CN111782831B publication Critical patent/CN111782831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • G06F16/4387Presentation of query results by the use of playlists
    • G06F16/4393Multimedia presentations, e.g. slide shows, multimedia albums
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/48Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/483Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/48Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/487Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本公开涉及一种媒体文件的展示方法、装置、介质及电子设备,该方法包括:确定待向目标用户展示的多个目标媒体文件以及每一目标媒体文件对应的国家;确定目标用户所在的国家;获取每一目标媒体文件对应的相似度特征信息,相似度特征信息用于表征目标用户所在的国家的用户与目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度;根据相似度特征信息,确定多个目标媒体文件的展示顺序。通过上述技术方案,考虑不同国家的用户对媒体文件的使用偏好,并非按照随机的顺序对多个目标媒体文件进行排序,使得目标媒体文件的展示顺序更加符合目标用户的预期,提高目标用户的体验,并且提高目标媒体文件的展示顺序的合理性。

Figure 202010633845

The present disclosure relates to a method, device, medium and electronic device for displaying media files. The method includes: determining multiple target media files to be displayed to target users and a country corresponding to each target media file; determining the country where the target user is located ; Obtain the similarity feature information corresponding to each target media file, and the similarity feature information is used to represent the similarity of the usage preference of the media file between the user in the country where the target user is located and the user in the country corresponding to the target media file; The degree feature information is used to determine the display order of multiple target media files. Through the above technical solution, considering the preferences of users in different countries on the use of media files, multiple target media files are not sorted in random order, so that the display order of the target media files is more in line with the expectations of the target users, and the experience of the target users is improved. , and improve the rationality of the display order of the target media files.

Figure 202010633845

Description

媒体文件的展示方法、装置、介质及电子设备Display method, device, medium and electronic device for media file

技术领域technical field

本公开涉及互联网技术领域,具体地,涉及一种媒体文件的展示方法、装置、介质及电子设备。The present disclosure relates to the field of Internet technologies, and in particular, to a method, apparatus, medium and electronic device for displaying media files.

背景技术Background technique

媒体文件可包括音频、视频等文件,其中,音频文件例如包括音乐、歌曲,视频文件例如包括短视频、音乐短片(MV,Music Video)。The media files may include audio, video and other files, wherein the audio files include, for example, music and songs, and the video files include, for example, short videos and music videos (MV, Music Video).

随着终端设备的日益普及,智能手机、平板电脑等终端设备的使用越来越广泛,用户可通过终端设备听音乐、看视频等。由于媒体文件的数量众多,终端在向用户展示音乐、视频等媒体文件时,以何种顺序展示这些媒体文件,直接影响用户的体验。相关技术中,通常是以随机的顺序对多个媒体文件进行展示,展示顺序不够合理且用户体验不佳。With the increasing popularity of terminal devices, smart phones, tablet computers and other terminal devices are used more and more widely, and users can listen to music, watch videos, etc. through the terminal devices. Due to the large number of media files, when the terminal displays media files such as music and videos to the user, the order in which the media files are displayed directly affects the user's experience. In the related art, multiple media files are usually displayed in random order, and the display order is not reasonable and the user experience is poor.

发明内容SUMMARY OF THE INVENTION

提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。This Summary is provided to introduce concepts in a simplified form that are described in detail in the Detailed Description section that follows. This summary section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to be used to limit the scope of the claimed technical solution.

第一方面,本公开提供一种媒体文件的展示方法,所述方法包括:确定待向目标用户展示的多个目标媒体文件以及每一所述目标媒体文件对应的国家;确定所述目标用户所在的国家;获取每一所述目标媒体文件对应的相似度特征信息,所述相似度特征信息用于表征所述目标用户所在的国家的用户与所述目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度;根据所述相似度特征信息,确定所述多个目标媒体文件的展示顺序。In a first aspect, the present disclosure provides a method for displaying media files, the method comprising: determining a plurality of target media files to be displayed to a target user and a country corresponding to each target media file; determining where the target user is located country; obtain similarity feature information corresponding to each target media file, the similarity feature information is used to represent the relationship between users in the country where the target user is located and users in the country corresponding to the target media file The usage preference similarity of the media files; according to the similarity feature information, the display order of the multiple target media files is determined.

第二方面,本公开提供一种媒体文件的展示装置,所述装置包括:第一确定模块,被配置成用于确定待向目标用户展示的多个目标媒体文件以及每一所述目标媒体文件对应的国家;第二确定模块,被配置成用于确定所述目标用户所在的国家;获取模块,被配置成用于获取每一所述目标媒体文件对应的相似度特征信息,所述相似度特征信息用于表征所述目标用户所在的国家的用户与所述目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度;第三确定模块,被配置成用于根据所述相似度特征信息,确定所述多个目标媒体文件的展示顺序。In a second aspect, the present disclosure provides an apparatus for displaying media files, the apparatus comprising: a first determining module configured to determine a plurality of target media files to be displayed to a target user and each of the target media files a corresponding country; a second determination module, configured to determine the country where the target user is located; an acquisition module, configured to acquire similarity feature information corresponding to each of the target media files, the similarity The feature information is used to represent the similarity of the usage preference of the media file between the user in the country where the target user is located and the user in the country corresponding to the target media file; the third determining module is configured to be configured according to the similarity The degree feature information is used to determine the display order of the multiple target media files.

第三方面,本公开提供一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现本公开第一方面提供的所述方法的步骤。In a third aspect, the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing apparatus, implements the steps of the method provided in the first aspect of the present disclosure.

第四方面,本公开提供一种电子设备,包括:存储装置,其上存储有计算机程序;处理装置,用于执行所述存储装置中的所述计算机程序,以实现本公开第一方面提供的所述方法的步骤。In a fourth aspect, the present disclosure provides an electronic device, including: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device, so as to implement the computer program provided in the first aspect of the present disclosure. the steps of the method.

通过上述技术方案,目标媒体文件为待向目标用户展示的媒体文件,目标媒体文件对应的相似度特征信息,可用于表征目标用户所在的国家的用户与该目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度。目标用户可能更偏好选择对应的相似度特征信息高的目标媒体文件,因此,在确定多个目标媒体文件的展示顺序时,可将对应的相似度特征信息高的目标媒体文件,排在对应的相似度特征信息低的目标媒体文件之前。这样,在向用户展示多个目标媒体文件时,考虑不同国家的用户对媒体文件的使用偏好,可以使得用户首先浏览到其更偏好选择的目标媒体文件,并非按照随机的顺序对多个目标媒体文件进行排序,使得目标媒体文件的展示顺序更加符合目标用户的预期,提高目标用户的体验,并且提高目标媒体文件的展示顺序的合理性。Through the above technical solution, the target media file is a media file to be displayed to the target user, and the similarity feature information corresponding to the target media file can be used to characterize the relationship between users in the country where the target user is located and users in the country corresponding to the target media file. Similarity of usage preferences for media files. The target user may prefer to select target media files with high corresponding similarity feature information. Therefore, when determining the display order of multiple target media files, the corresponding target media files with high similarity feature information can be ranked in the corresponding target media files. Before the target media file with low similarity feature information. In this way, when multiple target media files are displayed to the user, the user's preference for using media files in different countries can be considered, so that the user can first browse to the target media file he prefers to select, instead of selecting the multiple target media files in random order. The files are sorted, so that the display order of the target media files is more in line with the expectations of the target user, the experience of the target user is improved, and the rationality of the display order of the target media files is improved.

本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the detailed description that follows.

附图说明Description of drawings

结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。在附图中:The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent when taken in conjunction with the accompanying drawings and with reference to the following detailed description. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale. In the attached image:

图1是根据一示例性实施例示出的一种媒体文件的展示方法的流程图。Fig. 1 is a flow chart of a method for displaying media files according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种获得目标使用偏好信息的方法的流程图。Fig. 2 is a flowchart of a method for obtaining target usage preference information according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种根据多元组和目标函数对各个目标国家的使用偏好信息进行迭代更新的方法的流程图。Fig. 3 is a flowchart of a method for iteratively updating usage preference information of each target country according to a tuple and an objective function, according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种媒体文件的展示装置的框图。Fig. 4 is a block diagram of an apparatus for displaying media files according to an exemplary embodiment.

图5是根据一示例性实施例示出的一种电子设备的结构示意图。Fig. 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for the purpose of A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the protection scope of the present disclosure.

应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this regard.

本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "including" and variations thereof are open-ended inclusions, ie, "including but not limited to". The term "based on" is "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.

需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or interdependence.

需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "a" and "a plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, they should be understood as "one or a plurality of". multiple".

本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of these messages or information.

首先对本公开的应用场景进行介绍。在本公开的一种应用场景中,不同的国家可能具有名称相同的媒体文件,例如国家A和国家B都有名称为“XX”的媒体文件,用户在搜索名称为“XX”的媒体文件时,本公开中可以根据不同国家的用户对媒体文件的使用偏好,来确定国家A的名称为“XX”的媒体文件和国家B的名称为“XX”的媒体文件的展示顺序。First, the application scenarios of the present disclosure are introduced. In one application scenario of the present disclosure, different countries may have media files with the same name. For example, both country A and country B have media files named "XX". When a user searches for media files named "XX" , in the present disclosure, the display order of the media files named "XX" in country A and the media files named "XX" in country B can be determined according to the usage preferences of users in different countries.

当然,本公开的应用场景并不局限于上述基于用户搜索以及同名媒体文件的场景中。示例地,在向用户推送其可能感兴趣的媒体文件时,例如新发行的多个媒体文件,不同的媒体文件可能来自不同的国家,本公开中可以根据不同国家的用户对媒体文件的使用偏好,来确定向用户推送的多个媒体文件的展示顺序。Of course, the application scenarios of the present disclosure are not limited to the above scenarios based on user search and media files with the same name. For example, when pushing media files that may be of interest to users, such as multiple newly released media files, different media files may come from different countries. , to determine the display order of multiple media files pushed to the user.

图1是根据一示例性实施例示出的一种媒体文件的展示方法的流程图,该方法可以应用于具有处理能力的电子设备中,如终端、服务器等。如图1所示,该方法可包括S101~S104。Fig. 1 is a flow chart of a method for displaying media files according to an exemplary embodiment. The method can be applied to an electronic device with processing capability, such as a terminal, a server, and the like. As shown in FIG. 1 , the method may include S101 to S104.

在S101中,确定待向目标用户展示的多个目标媒体文件以及每一目标媒体文件对应的国家。In S101, a plurality of target media files to be displayed to a target user and a country corresponding to each target media file are determined.

在一实施例中,目标媒体文件可以是根据目标用户输入的检索信息确定出的与该检索信息相关的媒体文件。示例地,目标用户输入的检索信息可以是媒体文件的名称,例如歌曲的歌名,多个目标媒体文件可以是与该名称相同或相近的多个媒体文件。在另一实施例中,目标媒体文件可以是向用户推送的其可能感兴趣的媒体文件,例如新发行的媒体文件,或热门媒体文件等。In one embodiment, the target media file may be a media file related to the retrieval information determined according to the retrieval information input by the target user. For example, the retrieval information input by the target user may be the name of a media file, such as the title of a song, and the multiple target media files may be multiple media files with the same or similar names. In another embodiment, the target media file may be a media file that may be of interest to the user, such as a newly released media file, or a popular media file.

不同的目标媒体文件对应的国家可能不同,其中,目标媒体文件对应的国家可以是该目标媒体文件的首发国家,即首次发行该目标媒体文件的国家。示例地,目标媒体文件a在国家A首次发行,则该目标媒体文件a对应的国家可以为国家A。Different target media files may correspond to different countries, wherein the country corresponding to the target media file may be the country where the target media file is first published, that is, the country where the target media file is first published. For example, if the target media file a is first released in country A, the country corresponding to the target media file a may be country A.

在S102中,确定目标用户所在的国家。In S102, the country where the target user is located is determined.

其中,可以根据目标用户当前的位置信息,确定该目标用户所在的国家。Wherein, the country where the target user is located may be determined according to the current location information of the target user.

在S103中,获取每一目标媒体文件对应的相似度特征信息。In S103, the similarity feature information corresponding to each target media file is acquired.

示例地,不同国家的用户对音乐风格的偏好可能不同,例如有些国家的用户更偏好选择舒缓类型的音乐,有些国家的用户更偏好选择摇滚类型的音乐,即,不同国家的用户对媒体文件的使用偏好可能不同。如果两个国家的用户均偏好舒缓类型的音乐,可表征这两个国家的用户对媒体文件的使用偏好较为相似。如果其中一个国家的用户偏好舒缓类型的音乐,另一个国家的用户偏好摇滚类型的音乐,可表征这两个国家的用户对媒体文件的使用偏好相差较大。值得说明的是,上述通过用户对音乐类型的偏好来表征对媒体文件的使用偏好仅为示例性解释说明,不构成对本公开实施方式的限制。For example, users in different countries may have different preferences for music styles. For example, users in some countries prefer to choose soothing music, and users in some countries prefer to choose rock music. That is, users in different countries have different preferences for media files. Preferences may vary. If users in two countries both prefer soothing music, it can indicate that users in these two countries have similar preferences for using media files. If users in one country prefer soothing music, and users in the other country prefer rock music, it can indicate that users in these two countries have relatively large differences in their preferences for using media files. It should be noted that the above-mentioned use preference for media files represented by the user's preference for music genres is only an exemplary explanation, and does not constitute a limitation to the embodiments of the present disclosure.

目标媒体文件对应的相似度特征信息,可用于表征目标用户所在的国家的用户与目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度。示例地,目标媒体文件a对应的国家为国家A,目标媒体文件b对应的国家为国家B,目标用户所在的国家为国家C。如果国家C的用户与国家A的用户对媒体文件的使用偏好较为相似,则目标媒体文件a对应的相似度特征信息相对较高。如果国家C的用户与国家B的用户对媒体文件的使用偏好相差较大,则目标媒体文件b对应的相似度特征信息相对较低。The similarity feature information corresponding to the target media file can be used to represent the similarity in the usage preference of the media file between the user in the country where the target user is located and the user in the country corresponding to the target media file. For example, the country corresponding to the target media file a is country A, the country corresponding to the target media file b is country B, and the country where the target user is located is country C. If users in country C and users in country A have similar usage preferences for media files, the similarity feature information corresponding to the target media file a is relatively high. If users in country C and users in country B have a relatively large difference in using preferences for media files, the similarity feature information corresponding to the target media file b is relatively low.

在S104中,根据该相似度特征信息,确定多个目标媒体文件的展示顺序。In S104, the display order of the multiple target media files is determined according to the similarity feature information.

目标用户可能更偏好选择对应的相似度特征信息高的目标媒体文件,因此,在确定多个目标媒体文件的展示顺序时,可将对应的相似度特征信息高的目标媒体文件,排在对应的相似度特征信息低的目标媒体文件之前。The target user may prefer to select target media files with high corresponding similarity feature information. Therefore, when determining the display order of multiple target media files, the corresponding target media files with high similarity feature information can be ranked in the corresponding target media files. Before the target media file with low similarity feature information.

沿用上述示例,目标用户所在的国家C的用户与国家A的用户,对媒体文件的使用偏好更为相似,因此目标用户可能更偏好选择目标媒体文件a,在确定多个目标媒体文件的展示顺序时,可将目标媒体文件a排在目标媒体文件b前面。Following the above example, users in country C where the target user is located and users in country A have more similar usage preferences for media files. Therefore, the target user may prefer to select target media file a. When determining the display order of multiple target media files. , the target media file a can be arranged before the target media file b.

通过上述技术方案,目标媒体文件为待向目标用户展示的媒体文件,目标媒体文件对应的相似度特征信息,可用于表征目标用户所在的国家的用户与该目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度。目标用户可能更偏好选择对应的相似度特征信息高的目标媒体文件,因此,在确定多个目标媒体文件的展示顺序时,可将对应的相似度特征信息高的目标媒体文件,排在对应的相似度特征信息低的目标媒体文件之前。这样,在向用户展示多个目标媒体文件时,考虑不同国家的用户对媒体文件的使用偏好,可以使得用户首先浏览到其更偏好选择的目标媒体文件,并非按照随机的顺序对多个目标媒体文件进行排序,使得目标媒体文件的展示顺序更加符合目标用户的预期,提高目标用户的体验,并且提高目标媒体文件的展示顺序的合理性。Through the above technical solution, the target media file is a media file to be displayed to the target user, and the similarity feature information corresponding to the target media file can be used to characterize the relationship between users in the country where the target user is located and users in the country corresponding to the target media file. Similarity of usage preferences for media files. The target user may prefer to select target media files with high corresponding similarity feature information. Therefore, when determining the display order of multiple target media files, the corresponding target media files with high similarity feature information can be ranked in the corresponding target media files. Before the target media file with low similarity feature information. In this way, when multiple target media files are displayed to the user, the user's preference for using media files in different countries can be considered, so that the user can first browse to the target media file he prefers to select, instead of selecting the multiple target media files in random order. The files are sorted, so that the display order of the target media files is more in line with the expectations of the target user, the experience of the target user is improved, and the rationality of the display order of the target media files is improved.

本公开中,上述S103中获取每一目标媒体文件对应的相似度特征信息,可包括:In the present disclosure, obtaining the similarity feature information corresponding to each target media file in S103 may include:

针对每一目标媒体文件,根据目标用户所在的国家的用户对媒体文件的目标使用偏好信息与该目标媒体文件对应的国家的用户对媒体文件的目标使用偏好信息之间的第一距离,确定该目标媒体文件对应的相似度特征信息。For each target media file, according to the first distance between the target usage preference information for the media file by the user in the country where the target user is located and the target usage preference information for the media file by the user in the country corresponding to the target media file, determine the target media file. Similarity feature information corresponding to the target media file.

目标使用偏好信息可用于表征国家的用户对媒体文件的使用偏好。在一实施例中,该目标使用偏好信息可通过向量的形式来表示,其中,向量的维度可预先设置,例如可设置为32维~128维之间的任一维度。目标使用偏好信息之间的第一距离可以是向量之间的欧式距离。The target usage preference information can be used to characterize the user's usage preference for media files in a country. In one embodiment, the target usage preference information may be represented in the form of a vector, wherein the dimension of the vector may be preset, for example, may be set to any dimension between 32 dimensions and 128 dimensions. The first distance between the target usage preference information may be an Euclidean distance between vectors.

如果两个国家的用户对媒体文件的使用偏好越相似,那么这两个国家对应的目标使用偏好信息越相近,目标使用偏好信息之间的第一距离越小。示例地,例如可将该第一距离的倒数作为该目标媒体文件对应的相似度特征信息。其中,第一距离越小,对应的相似度特征信息越大,可表征目标用户所在的国家的用户与该目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度越高。If the user preferences of the media files in the two countries are more similar, the target usage preference information corresponding to the two countries is closer, and the first distance between the target usage preference information is smaller. For example, for example, the reciprocal of the first distance may be used as similarity feature information corresponding to the target media file. Wherein, the smaller the first distance, the greater the corresponding similarity feature information, which can indicate that the user in the country where the target user is located and the user in the country corresponding to the target media file have higher similarity in the usage preference of the media file.

本公开中,各个国家对应的目标使用偏好信息可以是预先训练出的,例如根据各个国家的用户对媒体文件的历史使用情况预先训练出的。在一种可选实施方式中,目标媒体文件对应的相似度特征信息可以预先确定,例如可以是根据训练出的国家对应的目标使用偏好信息预先确定的,并存储在终端或服务器中,终端或服务器可直接获取到该相似度特征信息。在另一种可选实施方式中,目标媒体文件对应的相似度特征信息也可以是在S102之后,根据预先训练出的国家对应的目标使用偏好信息确定出的。In the present disclosure, the target usage preference information corresponding to each country may be pre-trained, for example, pre-trained according to the historical usage of media files by users in each country. In an optional implementation manner, the similarity feature information corresponding to the target media file may be predetermined, for example, may be predetermined according to the target usage preference information corresponding to the trained country, and stored in the terminal or server. The server can directly obtain the similarity feature information. In another optional implementation manner, the similarity feature information corresponding to the target media file may also be determined after S102 according to the pre-trained target usage preference information corresponding to the country.

图2是根据一示例性实施例示出的一种获得目标使用偏好信息的方法的流程图。如图2所示,该方法可包括S201~S204。Fig. 2 is a flowchart of a method for obtaining target usage preference information according to an exemplary embodiment. As shown in FIG. 2, the method may include S201-S204.

在S201中,针对每一媒体文件,获取该媒体文件在多个目标国家的历史使用信息。In S201, for each media file, historical usage information of the media file in multiple target countries is acquired.

媒体文件可以是挑选出来的歌曲、音乐、音乐短片等,也可包括上述的待向用户展示的目标媒体文件。其中,将哪些国家作为目标国家可预先设置,该目标国家可包括目标用户所在的国家以及目标媒体文件对应的国家。The media files may be selected songs, music, music clips, etc., and may also include the above-mentioned target media files to be displayed to the user. Which countries are used as target countries may be preset, and the target countries may include the country where the target user is located and the country corresponding to the target media file.

媒体文件在目标国家的历史使用信息,可以是在预设历史时段(如过去一周、一个月)内,该目标国家的用户对该媒体文件的使用信息。示例地,该历史使用信息例如可包括媒体文件使用量、媒体文件播放完成量、媒体文件被作为背景媒体文件的次数。其中,媒体文件使用量可包括该媒体文件被播放的次数、被搜索的次数等等。媒体文件播放完成量可以指的是该媒体文件被播放完成的次数。媒体文件被作为背景媒体文件的次数可以指的是该媒体文件被用户设置为手机铃声、短视频背景音乐等的次数。The historical usage information of the media file in the target country may be the usage information of the media file by the users of the target country within a preset historical period (eg, the past week or month). Exemplarily, the historical usage information may include, for example, the usage amount of the media file, the completion amount of playing the media file, and the number of times the media file is used as the background media file. Wherein, the usage amount of the media file may include the number of times the media file is played, the number of times it is searched, and the like. The play completion amount of the media file may refer to the number of times the media file is played and completed. The number of times the media file is used as the background media file may refer to the number of times that the media file is set by the user as the ringtone of the mobile phone, the background music of the short video, and the like.

在S202中,根据该媒体文件在每个目标国家的历史使用信息,分别确定该媒体文件的正例国家和负例国家。In S202, according to the historical usage information of the media file in each target country, the positive country and the negative country of the media file are respectively determined.

正例国家可以为满足该媒体文件的预设使用条件的目标国家,负例国家可以为不满足该媒体文件的预设使用条件的目标国家。其中,预设使用条件可以包括以下中的至少一者:媒体文件使用量大于预设使用量阈值;媒体文件播放完成量大于预设播放量阈值;媒体文件被作为背景媒体文件的次数大于预设数量阈值。其中,预设使用量阈值、预设播放量阈值以及预设数量阈值均可预先设置,本公开对各个阈值的取值不做具体限制。并且,对于不同的媒体文件,预设使用条件可以相同也可以不同,本公开同样不做具体限制。The positive example country may be a target country that satisfies the preset usage condition of the media file, and the negative example country may be the target country that does not meet the preset usage condition of the media file. Wherein, the preset usage condition may include at least one of the following: the usage amount of the media file is greater than the preset usage amount threshold; the playback completion amount of the media file is greater than the preset playback amount threshold; the number of times the media file is used as the background media file is greater than the preset usage amount Quantity threshold. Wherein, the preset usage threshold, the preset playback threshold, and the preset quantity threshold can all be set in advance, and the present disclosure does not specifically limit the value of each threshold. Moreover, for different media files, the preset usage conditions may be the same or different, which is also not specifically limited in the present disclosure.

预设使用条件可以包括上述条件中的一者或多者,当包括上述条件中的多者时,在确定正例国家时,可以在目标国家同时满足该多个条件的情况下,将该目标国家为作为该媒体文件的正例国家,或者,也可在目标国家满足多个条件中其中一个条件的情况下,即将该目标国家作为该媒体文件的正例国家。在确定负例国家时,可以在目标国家均不满足该多个条件的情况下,将该目标国家作为该媒体文件的负例国家。The preset usage conditions may include one or more of the above conditions. When including more than one of the above conditions, when determining a positive country, the target country may satisfy the multiple conditions at the same time. The country is a positive example country of the media file, or, if the target country satisfies one of a plurality of conditions, the target country can be regarded as a positive example country of the media file. When determining a negative country, if none of the target countries satisfy the multiple conditions, the target country may be regarded as a negative country of the media file.

此外,在确定该媒体文件的负例国家时,除了考虑目标国家是否满足该媒体文件的预设使用条件外,还可考虑该目标国家对媒体文件的整体使用情况,即该国家的用户对媒体文件的使用总量。如果目标国家不满足该媒体文件的预设使用条件,并且,该目标国家的用户对媒体文件的使用总量相对较大,可将该目标国家作为负例国家。原因主要在于,如果目标国家的用户对媒体文件的使用总量较大,那么该目标国家作为正例国家的概率较大,作为负例国家的概率较小,为了平衡该目标国家作为正例国家和负例国家的概率,可将该目标国家作为负例国家。In addition, when determining the negative country of the media file, in addition to considering whether the target country satisfies the preset usage conditions of the media file, the overall usage of the media file by the target country can also be considered, that is, the users in this country The total amount of files used. If the target country does not meet the preset usage conditions of the media file, and the total amount of media files used by users in the target country is relatively large, the target country may be regarded as a negative example country. The main reason is that if users in the target country use a large amount of media files, the probability of the target country being a positive example country is high, and the probability of being a negative example country is small. In order to balance the target country as a positive example country and the probability of a negative country, the target country can be regarded as a negative country.

示例地,例如针对媒体文件c,国家A和国家C均满足媒体文件c的预设使用条件,国家B不满足媒体文件c的预设使用条件,则可将国家A和国家C作为媒体文件c的正例国家,将国家B作为媒体文件c的负例国家。For example, for media file c, country A and country C both meet the preset usage conditions for media file c, and country B does not meet the preset usage conditions for media file c, then country A and country C can be used as media file c. The positive example country of , takes country B as the negative example country of media file c.

在S203中,建立该媒体文件对应的至少一个多元组。其中,每一多元组中可包括媒体文件的多个正例国家和该媒体文件的至少一个负例国家。In S203, at least one tuple corresponding to the media file is established. Wherein, each tuple may include a plurality of positive example countries of the media file and at least one negative example country of the media file.

对于多元组中正例国家的数量和负例国家的数量,本公开不做具体限制。The present disclosure does not specifically limit the number of positive countries and the number of negative countries in the multi-group.

在S204中,根据多元组和目标函数,对各个目标国家的使用偏好信息进行迭代更新,以得到目标使用偏好信息。In S204, the usage preference information of each target country is iteratively updated according to the tuple and the objective function, so as to obtain the target usage preference information.

在针对每一媒体文件,建立该媒体文件对应的至少一个多元组后,可根据建立的这些多元组和目标函数,对各个目标国家的使用偏好信息进行迭代更新,以得到各个目标国家对应的目标使用偏好信息。本公开中,每一多元组均可用于对该多元组中涉及到的国家的使用偏好信息进行迭代更新,迭代更新的过程即不断优化该使用偏好信息的过程。随着迭代更新的次数增多,使用偏好信息被不断优化,可以使得最终得到的目标使用偏好信息更精确,更能反映该目标国家的用户对媒体文件的使用偏好情况。For each media file, after establishing at least one tuple corresponding to the media file, the usage preference information of each target country can be iteratively updated according to the established tuple and objective function, so as to obtain the target corresponding to each target country. Use preference information. In the present disclosure, each tuple can be used to iteratively update the usage preference information of the countries involved in the tuple, and the iterative updating process is a process of continuously optimizing the usage preference information. As the number of iterative updates increases, the usage preference information is continuously optimized, which can make the final target usage preference information more accurate and better reflect the usage preference of users in the target country for media files.

其中,每一目标国家可以分别具有各自的初始使用偏好信息,该初始使用偏好信息可以是预先设置的,例如可通过向量的形式来表示。各个目标国家的初始使用偏好信息可以相同也可以不同,本公开不做具体限制。Wherein, each target country may have its own initial usage preference information, and the initial usage preference information may be preset, for example, may be represented in the form of a vector. The initial usage preference information of each target country may be the same or different, which is not specifically limited in the present disclosure.

上述S204中根据多元组和目标函数对各个目标国家的使用偏好信息进行迭代更新的示例性实施方式可如图3所示,包括S301~S306。An exemplary implementation of iteratively updating the usage preference information of each target country according to the tuple and the objective function in the above S204 may be shown in FIG. 3 , including S301 to S306 .

在S301中,从未遍历过的多元组中获取其中一个多元组作为目标多元组,根据该目标多元组所涉及的国家当前的使用偏好信息和目标函数,确定该目标多元组对应的目标参数。In S301, one of the tuples from the untraversed tuples is obtained as the target tuple, and the target parameter corresponding to the target tuple is determined according to the current usage preference information and objective function of the country involved in the target tuple.

该目标多元组可以是未遍历过的多元组中的任一个多元组。示例地,在本公开的一种可选实施方式中,多元组中包括两个正例国家和一个负例国家。该步骤S301可包括:The target tuple can be any tuple in the untraversed tuple. For example, in an optional embodiment of the present disclosure, the multi-tuple includes two positive countries and one negative country. This step S301 may include:

确定该目标多元组中两个正例国家当前的使用偏好信息之间的第二距离,以及该目标多元组中其中一个正例国家当前的使用偏好信息与该目标多元组中负例国家当前的使用偏好信息之间的第三距离;根据第二距离、第三距离和目标函数,计算出目标参数。其中,使用偏好信息可以通过向量的形式来表示,第二距离和第三距离可以是向量之间的欧式距离。Determine the second distance between the current usage preference information of two positive example countries in the target tuple, and the current usage preference information of one of the positive example countries in the target tuple and the current usage preference information of the negative example country in the target tuple The third distance between the preference information is used; the target parameter is calculated according to the second distance, the third distance and the target function. The usage preference information may be represented in the form of vectors, and the second distance and the third distance may be Euclidean distances between the vectors.

示例地,目标函数可以为:Illustratively, the objective function can be:

Y=D1-min(β,D2)Y=D1-min(β, D2)

其中,Y表示目标参数,D1表示第二距离,D2表示第三距离,β表示预设的距离阈值。Wherein, Y represents the target parameter, D1 represents the second distance, D2 represents the third distance, and β represents the preset distance threshold.

沿用上述示例,国家A和国家C可作为媒体文件c的正例国家,国家B可作为媒体文件c的负例国家。媒体文件c对应的其中一个多元组可以为(国家A,国家C,国家B)。例如将该多元组作为目标多元组,可计算国家A当前的使用偏好信息与国家C当前的使用偏好信息之间的第二距离,以及国家A当前的使用偏好信息与国家B当前的使用偏好信息之间的第三距离。之后,将该第二距离和第三距离输入到目标函数中,可得到对应的目标参数。Following the above example, country A and country C can be used as positive example countries for media file c, and country B can be used as a negative example country for media file c. One of the tuple corresponding to the media file c may be (country A, country C, country B). For example, using the tuple as the target tuple, the second distance between the current usage preference information of country A and the current usage preference information of country C, as well as the current usage preference information of country A and the current usage preference information of country B can be calculated the third distance between. Then, the second distance and the third distance are input into the objective function, and the corresponding objective parameters can be obtained.

在S302中,确定目标参数是否满足预设更新条件。在满足的情况下,执行S303;在不满足的情况下,执行S304。In S302, it is determined whether the target parameter satisfies a preset update condition. If satisfied, execute S303; if not, execute S304.

对于一媒体文件的正例国家来说,这些正例国家均满足该媒体文件的预设使用条件,对于该媒体文件的使用偏好是相似的,因此上述的第二距离应该足够小。而正例国家与负例国家之间对该媒体文件的使用偏好不同,因此上述的第三距离应该足够大。这样,迭代寻优的目的可转化为使得目标参数最小化。For the positive example countries of a media file, these positive example countries all meet the preset usage conditions of the media file, and the usage preferences for the media file are similar, so the above-mentioned second distance should be sufficiently small. However, countries with positive examples and countries with negative examples have different preferences for using the media file, so the above-mentioned third distance should be large enough. In this way, the purpose of iterative optimization can be transformed to minimize the target parameters.

预设更新条件可以是目标参数大于一预设值,如果目标参数大于该预设值,可表征目标参数满足预设更新条件。如果目标参数小于或等于该预设值,可表征目标参数不满足预设更新条件。The preset update condition may be that the target parameter is greater than a preset value, and if the target parameter is greater than the preset value, it can indicate that the target parameter satisfies the preset update condition. If the target parameter is less than or equal to the preset value, it can be represented that the target parameter does not meet the preset update condition.

在S303中,对该目标多元组所涉及的国家当前的使用偏好信息进行调整。In S303, the current usage preference information of the country involved in the target multigroup is adjusted.

在目标参数满足预设更新条件的情况下,可根据目标参数与预设值之间的差值,对目标多元组所涉及的国家当前的使用偏好信息进行调整,例如可采用梯度下降法进行调整,以使得国家当前的使用偏好信息更能反映国家的用户对媒体文件的使用偏好。When the target parameter satisfies the preset update condition, the current usage preference information of the country involved in the target tuple can be adjusted according to the difference between the target parameter and the preset value, for example, the gradient descent method can be used to adjust , so that the country's current usage preference information can better reflect the country's users' preference for using media files.

在S304中,保持该目标多元组所涉及的国家当前的使用偏好信息不变。In S304, the current usage preference information of the country involved in the target tuple is kept unchanged.

在目标参数不满足预设更新条件的情况下,可不对该目标多元组所涉及的国家当前的使用偏好信息进行更新。If the target parameter does not meet the preset update condition, the current usage preference information of the country involved in the target tuple may not be updated.

在S305中,确定是否存在未遍历过的多元组。在存在的情况下,返回S301;在不存在的情况下,执行S306。In S305, it is determined whether there is an untraversed tuple. In the case of existence, return to S301; in the case of no existence, execute S306.

在S306中,将目标国家当前的使用偏好信息作为该目标国家的目标使用偏好信息。In S306, the current usage preference information of the target country is used as the target usage preference information of the target country.

在存在未遍历过的多元组的情况下,可重新执行S301。本公开中,每一多元组均可用于对其涉及到的国家的使用偏好信息进行迭代更新,多元组的数量越多,使用偏好信息被迭代更新的次数越多,则最终得到的目标使用偏好信息越精确。在所有多元组均已遍历的情况下,即完成了对国家的使用偏好信息的迭代更新,可将该当前的使用偏好信息作为该目标国家的目标使用偏好信息。If there is an untraversed tuple, S301 can be re-executed. In the present disclosure, each tuple can be used to iteratively update the usage preference information of the countries involved. The more precise the preference information. In the case that all tuples have been traversed, that is, the iterative update of the country's usage preference information is completed, and the current usage preference information can be used as the target usage preference information of the target country.

通过上述技术方案,可针对每一媒体文件,建立该媒体文件对应的多元组,每一多元组中可包括多个正例国家和至少一个负例国家。根据多元组和目标函数,通过对国家的使用偏好信息进行迭代更新,可训练出各个国家对应的目标使用偏好信息。随着使用偏好信息被迭代更新的次数越多,最终得到的目标使用偏好信息越精确,越能反映目标国家的用户对媒体文件的使用偏好情况。Through the above technical solution, a tuple corresponding to the media file can be established for each media file, and each tuple can include multiple positive countries and at least one negative country. According to the tuple and the objective function, by iteratively updating the country's usage preference information, the target usage preference information corresponding to each country can be trained. As the usage preference information is iteratively updated more times, the final target usage preference information is more accurate, and can better reflect the usage preference of users in the target country for media files.

当本公开提供的媒体文件的展示方法应用于终端时,该方法还可包括:When the method for displaying media files provided by the present disclosure is applied to a terminal, the method may further include:

按照展示顺序展示多个目标媒体文件。Display multiple target media files in display order.

终端可以是目标用户使用的终端设备,例如可以是智能手机、平板电脑、个人计算机等设备。终端在确定出多个媒体文件的展示顺序后,可按照该展示顺序展示多个目标媒体文件,以使得用户首先浏览到其可能更偏好选择的目标媒体文件。The terminal may be a terminal device used by the target user, for example, a device such as a smart phone, a tablet computer, and a personal computer. After determining the display order of the multiple media files, the terminal may display the multiple target media files according to the display order, so that the user first browses to the target media file that he or she may prefer to select.

当本公开提供的媒体文件的展示方法应用于服务器时,该方法还可包括:When the method for presenting media files provided by the present disclosure is applied to a server, the method may further include:

向终端发送展示顺序的确定结果,以由终端按照展示顺序展示多个目标媒体文件。The determination result of the presentation order is sent to the terminal, so that the terminal presents a plurality of target media files according to the presentation order.

服务器在确定出多个目标媒体文件的展示顺序后,可将该展示顺序的确定结果发送至目标用户使用的终端。终端接收到该展示顺序的确定结果后,可按照该展示顺序展示多个目标媒体文件。After determining the display sequence of the multiple target media files, the server may send the determination result of the display sequence to the terminal used by the target user. After receiving the determination result of the display order, the terminal can display multiple target media files according to the display order.

基于同一发明构思,本公开还提供一种媒体文件的展示装置,图4是根据一示例性实施例示出的一种媒体文件的展示装置的框图。如图4所示,该装置400可包括:Based on the same inventive concept, the present disclosure further provides an apparatus for displaying media files. FIG. 4 is a block diagram of an apparatus for displaying media files according to an exemplary embodiment. As shown in FIG. 4, the apparatus 400 may include:

第一确定模块401,被配置成用于确定待向目标用户展示的多个目标媒体文件以及每一所述目标媒体文件对应的国家;The first determining module 401 is configured to determine a plurality of target media files to be displayed to a target user and a country corresponding to each of the target media files;

第二确定模块402,被配置成用于确定所述目标用户所在的国家;The second determining module 402 is configured to determine the country where the target user is located;

获取模块403,被配置成用于获取每一所述目标媒体文件对应的相似度特征信息,所述相似度特征信息用于表征所述目标用户所在的国家的用户与所述目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度;The obtaining module 403 is configured to obtain similarity feature information corresponding to each of the target media files, where the similarity feature information is used to represent the user in the country where the target user is located and the target media file. Similarity of usage preferences for media files among users in a country;

第三确定模块404,被配置成用于根据所述相似度特征信息,确定所述多个目标媒体文件的展示顺序。The third determining module 404 is configured to determine the display order of the multiple target media files according to the similarity feature information.

通过上述技术方案,目标媒体文件为待向目标用户展示的媒体文件,目标媒体文件对应的相似度特征信息,可用于表征目标用户所在的国家的用户与该目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度。目标用户可能更偏好选择对应的相似度特征信息高的目标媒体文件,因此,在确定多个目标媒体文件的展示顺序时,可将对应的相似度特征信息高的目标媒体文件,排在对应的相似度特征信息低的目标媒体文件之前。这样,在向用户展示多个目标媒体文件时,考虑不同国家的用户对媒体文件的使用偏好,可以使得用户首先浏览到其更偏好选择的目标媒体文件,并非按照随机的顺序对多个目标媒体文件进行排序,使得目标媒体文件的展示顺序更加符合目标用户的预期,提高目标用户的体验,并且提高目标媒体文件的展示顺序的合理性。Through the above technical solution, the target media file is a media file to be displayed to the target user, and the similarity feature information corresponding to the target media file can be used to characterize the relationship between users in the country where the target user is located and users in the country corresponding to the target media file. Similarity of usage preferences for media files. The target user may prefer to select target media files with high corresponding similarity feature information. Therefore, when determining the display order of multiple target media files, the corresponding target media files with high similarity feature information can be ranked in the corresponding target media files. Before the target media file with low similarity feature information. In this way, when multiple target media files are displayed to the user, the user's preference for using media files in different countries can be considered, so that the user can first browse to the target media file he prefers to select, instead of selecting the multiple target media files in random order. The files are sorted, so that the display order of the target media files is more in line with the expectations of the target user, the experience of the target user is improved, and the rationality of the display order of the target media files is improved.

可选地,所述获取模块包括:确定子模块,被配置成用于针对每一所述目标媒体文件,根据所述目标用户所在的国家的用户对媒体文件的目标使用偏好信息与该目标媒体文件对应的国家的用户对媒体文件的目标使用偏好信息之间的第一距离,确定该目标媒体文件对应的相似度特征信息。Optionally, the obtaining module includes: a determining sub-module configured to, for each target media file, use the target media file according to the target usage preference information of the user in the country where the target user is located and the target media file. The first distance between the target usage preference information of the media file by the users in the country corresponding to the file determines the similarity feature information corresponding to the target media file.

可选地,所述装置400还可包括:展示模块,被配置成用于按照所述展示顺序展示所述多个目标媒体文件;或者,发送模块,被配置成用于向终端发送所述展示顺序的确定结果,以由所述终端按照所述展示顺序展示所述多个目标媒体文件。Optionally, the apparatus 400 may further include: a presentation module configured to present the multiple target media files in the presentation sequence; or a sending module configured to transmit the presentation to the terminal The result of the determination of the order is to display the plurality of target media files by the terminal according to the display order.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the related method, and will not be described in detail here.

下面参考图5,其示出了适于用来实现本公开实施例的电子设备500的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring next to FIG. 5 , it shows a schematic structural diagram of an electronic device 500 suitable for implementing an embodiment of the present disclosure. Terminal devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 5 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.

如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5 , an electronic device 500 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 501 that may be loaded into random access according to a program stored in a read only memory (ROM) 502 or from a storage device 508 Various appropriate actions and processes are executed by the programs in the memory (RAM) 503 . In the RAM 503, various programs and data necessary for the operation of the electronic device 500 are also stored. The processing device 501 , the ROM 502 , and the RAM 503 are connected to each other through a bus 504 . An input/output (I/O) interface 505 is also connected to bus 504 .

通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 507 such as a computer; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509 . Communication means 509 may allow electronic device 500 to communicate wirelessly or by wire with other devices to exchange data. While FIG. 5 shows electronic device 500 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 509 , or from the storage device 508 , or from the ROM 502 . When the computer program is executed by the processing apparatus 501, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium (eg, a communications network) interconnected. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:确定待向目标用户展示的多个目标媒体文件以及每一所述目标媒体文件对应的国家;确定所述目标用户所在的国家;获取每一所述目标媒体文件对应的相似度特征信息,所述相似度特征信息用于表征所述目标用户所在的国家的用户与所述目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度;根据所述相似度特征信息,确定所述多个目标媒体文件的展示顺序。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device is made to: determine a plurality of target media files to be displayed to the target user and each of the target media files the country corresponding to the media file; determine the country where the target user is located; obtain the similarity feature information corresponding to each target media file, the similarity feature information is used to represent the user in the country where the target user is located and the user The similarity of usage preferences of the media files among users in the countries corresponding to the target media files is determined; the display order of the plurality of target media files is determined according to the similarity feature information.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言——诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and This includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider to via Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,第一确定模块还可以被描述为“目标媒体文件确定模块”。The modules involved in the embodiments of the present disclosure may be implemented in software or hardware. Wherein, the name of the module does not constitute a limitation of the module itself under certain circumstances. For example, the first determination module may also be described as a "target media file determination module".

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

根据本公开的一个或多个实施例,示例1提供了一种媒体文件的展示方法,所述方法包括:确定待向目标用户展示的多个目标媒体文件以及每一所述目标媒体文件对应的国家;确定所述目标用户所在的国家;获取每一所述目标媒体文件对应的相似度特征信息,所述相似度特征信息用于表征所述目标用户所在的国家的用户与所述目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度;根据所述相似度特征信息,确定所述多个目标媒体文件的展示顺序。According to one or more embodiments of the present disclosure, Example 1 provides a method for presenting media files, the method comprising: determining a plurality of target media files to be presented to a target user and a corresponding country; determine the country where the target user is located; obtain similarity feature information corresponding to each target media file, the similarity feature information is used to represent the user in the country where the target user is located and the target media file The similarity in the usage preferences of the media files among the users in the corresponding countries; and the display order of the multiple target media files is determined according to the similarity feature information.

根据本公开的一个或多个实施例,示例2提供了示例1的方法,所述获取每一所述目标媒体文件对应的相似度特征信息,包括:针对每一所述目标媒体文件,根据所述目标用户所在的国家的用户对媒体文件的目标使用偏好信息与该目标媒体文件对应的国家的用户对媒体文件的目标使用偏好信息之间的第一距离,确定该目标媒体文件对应的相似度特征信息。According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1. The acquiring similarity feature information corresponding to each of the target media files includes: for each of the target media files, according to the Describe the first distance between the target usage preference information for the media file by the user in the country where the target user is located and the target usage preference information for the media file by the user in the country corresponding to the target media file, and determine the similarity corresponding to the target media file characteristic information.

根据本公开的一个或多个实施例,示例3提供了示例2的方法,所述目标使用偏好信息是通过如下方式得到的:针对每一媒体文件,获取该媒体文件在多个目标国家的历史使用信息;根据该媒体文件在每个所述目标国家的所述历史使用信息,分别确定该媒体文件的正例国家和负例国家,其中,所述正例国家为满足该媒体文件的预设使用条件的目标国家,所述负例国家为不满足该媒体文件的预设使用条件的目标国家;建立该媒体文件对应的至少一个多元组,其中,每一所述多元组中包括该媒体文件的多个正例国家和该媒体文件的至少一个负例国家;根据所述多元组和目标函数,对各个所述目标国家的使用偏好信息进行迭代更新,以得到所述目标使用偏好信息。According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, wherein the target usage preference information is obtained by: for each media file, acquiring the history of the media file in multiple target countries Usage information; according to the historical usage information of the media file in each of the target countries, respectively determine the positive country and the negative country of the media file, wherein the positive country is to satisfy the preset of the media file The target country of the use condition, the negative example country is the target country that does not meet the preset use condition of the media file; establish at least one tuple corresponding to the media file, wherein each of the tuple includes the media file Multiple positive example countries of the media file and at least one negative example country of the media file; according to the tuple and the objective function, iteratively update the usage preference information of each target country to obtain the target usage preference information.

根据本公开的一个或多个实施例,示例4提供了示例3的方法,所述预设使用条件包括以下中的至少一者:媒体文件使用量大于预设使用量阈值;媒体文件播放完成量大于预设播放量阈值;媒体文件被作为背景媒体文件的次数大于预设数量阈值。According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 3, and the preset usage condition includes at least one of the following: the usage amount of the media file is greater than the preset usage amount threshold; the media file playback completion amount is greater than the preset play volume threshold; the number of times the media file is used as the background media file is greater than the preset number threshold.

根据本公开的一个或多个实施例,示例5提供了示例3的方法,每一所述目标国家分别具有各自的初始使用偏好信息;所述根据所述多元组和目标函数,对各个所述目标国家的使用偏好信息进行迭代更新,以得到所述目标使用偏好信息,包括:从未遍历过的多元组中获取其中一个多元组作为目标多元组,根据该目标多元组所涉及的国家当前的使用偏好信息和所述目标函数,确定该目标多元组对应的目标参数;在所述目标参数满足预设更新条件的情况下,对该目标多元组所涉及的国家当前的使用偏好信息进行调整;在所述目标参数不满足所述预设更新条件的情况下,保持该目标多元组所涉及的国家当前的使用偏好信息不变;在存在未遍历过的多元组的情况下,重新执行所述从未遍历过的多元组中获取其中一个多元组作为目标多元组,根据该目标多元组所涉及的国家当前的使用偏好信息和所述目标函数,确定该目标多元组对应的目标参数的步骤;在所有多元组均已遍历的情况下,将所述目标国家当前的使用偏好信息作为该目标国家的所述目标使用偏好信息。According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 3, each of the target countries has respective initial usage preference information; The usage preference information of the target country is iteratively updated to obtain the target usage preference information, including: obtaining one of the tuples from the untraversed tuples as the target tuple, according to the current state of the country involved in the target tuple. Using the preference information and the objective function, determine the target parameter corresponding to the target tuple; in the case that the target parameter satisfies the preset update condition, adjust the current usage preference information of the country involved in the target tuple; In the case that the target parameter does not meet the preset update condition, keep the current usage preference information of the country involved in the target tuple unchanged; in the case of an untraversed tuple, re-execute the Obtaining one of the tuples from the untraversed tuples as the target tuples, and determining the target parameters corresponding to the target tuples according to the current usage preference information of the countries involved in the target tuples and the objective function; In the case that all tuples have been traversed, the current usage preference information of the target country is used as the target usage preference information of the target country.

根据本公开的一个或多个实施例,示例6提供了示例5的方法,所述多元组中包括两个正例国家和一个负例国家;所述根据该目标多元组所涉及的国家当前的使用偏好信息和所述目标函数,确定该目标多元组对应的目标参数,包括:确定该目标多元组中两个正例国家当前的使用偏好信息之间的第二距离,以及该目标多元组中其中一个正例国家当前的使用偏好信息与该目标多元组中负例国家当前的使用偏好信息之间的第三距离;根据所述第二距离、所述第三距离和所述目标函数,计算出所述目标参数。According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 5, wherein the tuple includes two positive countries and one negative country; Using preference information and the objective function, determining the target parameter corresponding to the target tuple, including: determining the second distance between the current usage preference information of two positive example countries in the target tuple, and determining the second distance between the current usage preference information in the target tuple The third distance between the current usage preference information of a positive example country and the current usage preference information of the negative example country in the target tuple; according to the second distance, the third distance and the objective function, calculate out the target parameters.

根据本公开的一个或多个实施例,示例7提供了示例6的方法,所述目标函数为:According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 6, the objective function being:

Y=D1-min(a,D2)Y=D1-min(a, D2)

其中,Y表示所述目标参数,D1表示所述第二距离,D2表示所述第三距离,a表示预设的距离阈值。Wherein, Y represents the target parameter, D1 represents the second distance, D2 represents the third distance, and a represents a preset distance threshold.

根据本公开的一个或多个实施例,示例8提供了示例1至示例7中任一示例的方法,所述方法还包括:按照所述展示顺序展示所述多个目标媒体文件;或者,向终端发送所述展示顺序的确定结果,以由所述终端按照所述展示顺序展示所述多个目标媒体文件。According to one or more embodiments of the present disclosure, Example 8 provides the method of any one of Examples 1 to 7, the method further comprising: presenting the plurality of target media files in the presentation order; The terminal sends the determination result of the presentation order, so that the terminal presents the multiple target media files according to the presentation order.

根据本公开的一个或多个实施例,示例9提供了一种媒体文件的展示装置,所述装置包括:第一确定模块,被配置成用于确定待向目标用户展示的多个目标媒体文件以及每一所述目标媒体文件对应的国家;第二确定模块,被配置成用于确定所述目标用户所在的国家;获取模块,被配置成用于获取每一所述目标媒体文件对应的相似度特征信息,所述相似度特征信息用于表征所述目标用户所在的国家的用户与所述目标媒体文件对应的国家的用户之间对媒体文件的使用偏好相似度;第三确定模块,被配置成用于根据所述相似度特征信息,确定所述多个目标媒体文件的展示顺序。According to one or more embodiments of the present disclosure, Example 9 provides an apparatus for presenting media files, the apparatus comprising: a first determining module configured to determine a plurality of target media files to be presented to a target user and the country corresponding to each of the target media files; the second determining module is configured to determine the country where the target user is located; the obtaining module is configured to obtain the similarity corresponding to each of the target media files degree feature information, the similarity feature information is used to represent the similarity in the usage preference of the media file between the user in the country where the target user is located and the user in the country corresponding to the target media file; It is configured to determine the display order of the plurality of target media files according to the similarity feature information.

根据本公开的一个或多个实施例,示例10提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现示例1示例8中任一项所述方法的步骤。According to one or more embodiments of the present disclosure, Example 10 provides a computer-readable medium having stored thereon a computer program that, when executed by a processing apparatus, implements the steps of the method described in any one of Examples 1 and 8 .

根据本公开的一个或多个实施例,示例11提供了一种电子设备,包括:存储装置,其上存储有计算机程序;处理装置,用于执行所述存储装置中的所述计算机程序,以实现示例1示例8中任一项所述方法的步骤。According to one or more embodiments of the present disclosure, Example 11 provides an electronic device, including: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to Implement the steps of the method of any one of Example 1, Example 8.

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the above-mentioned disclosed concept, the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above features with the technical features disclosed in the present disclosure (but not limited to) with similar functions.

此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。Additionally, although operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although the above discussion contains several implementation-specific details, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.

尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Although the subject matter has been described in language specific to structural features and/or logical acts of method, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims. Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

Claims (11)

1. A method for presenting a media file, the method comprising:
determining a plurality of target media files to be displayed to a target user and a country corresponding to each target media file;
determining the country of the target user;
acquiring similarity characteristic information corresponding to each target media file, wherein the similarity characteristic information is used for representing the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file for the media files;
and determining the display sequence of the target media files according to the similarity characteristic information.
2. The method according to claim 1, wherein the obtaining of the similarity characteristic information corresponding to each of the target media files comprises:
and for each target media file, determining similarity characteristic information corresponding to the target media file according to a first distance between target use preference information of the user of the country where the target user is located and the target use preference information of the user of the country corresponding to the target media file.
3. The method of claim 2, wherein the target usage preference information is obtained by:
acquiring historical use information of each media file in a plurality of target countries; respectively determining a positive example country and a negative example country of the media file according to the historical use information of the media file in each target country, wherein the positive example country is a target country meeting the preset use condition of the media file, and the negative example country is a target country not meeting the preset use condition of the media file; establishing at least one tuple corresponding to the media file, wherein each tuple comprises a plurality of positive example countries of the media file and at least one negative example country of the media file;
and according to the multi-element group and the target function, performing iterative updating on the use preference information of each target country to obtain the target use preference information.
4. The method of claim 3, wherein the preset use condition comprises at least one of:
the usage amount of the media file is larger than a preset usage amount threshold value; the playing completion amount of the media file is larger than a preset playing amount threshold value; the number of times the media file is used as a background media file is greater than a preset number threshold.
5. The method of claim 3, wherein each of the target countries has respective initial usage preference information;
the iteratively updating the use preference information of each target country according to the tuple and the target function to obtain the target use preference information includes:
acquiring one of the multi-tuples from the non-traversed multi-tuples as a target multi-tuple, and determining a target parameter corresponding to the target multi-tuple according to the current use preference information of the country related to the target multi-tuple and the target function;
under the condition that the target parameters meet preset updating conditions, adjusting the current use preference information of the countries related to the target multi-component group; under the condition that the target parameter does not meet the preset updating condition, keeping the current use preference information of the country related to the target multi-element group unchanged;
under the condition that the non-traversed tuples exist, re-executing the step of acquiring one tuple from the non-traversed tuples as a target tuple, and determining a target parameter corresponding to the target tuple according to the current use preference information of the country related to the target tuple and the target function;
and under the condition that all the tuples are traversed, taking the current use preference information of the target country as the target use preference information of the target country.
6. The method of claim 5, wherein the tuple comprises two positive example countries and one negative example country;
the determining the target parameter corresponding to the target tuple according to the current usage preference information of the country related to the target tuple and the target function includes:
determining a second distance between the current use preference information of two regular countries in the target multi-tuple and a third distance between the current use preference information of one regular country in the target multi-tuple and the current use preference information of a negative regular country in the target multi-tuple;
and calculating the target parameter according to the second distance, the third distance and the target function.
7. The method of claim 6, wherein the objective function is:
Y=D1-min(a,D2)
wherein Y represents the target parameter, D1 represents the second distance, D2 represents the third distance, and a represents a preset distance threshold.
8. The method according to any one of claims 1-7, further comprising:
displaying the plurality of target media files according to the display sequence; or,
and sending the determined result of the display sequence to a terminal so that the terminal displays the target media files according to the display sequence.
9. An apparatus for presenting media files, the apparatus comprising:
the system comprises a first determination module, a second determination module and a display module, wherein the first determination module is configured to be used for determining a plurality of target media files to be displayed for a target user and a country corresponding to each target media file;
a second determination module configured to determine a country in which the target user is located;
the acquisition module is configured to acquire similarity feature information corresponding to each target media file, wherein the similarity feature information is used for representing the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file for the media files;
a third determining module configured to determine a display order of the plurality of target media files according to the similarity characteristic information.
10. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1 to 8.
11. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 8.
CN202010633845.XA 2020-07-02 2020-07-02 Media file display method, device, medium and electronic device Active CN111782831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010633845.XA CN111782831B (en) 2020-07-02 2020-07-02 Media file display method, device, medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010633845.XA CN111782831B (en) 2020-07-02 2020-07-02 Media file display method, device, medium and electronic device

Publications (2)

Publication Number Publication Date
CN111782831A true CN111782831A (en) 2020-10-16
CN111782831B CN111782831B (en) 2024-08-09

Family

ID=72759669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010633845.XA Active CN111782831B (en) 2020-07-02 2020-07-02 Media file display method, device, medium and electronic device

Country Status (1)

Country Link
CN (1) CN111782831B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153292A1 (en) * 2008-12-11 2010-06-17 Microsoft Corporation Making Friend and Location Recommendations Based on Location Similarities
US20140279202A1 (en) * 2013-03-15 2014-09-18 Sears Brands, L.L.C. Recommendations Based Upon Explicit User Similarity
CN105843865A (en) * 2016-03-17 2016-08-10 北京小米移动软件有限公司 Media file playing method and device
CN109241441A (en) * 2018-09-30 2019-01-18 北京达佳互联信息技术有限公司 Content recommendation method, device, electronic equipment and storage medium
CN110941739A (en) * 2018-09-22 2020-03-31 北京微播视界科技有限公司 Media file recommendation method and device, media file server and storage medium
CN111191055A (en) * 2020-01-02 2020-05-22 广州虎牙科技有限公司 Multimedia data processing method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153292A1 (en) * 2008-12-11 2010-06-17 Microsoft Corporation Making Friend and Location Recommendations Based on Location Similarities
US20140279202A1 (en) * 2013-03-15 2014-09-18 Sears Brands, L.L.C. Recommendations Based Upon Explicit User Similarity
CN105843865A (en) * 2016-03-17 2016-08-10 北京小米移动软件有限公司 Media file playing method and device
CN110941739A (en) * 2018-09-22 2020-03-31 北京微播视界科技有限公司 Media file recommendation method and device, media file server and storage medium
CN109241441A (en) * 2018-09-30 2019-01-18 北京达佳互联信息技术有限公司 Content recommendation method, device, electronic equipment and storage medium
CN111191055A (en) * 2020-01-02 2020-05-22 广州虎牙科技有限公司 Multimedia data processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111782831B (en) 2024-08-09

Similar Documents

Publication Publication Date Title
CN111414498B (en) Multimedia information recommendation method and device and electronic equipment
US20220394340A1 (en) Video recommendation method and apparatus, electronic device, and computer-readable medium
CN111510760B (en) Video information display method and device, storage medium and electronic equipment
CN111368185B (en) Data display method and device, storage medium and electronic equipment
CN111291220A (en) Label display method and device, electronic equipment and computer readable medium
CN111444356B (en) Recommendation method and device based on search
CN111414543B (en) Method, device, electronic equipment and medium for generating comment information sequence
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
WO2022105775A1 (en) Search processing method and apparatus, model training method and apparatus, and medium and device
CN110516159B (en) Information recommendation method and device, electronic equipment and storage medium
CN113934938A (en) Information display method, apparatus, readable medium and electronic device
CN111324700A (en) Resource recall method and device, electronic equipment and computer-readable storage medium
WO2022095942A1 (en) Information display method and apparatus, electronic device, and computer readable storage medium
CN111291258A (en) Recommended method, device, electronic device and readable medium for searching hot words
WO2024016902A1 (en) Multimedia playing method and device, storage medium, and program product
WO2023216804A1 (en) Content pushing method and apparatus, and electronic device
CN110674400A (en) Sorting method, sorting device, electronic equipment and computer-readable storage medium
CN115550723A (en) Multimedia information display method, device and electronic equipment
CN114422482A (en) Message sending method, apparatus, electronic device, storage medium and program product
CN111597439A (en) Information processing method and device and electronic equipment
WO2023134617A1 (en) Template selection method and apparatus, and electronic device and storage medium
WO2022134968A1 (en) Model training method, speech recognition method, apparatuses, medium and device
CN111782831B (en) Media file display method, device, medium and electronic device
CN111782895B (en) Retrieval processing method and device, readable medium and electronic equipment
CN111783440B (en) Intention recognition method and device, readable medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TG01 Patent term adjustment
TG01 Patent term adjustment