package textrazor

  1. Overview
  2. Docs
module Options : sig ... end

Module for analysis options.

type t = {
  1. categories : Category.t list;
  2. coarse_topics : Topic.t list;
  3. cleaned_text : string option;
  4. entailments : Entailment.t list;
  5. entities : Entity.t list;
  6. language : string;
  7. phrases : Phrase.t list;
  8. properties : Property.t list;
  9. raw_text : string option;
  10. relations : Relation.t list;
  11. sentences : Sentence.t list;
  12. topics : Topic.t list;
}

Data structure for analysis results.

val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val post : [ `Text of string | `Uri of Uri.t ] -> ?options:Options.t -> Client.t -> (t, string) Stdlib.result

Analyzes a text using TextRazor.

  • parameter contents

    Use (`Text "text") to send TextRazor raw text, or (`Uri uri) to send a publicly available URL containing the document to be analyzed.

  • parameter options

    Options of the analysis. Defaults to Analysis.Options.default.

OCaml

Innovation. Community. Security.