# Classifier Parameters

Fides classification leverages several named-entity recognition Natural Language Processing (NLP) tools, leveraging Python libraries including spacy and presidio. Enterprise customers interested in AI-driven classification should inquire about the Fides classifier extension using privateAI.

Classification is broken out into **Content** and **Context** analysis:

- **Context** parameters control how Fides analyzes the **metadata** (i.e. field/column name)
- **Content** parameters adjust analysis of the **underlying instance data** (e.g. a 5 row sample)

### Parameter Descriptions [Permalink for this section](/content/docs/data-mapping/reference/classification#parameter-descriptions/index.html)

The parameters below can be added to a discovery monitor by calling the following endpoint:

```
PUT /api/v1/plus/discovery-monitor
```

All of these parameters should be specified within the _classify_params_ configuration object.

- _**excluded_categories**_: a list of data category keys that should never be returned by the classifier.

```
["user.content.public", "user.device.cookie_id"]
```

- _**context_regex_pattern_mapping**_: a list of 2-element lists indicating a regex pattern for column-matching and a Fideslang data category key

```
[
    [".*dob", "user.demographic.date_of_birth"],
    [".*ssn", "user.government_id.national_identification_number"],
    [".*User\.Name", "user.account.username"]
]
```

💡

**Note**: Regular expressions are evaluated using a fully qualified, dot-delimited field identifier. In other words, the schema and table name are included when evaluating the regular expression.

**Example**: _Within a database, the schema_ **Public** _contains table_ **User** _with column_ **Name**. _So, during a Fides scan, registered regex patterns will run against_ **Public.User.Name**. In the example pattern above, the regex pattern `*.*User\.Name*` will match the column _Name_ in the _User_ table in the _Public_ schema, and its assigned data category will be _user.account.username_.

- _**pii_threshold** (default: 0.4)_: This field controls how Fides will filter out non-PII results from the classifier's context classification; lower values increase the chance of false positives.

- _**context_weight** (default: 0.55) **:**_ Fides uses this variable with _content_weight_ to determine what Data categorization to apply to a given field. A larger number means that Fides will rely more heavily on the context.

- _**content_weight** (default: 0.45) **:**_ Fides uses this variable with _context_weight_ to determine what Data categorization to apply to a given field. A larger number means that Fides will rely more heavily on the content.

- _**content_classification_enabled**_ (default: true): If set to false, the content classification phase will be skipped.

- _**context_classification_enabled**_ (default: true): If set to false, the context classification phase will be skipped.

### **Shared Configurations** [Permalink for this section](/content/docs/data-mapping/reference/classification#shared-configurations/index.html)

[Fides 2.63.0](/content/docs/releases/fides-2-X/2-63/index.html) introduced the ability to provide and share regex classification parameters through the UI.

Under **Settings**, within the **Integrations** page, click " _Shared configs_". This will launch a modal where you can create regex patterns that can be attached to a monitor configuration.
