Context Class

The top level keys in the JSON file correspond with Context Class names.

Context Class config objects must contain the following properties:

  • Fields : A list of Field object definitions, instructing Mona to transform exported data variables, essentially laying out the schema of the Context Class.

  • Segmentations : A list of Segmentation object definitions, instructing Mona to use some named Field objects as segmentation parameters with specific rules.

Context Class objects may contain the following:

  • stanza_global_defaults: Enables setting default values for verse parameters for all verses.

  • stanzas : A list of Stanza objects, instructing Mona on everything regarding anomaly detection and signals and insights creation.

  • data: Static JSON data that you can add to your configuration, and leverage in Field Build Functions for example is_in_set.

  • description: a textual description of this context class.

  • aliases: a list of other names for this context class, if needed to use differently in the data exporting code.

  • field vectors: A JSON object holding the name of the field vectors group and a fields list of all relevant fields. Each field's value will create a visual representation in bar chart form. Can be used for example for classifiers. e.g, to show values of different languages in a language detection model.

{
  "field_vectors": {
    "language_scores": {
      "fields": [
        "eng_score",
        "spa_score",
        "ger_score",
        "rus_score",
        "heb_score"
      ]
    }
  }
}

Did this page help you?