package textrazor

  1. Overview
  2. Docs

Module for analysis options.

type classifier = [
  1. | `IAB
  2. | `IAB_content
  3. | `IPTC
  4. | `IPTC_media
  5. | `Custom of string
]

Available classifiers.

type extractor = [
  1. | `Entailments
  2. | `Entities
  3. | `Phrases
  4. | `Relations
  5. | `Topics
  6. | `Words
]

Available extractors.

type cleanup_mode = [
  1. | `Raw
  2. | `Tags
  3. | `HTML
]

Available cleanup modes.

type t = {
  1. allow_overlap : bool;
  2. classifiers : classifier list;
  3. cleanup_mode : cleanup_mode option;
  4. dbpedia_types : string list;
  5. extractors : extractor list;
  6. freebase_types : string list;
  7. language : string option;
  8. return_cleaned_text : bool;
  9. return_raw_text : bool;
  10. user_agent : string option;
}

Data structure for analysis options.

val default : t

A sensible default for analysis options.

You can use this value an customize it with functional updates. {default with key1 = value1; key2 = value2}

val to_params : t -> (string * string list) list

Gets the POST params for the given options.

OCaml

Innovation. Community. Security.