mirror of
https://github.com/hwchase17/langchain
synced 2024-10-31 15:20:26 +00:00
29 lines
618 B
Plaintext
29 lines
618 B
Plaintext
# spaCy
|
|
|
|
>[spaCy](https://spacy.io/) is an open-source software library for advanced natural language processing, written in the programming languages Python and Cython.
|
|
|
|
## Installation and Setup
|
|
|
|
|
|
```bash
|
|
pip install spacy
|
|
```
|
|
|
|
|
|
|
|
## Text Splitter
|
|
|
|
See a [usage example](/docs/modules/data_connection/document_transformers/text_splitters/split_by_token.html#spacy).
|
|
|
|
```python
|
|
from langchain.text_splitter import SpacyTextSplitter
|
|
```
|
|
|
|
## Text Embedding Models
|
|
|
|
See a [usage example](/docs/integrations/text_embedding/spacy_embedding)
|
|
|
|
```python
|
|
from langchain.embeddings.spacy_embeddings import SpacyEmbeddings
|
|
```
|