package textrazor

  1. Overview
  2. Docs
type t = {
  1. confidence_score : float;
  2. ending_pos : int;
  3. entity_id : string;
  4. freebase_id : string option;
  5. freebase_types : string list;
  6. id : int;
  7. matched_text : string;
  8. matching_tokens : int list;
  9. relevance_score : float;
  10. starting_pos : int;
  11. types : string list;
  12. wikidata_id : string option;
}

Data structure for entities.

val wikidata_uri : t -> Uri.t option

Gets the Wikidata URI of an entity, if applicable.

val freebase_uri : t -> Uri.t option

Gets the Freebase/Knowledge Base URI of an entity, if applicable.

val wikipedia_url : t -> Uri.t option

Gets the Wikidata URL of an entity, if applicable.