package textrazor

  1. Overview
  2. Docs
type t = {
  1. id : int;
  2. label : string;
  3. score : float;
  4. wikidata_id : string option;
}

Data structure for topics.

val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val wikidata_uri : t -> Uri.t option

Gets the Wikidata URI of the topic, if applicable.

val wikipedia_url : t -> Uri.t option

Gets the Wikipedia URL of the topic, if applicable.

OCaml

Innovation. Community. Security.