Toggle Menu
Prev Up Next

# `langchain_community.document_transformers.nuclia_text_transform`.NucliaTextTransformer

class langchain_community.document_transformers.nuclia_text_transform.NucliaTextTransformer(nua: NucliaUnderstandingAPI)

  Nuclia Text Transformer.

  The Nuclia Understanding API splits into paragraphs and sentences, identifies entities, provides a summary of the text and generates embeddings for all sentences.

  Methods

  `__init__`(nua) |
  `atransform_documents`(documents, **kwargs) | Asynchronously transform a list of documents.
  `transform_documents`(documents, **kwargs) | Transform a list of documents.

  Parameters

    nua (NucliaUnderstandingAPI) –

  __init__(nua: NucliaUnderstandingAPI)
    Parameters

      nua (NucliaUnderstandingAPI) –

  async atransform_documents(documents: Sequence[Document], **kwargs: Any) → Sequence[Document]

    Asynchronously transform a list of documents.

    Parameters

      - documents (Sequence[Document]) – A sequence of Documents to be transformed.

      - kwargs (Any) –

    Returns

      A list of transformed Documents.

    Return type

      Sequence[Document]

  transform_documents(documents: Sequence[Document], **kwargs: Any) → Sequence[Document]

    Transform a list of documents.

    Parameters

      - documents (Sequence[Document]) – A sequence of Documents to be transformed.

      - kwargs (Any) –

    Returns

      A list of transformed Documents.

    Return type

      Sequence[Document]

# Examples using NucliaTextTransformer

- Nuclia

- nuclia_transformer.md