CN110019948A - Method and apparatus for output information - Google Patents

Method and apparatus for output information Download PDF

Info

Publication number
CN110019948A
CN110019948A CN201811011159.8A CN201811011159A CN110019948A CN 110019948 A CN110019948 A CN 110019948A CN 201811011159 A CN201811011159 A CN 201811011159A CN 110019948 A CN110019948 A CN 110019948A
Authority
CN
China
Prior art keywords
entity
junior
version
information
video
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
CN201811011159.8A
Other languages
Chinese (zh)
Other versions
CN110019948B (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.)
Douyin Vision Co Ltd
Douyin Vision Beijing 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 CN201811011159.8A priority Critical patent/CN110019948B/en
Publication of CN110019948A publication Critical patent/CN110019948A/en
Application granted granted Critical
Publication of CN110019948B publication Critical patent/CN110019948B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Library & Information Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the present application discloses the method and apparatus for output information.One specific embodiment of this method includes: the search term for receiving user's input;Search term is matched with entity attributes information in the knowledge mapping pre-established, in predetermined level, and determine entity corresponding with the attribute information that search term matches as matching entities, wherein, the entity in predetermined level is for characterizing video;Determine whether search term includes version keyword for characterizing the version of video;Include in response to determination and matching entities have associated junior's entity, from the associated junior's entity of matching entities, determines junior's entity of corresponding attribute information Yu version Keywords matching, and export the relevant information of identified junior entity.This embodiment improves the accuracys for the information that search video is exported.

Description

Method and apparatus for output information
Technical field
The invention relates to field of computer technology, and in particular to the method and apparatus for output information.
Background technique
Knowledge mapping (Knowledge Graph) is the knowledge that one kind is called semantic network (semantic network) Library has a knowledge base of digraph structure, wherein the node on behalf entity (entity) or concept of figure (concept), and the side of figure represents the various semantic relations between entity/concept.Knowledge mapping can be applied to various fields, Such as the fields such as information search, information recommendation.Using knowledge mapping, its available with the entity associated for characterizing a certain information His entity, so as to accurately obtain the other information with the information association.In the prior art, knowledge mapping is commonly used In search field, the accuracy of search result can be improved.
Summary of the invention
The embodiment of the present application proposes the method and apparatus for output information.
In a first aspect, the embodiment of the present application provides a kind of method for output information, this method comprises: receiving user The search term of input;By search term and entity attributes information in the knowledge mapping that pre-establishes, in predetermined level into Row matching, and determine entity corresponding with the attribute information that search term matches as matching entities, wherein in default etc. The entity of grade is for characterizing video;Determine whether search term includes version keyword for characterizing the version of video;In response to Determination includes and there is matching entities associated junior's entity to determine corresponding from the associated junior's entity of matching entities Junior's entity of attribute information and version Keywords matching, and export the relevant information of identified junior entity.
In some embodiments, determine search term whether include version keyword for characterizing the version of video it Afterwards, this method further include: in response to determining that search term does not include the version keyword for characterizing the version of video and matching is real Body has associated junior's entity, from the associated junior's entity of matching entities, selects preset default junior entity, and The relevant information of output default junior's entity.
In some embodiments, version keyword comprises at least one of the following: person names, time-critical word, number are closed Keyword.
In some embodiments, determine whether search term includes version keyword for characterizing the version of video, comprising: At least one keyword is extracted from search term;It include version keyword at least one keyword in response to determining, determination is searched Rope word includes version keyword.
In some embodiments, relevant information comprises at least one of the following: the title of the video of junior's entity characterization, junior The version information of the video of entity characterization, the type information of the video of junior's entity characterization, the video of junior's entity characterization are related People information.
In some embodiments, the entity in predetermined level is for characterizing long video.
Second aspect, the embodiment of the present application provide a kind of device for output information, which includes: to receive list Member is configured to receive the search term of user's input;Matching unit is configured to search term and the knowledge mapping pre-established In, the entity attributes information in predetermined level matched, and the determining attribute information pair to match with search term The entity answered is as matching entities, wherein the entity in predetermined level is for characterizing video;Determination unit is configured to really Determine whether search term includes version keyword for characterizing the version of video;First output unit is configured in response to really Surely include and there is matching entities associated junior's entity to determine corresponding category from the associated junior's entity of matching entities Property information and version Keywords matching junior's entity, and the relevant information of junior entity determined by exporting.
In some embodiments, device further include: the second output unit is configured in response to determine that search term does not wrap It includes the version keyword of the version for characterizing video and matching entities has associated junior's entity, be associated with from matching entities Junior's entity in, select preset default junior entity, and output default junior's entity relevant information.
In some embodiments, version keyword comprises at least one of the following: person names, time-critical word, number are closed Keyword.
In some embodiments, determination unit includes: extraction module, is configured to extract at least one pass from search term Keyword;Determining module is configured in response to determine at least one keyword to include version keyword, determines that search term includes Version keyword.
In some embodiments, relevant information comprises at least one of the following: the title of the video of junior's entity characterization, junior The version information of the video of entity characterization, the type information of the video of junior's entity characterization, the video of junior's entity characterization are related People information.
In some embodiments, the entity in predetermined level is for characterizing long video.
The third aspect, the embodiment of the present application provide a kind of server, which includes: one or more processors; Storage device is stored thereon with one or more programs;When one or more programs are executed by one or more processors, so that One or more processors realize the method as described in implementation any in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should The method as described in implementation any in first aspect is realized when computer program is executed by processor.
Method and apparatus provided by the embodiments of the present application for output information, by the search term that inputs user and pre- Entity attributes information in the knowledge mapping first established, in predetermined level is matched, with determination and search term phase The matching entities matched, wherein the then entity in knowledge mapping determines whether search term includes version key for characterizing video Word from the associated junior's entity of matching entities, determines corresponding attribute information and version Keywords matching if including Junior's entity, and the relevant information of identified junior entity is exported, so as to by using version keyword, Yi Jili The relationship between superior and subordinate between entity for including with knowledge mapping improves the accuracy for the information that search video is exported.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for output information of the embodiment of the present application;
Fig. 3 is the schematic diagram according to an application scenarios of the method for output information of the embodiment of the present application;
Fig. 4 is the flow chart according to another embodiment of the method for output information of the embodiment of the present application;
Fig. 5 is the structural schematic diagram according to one embodiment of the device for output information of the embodiment of the present application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the server of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can the method for output information using the embodiment of the present application or the device for output information Exemplary system architecture 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications can be installed, such as video playback class is answered on terminal device 101,102,103 With, web browser applications, searching class application, instant messaging tools, social platform software etc..
Terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102,103 is hard When part, it can be various electronic equipments, including but not limited to smart phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, pocket computer on knee and desktop computer etc..It, can be with when terminal device 101,102,103 is software It is mounted in above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into (such as providing distribution in it The software or software module of formula service), single software or software module also may be implemented into.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as search to 101,102,103 transmission of terminal device The background information processing server that rope word is handled.Background information processing server can be to the search term received at Reason, and obtain processing result (relevant information of junior's entity determined by such as) and export.
It should be noted that the method provided by the embodiment of the present application for output information is generally held by server 105 Row, correspondingly, the device for output information is generally positioned in server 105.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software To be implemented as multiple softwares or software module (such as providing the software of Distributed Services or software module), also may be implemented At single software or software module.It is not specifically limited herein.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the method for output information according to the application is shown 200.This is used for the method for output information, comprising the following steps:
Step 201, the search term of user's input is received.
In the present embodiment, can lead to for the executing subject of the method for output information (such as server shown in FIG. 1) Wired connection mode or radio connection is crossed to receive electronic equipment that user uses at it (such as terminal shown in FIG. 1 is set It is standby) input search term.Wherein, the quantity of search term can be at least one.Search term can be the word for information search Remittance, phrase or sentence etc..The form of search term can include but is not limited to following at least one: any language (such as Chinese, English etc.) text, number, symbol etc..
Step 202, by entity attributes information in search term and the knowledge mapping pre-established, in predetermined level It is matched, and determines entity corresponding with the attribute information that search term matches as matching entities.
In the present embodiment, based on received search term in step 201, above-mentioned executing subject can first by search term with In the knowledge mapping pre-established, the entity attributes information in predetermined level is matched, to obtain matching result.It is logical Often, the entity in knowledge mapping can be used for characterizing certain things or concept (such as characterization personage, place, time, information etc.). The form of entity may include following at least one: number, text, symbol etc..In the present embodiment, in above-mentioned knowledge mapping It can have incidence relation between entity, also, the entity that above-mentioned knowledge mapping includes can be divided at least two in advance The grade of the relationship between superior and subordinate of associated entity is characterized, each grade corresponds at least one entity.In predetermined level Entity can be used for characterizing video.As an example, above-mentioned predetermined level can be highest level, the entity tool in highest level Related junior's entity, and without associated upper entity.In knowledge mapping, the data knot of triple form can be passed through Structure characterizes the incidence relation between entity, such as triple is " entity A-relation-entity B ", wherein entity A is entity B Upper entity, entity B are junior's entity of entity A.As an example it is supposed that entity A characterizes certain series of movies " XXX ", entity A Junior's entity includes entity B and entity C, characterization film " XXX mono- " and " XXX bis- " is respectively used to, for characterizing entity A and entity The triple of the incidence relation of B can be " entity A-series-entity B ", for characterizing the incidence relation of entity A and entity C Triple can be " entity A-series-entity C ".Wherein, " series ", which is used to characterize the relationship of the video of two entities characterization, is Wherein one relationship in series video and series video.
In the present embodiment, entity attributes information can be information relevant to the video of entity characterization, may include But it is not limited to following at least one: personage's (such as video production person, performer, director etc.) information relevant to video and video Relevant time (such as show time, shooting time etc.) information, video source-information (such as video broadcast address, view Web site name etc. where frequency) and other relevant to video content information (such as video profile, stage photo, poster picture Deng) etc..In general, in knowledge mapping, the corresponding relationship of entity and attribute information can with the data structure of triple form come It indicates, i.e., " entity-attribute-attribute value ", wherein entity attributes information may include above-mentioned attribute-attribute value.For example, certain Triple can be " abc123- title-XXX ", wherein " abc123 " is the entity for characterizing film " XXX ", and " title " is One attribute, " XXX " are attribute value.
In some optional implementations of the present embodiment, the entity in predetermined level can be used for characterizing long view Frequently.In general, the video of entity characterization can be long video or short-sighted frequency.And in this implementation, the reality in predetermined level The characterized video of body can be long video.Wherein, long video can be the video that play time is more than or equal to preset time threshold; Alternatively, long video can be including picture frame quantity be more than or equal to preset quantity threshold value video.In predetermined level Entity.Correspondingly, short-sighted frequency can be the video that play time is less than preset time threshold;Alternatively, short-sighted frequency can be including Picture frame quantity be less than preset quantity threshold value video.
In the present embodiment, above-mentioned executing subject can be according to various methods by search term and in the entity of predetermined level Attribute information matched, obtain matching result.Wherein, the quantity of matching result can be multiple, each matching result pair It should an entity in knowledge mapping.For example, entity attributes information may include that text information is (such as each for characterizing The information of the title of performer, information for video content to be described etc.).Above-mentioned executing subject can be by corresponding attribute The text information that information includes includes that the entity of above-mentioned search term is determined as matching entities.It should be noted that when search term When quantity is at least one, the text information that attribute information can be included by above-mentioned executing subject includes at least one above-mentioned search The entity of whole search terms or preset quantity search term in word is determined as matching entities.
Optionally, received search term and the entity attributes information in knowledge mapping can be included by above-mentioned executing subject Text information carry out similarity calculation, the corresponding entity of similarity for the preset similarity threshold that will be greater than or equal to be determined as with The matching entities that search term matches.Specifically, above-mentioned executing subject can be according to the algorithm of existing determining text similarity (such as Jie Kade (Jaccard) similarity algorithm, cosine similarity algorithm, simhash algorithm etc.) calculates search term and entity Attribute information include text information between similarity.Optionally, the text information that entity attributes information includes can be with Including at least one keyword.Above-mentioned executing subject can be according to the existing various algorithms for calculating the similarity between keyword (such as editing distance (Levenshtein Distance) algorithm, based on vector space model (Vector Space Model, VSM COS distance algorithm) etc.), calculate the similarity conduct between search term at least one keyword corresponding with entity With result.
Step 203, determine whether search term includes version keyword for characterizing the version of video.
In the present embodiment, above-mentioned executing subject can determine whether search term includes version for characterizing the version of video This keyword.Specifically, version keyword can be for distinguishing the similar video of content keyword (such as number, name Deng).As an example, version keyword can be digital word, such as " one ", " first " etc..Above-mentioned executing subject can determine It whether include digital word in search term, if including, it is determined that search term includes version keyword.
Step 204, in response to determination include and matching entities have associated junior's entity, from associated with matching entities In junior's entity, junior's entity of corresponding attribute information Yu version Keywords matching is determined, and export identified junior The relevant information of entity.
In the present embodiment, above-mentioned executing subject can be in response to determining that search term includes version keyword and matching entities With associated junior's entity, first from the associated junior's entity of matching entities, corresponding attribute information and version are determined Junior's entity of Keywords matching.Specifically, junior's entity can be used for characterizing video.For with the associated junior of matching entities Entity, above-mentioned executing subject can determine whether junior's entity attributes information includes above-mentioned version keyword, if including, Then determine junior's entity attributes information and above-mentioned version Keywords matching.
Then, above-mentioned executing subject can export the relevant information of identified junior entity.Wherein, relevant information can be with It is the information that junior's entity attributes information includes, is also possible to relevant to junior's entity other information and (such as obtains in advance , comment, the scoring of video that user characterizes junior's entity etc.).As an example, attribute information may include various types of Sub-information, sub-information can have corresponding mark or serial number, to distinguish the classification of sub-information.Above-mentioned executing subject can be with subordinate Property information in extract pre-set categories sub-information as relevant information.
In some optional implementations of the present embodiment, the relevant information of junior's entity can include but is not limited to Lower at least one: the title of the video of junior's entity characterization, the version information of the video of junior's entity characterization (such as " are deleted Version ", " 86 years versions " etc.), type information (such as " science fiction ", " swordsman " etc.), the junior's entity table of the video of junior's entity characterization The relevant people information (such as performer's title, director's title etc.) of the video of sign.
Optionally, above-mentioned executing subject can export the relevant information of junior's entity in various ways.For example, by junior's reality The relevant information of body is shown on the display connecting with above-mentioned executing subject, or the relevant information of junior's entity is output to On the terminal device that above-mentioned user uses.
In some optional implementations of the present embodiment, after step 203, above-mentioned executing subject can be in response to Determine search term not and include that version keyword and matching entities for characterizing the version of video have associated junior's entity, from In the associated junior's entity of matching entities, preset default junior entity, and the correlation of output default junior's entity are selected Information.Wherein, default junior's entity can be the preassigned entity of technical staff or above-mentioned executing subject is selected Meet the entity of preset condition.As an example, each junior's entity can have it is preset put in order, preset condition can be with Be: entity is arranged in the above-mentioned first place to put in order or last bit.Alternatively, preset condition may is that the upper of the video of entity characterization It is earliest to reflect the time.
With continued reference to the signal that Fig. 3, Fig. 3 are according to the application scenarios of the method for output information of the present embodiment Figure.In the application scenarios of Fig. 3, server 301 receive first search term 303 that user inputs in terminal device 302 (such as " XXX 98 editions ").Then, by the mesh in the target entity set 3041 in search term 303 and the knowledge mapping 304 pre-established Mark entity attributes information is matched, and the matching entities 30411 for characterizing video display series acute " XXX " are obtained.Wherein, target Entity is the entity in highest level (without associated upper entity), and the attribute information of matching entities 30411 includes search The word " XXX " that word 303 includes.Subsequently, server 301 determines that search term 303 includes version keyword 3031 (i.e. comprising number The word " 98 editions " of word).Then, server 301 from the associated junior's entity of matching entities 30,411 304111,304112, In 304113, the text information " 98 editions director y of XXX act the leading role z ... " for determining that 304111 attribute information includes includes that version is closed Keyword 3031, it is determined that the attribute information of junior's entity 304111 is matched with version keyword 3031.Finally, by junior's entity 304111 relevant information 305 (such as junior's entity 304111 characterize video title and the web site name where video) it is defeated Out to showing on terminal device 302.
The method provided by the above embodiment of the application passes through the search term for inputting user and the knowledge graph pre-established Entity attributes information in spectrum, in predetermined level is matched, to determine the matching entities to match with search term, In, then the entity in knowledge mapping determines whether search term includes version keyword for characterizing video, if including, from In the associated junior's entity of matching entities, junior's entity of corresponding attribute information Yu version Keywords matching is determined, and The relevant information of junior's entity determined by exporting, so as to by using version keyword, and utilization knowledge mapping packet The relationship between superior and subordinate between entity included improves the accuracy for the information that search video is exported.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for output information.The use In the process 400 of the method for output information, comprising the following steps:
Step 401, the search term of user's input is received.
In the present embodiment, step 401 and the step 201 in Fig. 2 corresponding embodiment are almost the same, and which is not described herein again.
Step 402, by entity attributes information in search term and the knowledge mapping pre-established, in predetermined level It is matched, and determines entity corresponding with the attribute information that search term matches as matching entities.
In the present embodiment, step 402 and the step 202 in Fig. 2 corresponding embodiment are almost the same, and which is not described herein again.
Step 403, at least one keyword is extracted from search term.
In the present embodiment, above-mentioned executing subject can be using existing various algorithm (such as the TF-ID for extracting keywords (Term Frequency-Inverse Document Frequency, word frequency-inverse file frequency) algorithm is based on (Topic Model algorithm etc.)), at least one keyword is extracted from search term.Wherein, the algorithm of said extracted keyword is current The well-known technique studied and applied extensively, details are not described herein.
Step 404, in response to determining to include version keyword at least one keyword, determine that search term includes that version is closed Keyword.
In the present embodiment, above-mentioned executing subject can include that version is crucial in response to determining at least one keyword Word determines that search term includes version keyword.Version keyword may include following at least one: for characterizing person names Vocabulary, time-critical word, numeric key word etc..Wherein, time-critical word can be the keyword for characterizing the time, such as: " 1986 ", " summer time " etc..Numeric key word can be the keyword including number, such as: " one ", " first ", " second Season " etc..In addition, above-mentioned executing subject can extract people according to the existing various algorithms for extracting person names from search term Name claims, if it is possible to extract person names, it is determined that includes version keyword (the personage's name extracted in search term Claim).
Step 405, in response to determining that search term includes version keyword, from the associated junior's entity of matching entities, It determines junior's entity of corresponding attribute information Yu version Keywords matching, and exports the related letter of identified junior entity Breath.
In the present embodiment, step 405 and the step 204 in Fig. 2 corresponding embodiment are almost the same, and which is not described herein again.
Figure 4, it is seen that the method for output information compared with the corresponding embodiment of Fig. 2, in the present embodiment Process 400 highlight and extract at least one keyword from search term, and determine that search term is according to extracted keyword It is no to include the steps that version keyword.The scheme of the present embodiment description more accurately can determine in search term whether wrap as a result, Version keyword is included, so as to further increase the accuracy for the information that search video is exported.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind for exporting letter One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the device 500 for output information of the present embodiment includes: receiving unit 501, it is configured to connect Receive the search term of user's input;Matching unit 502, be configured to by search term with it is in the knowledge mapping that pre-establishes, be in The entity attributes information of predetermined level is matched, and determines that entity corresponding with the attribute information that search term matches is made For matching entities, wherein the entity in predetermined level is for characterizing video;Determination unit 503, is configured to determine search term It whether include version keyword for characterizing the version of video;First output unit 504, being configured in response to determination includes And there is matching entities associated junior's entity to determine corresponding attribute information from the associated junior's entity of matching entities With junior's entity of version Keywords matching, and the relevant information of junior's entity determined by output.
In the present embodiment, receiving unit 501 can receive user by wired connection mode or radio connection In the search term for electronic equipment (such as terminal device shown in FIG. 1) input that it is used.Wherein, the quantity of search term can be At least one.Search term can be vocabulary, phrase or sentence etc. for information search.The form of search term may include but It is not limited to following at least one: text, number, the symbol etc. of any language (such as Chinese, English etc.).
In the present embodiment, it is based on the received search term of receiving unit 501, matching unit 502 can be first by search term With the knowledge mapping that pre-establishes, the entity attributes information in predetermined level is matched, to obtain matching result. In general, the entity in knowledge mapping can be used for characterizing certain things or concept (such as characterization personage, place, time, information Deng).The form of entity may include following at least one: number, text, symbol etc..In the present embodiment, above-mentioned knowledge mapping In entity between can have incidence relation, also, the entity that above-mentioned knowledge mapping includes can be divided into advance at least The grade of the relationship between superior and subordinate of two associated entities of characterization, each grade correspond at least one entity.In default etc. The entity of grade can be used for characterizing video.As an example, above-mentioned predetermined level can be highest level, the reality in highest level Body has associated junior's entity, and without associated upper entity.In knowledge mapping, the number of triple form can be passed through The incidence relation between entity is characterized according to structure, such as triple is " entity A-relation-entity B ", wherein entity A is real The upper entity of body B, entity B are junior's entity of entity A.
In the present embodiment, entity attributes information can be information relevant to the video of entity characterization, may include But it is not limited to following at least one: personage's (such as video production person, performer, director etc.) information relevant to video and video Relevant time (such as show time, shooting time etc.) information, video source-information (such as video broadcast address, view Web site name etc. where frequency) and other relevant to video content information (such as video profile, stage photo, poster picture Deng) etc..In general, in knowledge mapping, the corresponding relationship of entity and attribute information can with the data structure of triple form come It indicates, i.e., " entity-attribute-attribute value ", wherein entity attributes information may include above-mentioned attribute-attribute value.For example, certain Triple can be " abc123- title-XXX ", wherein " abc123 " is the entity for characterizing film " XXX ", and " title " is One attribute, " XXX " are attribute value.
In the present embodiment, matching unit 502 can be according to various methods by search term and in the entity of predetermined level Attribute information matched, obtain matching result.Wherein, the quantity of matching result can be multiple, each matching result pair It should an entity in knowledge mapping.For example, entity attributes information may include text information (such as the name of each performer Claim, to description of video content etc.).The text information that corresponding attribute information includes can include by above-mentioned matching unit 502 The entity of above-mentioned search term is determined as matching entities.It should be noted that when the quantity of search term is at least one, above-mentioned The text information that can include by attribute information with unit 502 includes whole search terms or pre- at least one above-mentioned search term If the entity of quantity search term is determined as matching entities.
In the present embodiment, determination unit 503 can determine whether search term includes version for characterizing the version of video This keyword.Specifically, version keyword can be for distinguishing the similar video of content keyword (such as number, the time, Name etc.).As an example, version keyword can be digital word, such as " one ", " first " etc..Above-mentioned determination unit 503 can To determine whether including digital word in search term, if including, it is determined that search term includes version keyword.
In the present embodiment, the first output unit 504 can be in response to determining that search term includes version keyword and matching Entity have associated junior's entity, first from the associated junior's entity of matching entities, determine corresponding attribute information with Junior's entity of version Keywords matching.Specifically, matching entities can have associated junior's entity, and junior's entity can be used In characterization video.For with the associated junior's entity of matching entities, above-mentioned first output unit 504 can determine junior's entity Attribute information whether include above-mentioned version keyword, if including, it is determined that junior's entity attributes information and above-mentioned version This Keywords matching.
Then, above-mentioned first output unit 504 can export the relevant information of identified junior entity.Wherein, related Information can be the information that entity attributes information includes.Attribute information may include various types of sub-informations, and sub-information can With with corresponding mark or serial number, to distinguish the classification of sub-information.Above-mentioned first output unit 504 can be in dependence information The sub-information of pre-set categories is extracted as relevant information.
In some optional implementations of the present embodiment, which can also include: the second output unit (figure In be not shown), be configured in response to determine search term do not include for the version keyword for characterizing the version of video and matching Entity has associated junior's entity, from the associated junior's entity of matching entities, selects preset default junior entity, with And the relevant information of output default junior's entity.
In some optional implementations of the present embodiment, version keyword may include following at least one: personage Title, time-critical word, numeric key word.
In some optional implementations of the present embodiment, determination unit 503 may include: extraction module (in figure not Show), it is configured to extract at least one keyword from search term;Determining module (not shown), is configured to respond to Include version keyword in determining at least one keyword, determines that search term includes version keyword.
In some optional implementations of the present embodiment, relevant information may include following at least one: junior is real The type information for the video that the title of the video of body surface sign, version information, the junior's entity of the video of junior's entity characterization characterize, The relevant people information of video of junior's entity characterization.
In some optional implementations of the present embodiment, the entity in predetermined level can be used for characterizing long view Frequently.
The device provided by the above embodiment of the application passes through the search term for inputting user and the knowledge graph pre-established Entity attributes information in spectrum, in predetermined level is matched, to determine the matching entities to match with search term, In, then the entity in knowledge mapping determines whether search term includes version keyword for characterizing video, if including, from In the associated junior's entity of matching entities, junior's entity of corresponding attribute information Yu version Keywords matching is determined, and The relevant information of junior's entity determined by exporting, so as to by using version keyword, and utilization knowledge mapping packet The relationship between superior and subordinate between entity included improves the accuracy for the information that search video is exported.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the server for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Server shown in Fig. 6 is only an example, should not function and use scope band to the embodiment of the present application Carry out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes Above-mentioned function.
It should be noted that computer-readable medium described herein can be computer-readable signal media or meter Calculation machine readable medium either the two any combination.Computer-readable medium for example may be-but not limited to- Electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.It is computer-readable The more specific example of medium can include but is not limited to: have electrical connection, the portable computer magnetic of one or more conducting wires Disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or sudden strain of a muscle Deposit), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned appoint The suitable combination of meaning.In this application, computer-readable medium can be any tangible medium for including or store program, the journey Sequence can be commanded execution system, device or device use or in connection.And in this application, it is computer-readable Signal media may include in a base band or as carrier wave a part propagate data-signal, wherein carrying computer can The program code of reading.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, optical signal or Above-mentioned any appropriate combination.Computer-readable signal media can also be any calculating other than computer-readable medium Machine readable medium, the computer-readable medium can be sent, propagated or transmitted for by instruction execution system, device or device Part uses or program in connection.The program code for including on computer-readable medium can use any Jie appropriate Matter transmission, including but not limited to: wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include receiving unit, matching unit, determination unit and the first output unit.Wherein, the title of these units is under certain conditions simultaneously The restriction to the unit itself is not constituted, for example, receiving unit is also described as " receiving the list of the search term of user's input Member ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in server described in above-described embodiment;It is also possible to individualism, and without in the supplying server.It is above-mentioned Computer-readable medium carries one or more program, when said one or multiple programs are executed by the server, So that the server: receiving the search term of user's input;By search term with it is in the knowledge mapping that pre-establishes, in default etc. The entity attributes information of grade is matched, and determines entity corresponding with the attribute information that search term matches as matching Entity, wherein the entity in predetermined level is for characterizing video;Determine whether search term includes version for characterizing video Version keyword;Include in response to determination and matching entities have associated junior's entity, from matching entities it is associated under In grade entity, junior's entity of corresponding attribute information Yu version Keywords matching is determined, and export identified junior's reality The relevant information of body.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (14)

1. a kind of method for output information, comprising:
Receive the search term of user's input;
By entity attributes information progress in described search word and the knowledge mapping pre-established, in predetermined level Match, and determine entity corresponding with the attribute information that described search word matches as matching entities, wherein in described pre- If the entity of grade is for characterizing video;
Determine whether described search word includes version keyword for characterizing the version of video;
Include in response to determination and the matching entities have associated junior's entity, from the associated junior of the matching entities In entity, junior's entity of corresponding attribute information Yu the version Keywords matching is determined, and export identified junior The relevant information of entity.
2. according to the method described in claim 1, whether including for characterizing video in the determining described search word wherein After the version keyword of version, the method also includes:
In response to determining that described search word does not include the version keyword for characterizing the version of video and the matching entities have Related junior's entity selects preset default junior entity from the associated junior's entity of the matching entities, and Export the relevant information of default junior's entity.
3. according to the method described in claim 1, wherein, version keyword comprises at least one of the following: person names, time close Keyword, numeric key word.
4. according to the method described in claim 3, wherein, whether the determining described search word includes version for characterizing video This version keyword, comprising:
At least one keyword is extracted from described search word;
In response to determining at least one described keyword including the version keyword, determine that described search word includes that version is closed Keyword.
5. according to the method described in claim 1, wherein, relevant information comprises at least one of the following: the view of junior's entity characterization Type information, the junior's entity table for the video that the title of frequency, version information, the junior's entity of the video of junior's entity characterization characterize The relevant people information of the video of sign.
6. method described in one of -5 according to claim 1, wherein the entity in predetermined level is for characterizing long video.
7. a kind of device for output information, comprising:
Receiving unit is configured to receive the search term of user's input;
Matching unit is configured to entity in described search word and the knowledge mapping pre-established, in predetermined level Attribute information matched, and determine that corresponding with the attribute information that described search word matches entity is real as matching Body, wherein the entity in the predetermined level is for characterizing video;
Determination unit is configured to determine whether described search word includes version keyword for characterizing the version of video;
First output unit, be configured in response to determination include and the matching entities have associated junior's entity, from In the associated junior's entity of matching entities, determine that the junior of corresponding attribute information and the version Keywords matching is real Body, and export the relevant information of identified junior entity.
8. device according to claim 7, wherein described device further include:
Second output unit is configured in response to determine that described search word does not include the version pass for characterizing the version of video Keyword and the matching entities have associated junior's entity, and from the associated junior's entity of the matching entities, selection is pre- If default junior entity, and output it is described default junior's entity relevant information.
9. device according to claim 7, wherein version keyword comprises at least one of the following: person names, time close Keyword, numeric key word.
10. device according to claim 9, wherein the determination unit includes:
Extraction module is configured to extract at least one keyword from described search word;
Determining module is configured in response to determine that at least one described keyword include the version keyword, determines institute Stating search term includes version keyword.
11. device according to claim 7, wherein relevant information comprises at least one of the following: the view of junior's entity characterization Type information, the junior's entity table for the video that the title of frequency, version information, the junior's entity of the video of junior's entity characterization characterize The relevant people information of the video of sign.
12. the device according to one of claim 7-11, wherein the entity in predetermined level is for characterizing long video.
13. a kind of server, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Such as method as claimed in any one of claims 1 to 6.
CN201811011159.8A 2018-08-31 2018-08-31 Method and apparatus for outputting information Active CN110019948B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811011159.8A CN110019948B (en) 2018-08-31 2018-08-31 Method and apparatus for outputting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811011159.8A CN110019948B (en) 2018-08-31 2018-08-31 Method and apparatus for outputting information

Publications (2)

Publication Number Publication Date
CN110019948A true CN110019948A (en) 2019-07-16
CN110019948B CN110019948B (en) 2022-04-26

Family

ID=67188466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811011159.8A Active CN110019948B (en) 2018-08-31 2018-08-31 Method and apparatus for outputting information

Country Status (1)

Country Link
CN (1) CN110019948B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110580291A (en) * 2019-07-29 2019-12-17 用友网络科技股份有限公司 Intelligent searching method based on ERP customer service knowledge graph and computer equipment
CN110784768A (en) * 2019-10-17 2020-02-11 珠海格力电器股份有限公司 Multimedia resource playing method, storage medium and electronic equipment
CN111341308A (en) * 2020-02-12 2020-06-26 百度在线网络技术(北京)有限公司 Method and apparatus for outputting information
CN111400507A (en) * 2020-06-05 2020-07-10 浙江口碑网络技术有限公司 Entity matching method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007300660A (en) * 2007-06-20 2007-11-15 Hitachi Ltd Automatic video recorder of broadcast video image
CN103268345A (en) * 2013-05-27 2013-08-28 慈文传媒集团股份有限公司 Method and device for retrieving film and television data
CN103678668A (en) * 2013-12-24 2014-03-26 乐视网信息技术(北京)股份有限公司 Prompting method of relevant search result, server and system
CN103729402A (en) * 2013-11-22 2014-04-16 浙江大学 Method for establishing mapping knowledge domain based on book catalogue
EP2736250A2 (en) * 2012-11-21 2014-05-28 Hon Hai Precision Industry Co., Ltd. Video content search method, system, and device
CN104199885A (en) * 2014-08-22 2014-12-10 广州三星通信技术研究有限公司 Device and method for acquiring relevant content of video files
CN104484459A (en) * 2014-12-29 2015-04-01 北京奇虎科技有限公司 Method and device for combining entities in knowledge map
CN105956053A (en) * 2016-04-27 2016-09-21 海信集团有限公司 Network information-based search method and apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007300660A (en) * 2007-06-20 2007-11-15 Hitachi Ltd Automatic video recorder of broadcast video image
EP2736250A2 (en) * 2012-11-21 2014-05-28 Hon Hai Precision Industry Co., Ltd. Video content search method, system, and device
CN103268345A (en) * 2013-05-27 2013-08-28 慈文传媒集团股份有限公司 Method and device for retrieving film and television data
CN103729402A (en) * 2013-11-22 2014-04-16 浙江大学 Method for establishing mapping knowledge domain based on book catalogue
CN103678668A (en) * 2013-12-24 2014-03-26 乐视网信息技术(北京)股份有限公司 Prompting method of relevant search result, server and system
CN104199885A (en) * 2014-08-22 2014-12-10 广州三星通信技术研究有限公司 Device and method for acquiring relevant content of video files
CN104484459A (en) * 2014-12-29 2015-04-01 北京奇虎科技有限公司 Method and device for combining entities in knowledge map
CN105956053A (en) * 2016-04-27 2016-09-21 海信集团有限公司 Network information-based search method and apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110580291A (en) * 2019-07-29 2019-12-17 用友网络科技股份有限公司 Intelligent searching method based on ERP customer service knowledge graph and computer equipment
CN110784768A (en) * 2019-10-17 2020-02-11 珠海格力电器股份有限公司 Multimedia resource playing method, storage medium and electronic equipment
CN110784768B (en) * 2019-10-17 2021-06-15 珠海格力电器股份有限公司 Multimedia resource playing method, storage medium and electronic equipment
CN111341308A (en) * 2020-02-12 2020-06-26 百度在线网络技术(北京)有限公司 Method and apparatus for outputting information
CN111341308B (en) * 2020-02-12 2023-07-21 百度在线网络技术(北京)有限公司 Method and device for outputting information
CN111400507A (en) * 2020-06-05 2020-07-10 浙江口碑网络技术有限公司 Entity matching method and device

Also Published As

Publication number Publication date
CN110019948B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
CN109189938A (en) Method and apparatus for updating knowledge mapping
CN108153901A (en) The information-pushing method and device of knowledge based collection of illustrative plates
CN110019948A (en) Method and apparatus for output information
CN109271556A (en) Method and apparatus for output information
CN108228906B (en) Method and apparatus for generating information
US20200342016A1 (en) Systems and methods for coverage analysis of textual queries
CN109543058A (en) For the method for detection image, electronic equipment and computer-readable medium
CN109255037A (en) Method and apparatus for output information
US20150309988A1 (en) Evaluating Crowd Sourced Information Using Crowd Sourced Metadata
CN109255036A (en) Method and apparatus for output information
CN109033464A (en) Method and apparatus for handling information
CN109255035A (en) Method and apparatus for constructing knowledge mapping
CN109299477A (en) Method and apparatus for generating text header
CN108933730A (en) Information-pushing method and device
CN110413872A (en) Method and apparatus for showing information
CN109858045A (en) Machine translation method and device
CN110245298A (en) Method and apparatus for pushed information
CN109862100A (en) Method and apparatus for pushed information
CN109271557A (en) Method and apparatus for output information
CN109582825A (en) Method and apparatus for generating information
CN106681598A (en) Information input method and device
US10073900B2 (en) Presenting a trusted tag cloud
CN110059172B (en) Method and device for recommending answers based on natural language understanding
CN108038172A (en) Searching method and device based on artificial intelligence
CN109241344A (en) Method and apparatus for handling information

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.