This library module provides data extraction functions that return a list of entities, relations, categories and concepts present in a given text.
categories
($text) as element(ex:category)*
Uses Yahoo's Content Analysis webservice to return a list of categories (topics) related to the text supplied as input. |
concepts-inline
($text) as item()*
Uses Yahoo's Content Analysis webservice to return the text supplied as input together with concepts (entities with corresponding wikipedia link) annotated as xml elements in the text. |
concepts
($text) as element(ex:concept)*
Uses Yahoo's Content Analysis webservice to return a list of concepts (entity found and the corresponding wikipedia link) encountered in the text supplied as input. |
entities-inline
($text) as item()*
Uses Yahoo's Content Analysis webservice to return the text supplied as input together with entities recognized annotated as xml elements in the text. |
entities
($text as xs:string) as element(ex:entity)*
Uses Yahoo's Content Analysis webservice to return a list of entities encountered in the text supplied as input. |
relations
($text) as element(ex:relation)*
Uses Yahoo's Content Analysis webservice to return a list of relations (entities found and related wikipedia links) encountered in the text supplied as input. |
declare %ann:sequential function ex:categories($text) as element(ex:category)*
Uses Yahoo's Content Analysis webservice to return a list of categories (topics) related to the text supplied as input.
See http://developer.yahoo.com/search/content/V2/contentAnalysis.html for more information.
declare %ann:sequential function ex:concepts-inline($text) as item()*
Uses Yahoo's Content Analysis webservice to return the text supplied as input together with concepts (entities with corresponding wikipedia link) annotated as xml elements in the text.
declare %ann:sequential function ex:concepts($text) as element(ex:concept)*
Uses Yahoo's Content Analysis webservice to return a list of concepts (entity found and the corresponding wikipedia link) encountered in the text supplied as input.
See http://developer.yahoo.com/search/content/V2/contentAnalysis.html for more information.
declare %ann:sequential function ex:entities-inline($text) as item()*
Uses Yahoo's Content Analysis webservice to return the text supplied as input together with entities recognized annotated as xml elements in the text.
declare %ann:sequential function ex:entities($text as xs:string) as element(ex:entity)*
Uses Yahoo's Content Analysis webservice to return a list of entities encountered in the text supplied as input.
See http://developer.yahoo.com/search/content/V2/contentAnalysis.html for more information.
declare %ann:sequential function ex:relations($text) as element(ex:relation)*
Uses Yahoo's Content Analysis webservice to return a list of relations (entities found and related wikipedia links) encountered in the text supplied as input.
See http://developer.yahoo.com/search/content/V2/contentAnalysis.html for more information.