# UnstructuredCHMLoader

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_loaders/chm/UnstructuredCHMLoader)

Load `CHM` files using `Unstructured`.

CHM means Microsoft Compiled HTML Help.

Examples
--------
from langchain_community.document_loaders import UnstructuredCHMLoader

loader = UnstructuredCHMLoader("example.chm")
docs = loader.load()

References
----------
https://github.com/dottedmag/pychm
http://www.jedrea.com/chmlib/

## Signature

```python
UnstructuredCHMLoader(
    self,
    file_path: Union[str, Path],
    mode: str = 'single',
    **unstructured_kwargs: Any = {},
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `file_path` | `Union[str, Path]` | Yes | The path to the CHM file to load. |
| `mode` | `str` | No | The mode to use when loading the file. Can be one of "single", "multi", or "all". Default is "single". (default: `'single'`) |
| `**unstructured_kwargs` | `Any` | No | Any kwargs to pass to the unstructured. (default: `{}`) |

## Extends

- `UnstructuredFileLoader`

## Constructors

```python
__init__(
    self,
    file_path: Union[str, Path],
    mode: str = 'single',
    **unstructured_kwargs: Any = {},
)
```

| Name | Type |
|------|------|
| `file_path` | `Union[str, Path]` |
| `mode` | `str` |


---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/document_loaders/chm.py#L13)