> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.conductorquantum.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.conductorquantum.com/_mcp/server.

# stanza.analysis.preprocessing



## Module Contents

### Functions

| Name | Description |
|------|-------------|
| [`normalize`](#stanzaanalysispreprocessingnormalize) | Normalize array values to the range [0, 1] using min-max scaling. |

### API

```python
stanza.analysis.preprocessing.normalize(a: numpy.ndarray) -> numpy.ndarray
```

Normalize array values to the range [0, 1] using min-max scaling.

Applies linear transformation to scale all values in the input array
to the [0, 1] range. The minimum value in the array maps to 0, and
the maximum value maps to 1. This is useful for standardizing data
ranges before curve fitting or other numerical operations.

**Parameters:**

<ParamField path="a" type="numpy.ndarray">
  Input array to normalize
</ParamField>

**Returns:**

Normalized array with values in [0, 1]. If the input is a constant
array (all values equal), returns an array of zeros with the same
shape and float dtype.