langchain/libs/community/langchain_community/document_transformers
Mohammed Naqi 8799b028a6
community[minor]: Adding asynchronous function implementation for Doctran (#15941)
## Description 
In this update, I addressed the missing implementation for
atransform_document, which is the asynchronous counterpart of
transform_document in Doctran.

### Usage Example:
```py
# Instantiate DoctranPropertyExtractor with specified properties
property_extractor = DoctranPropertyExtractor(properties=properties)

# Asynchronously extract properties from a list of documents
extracted_document = await property_extractor.atransform_documents(
    documents, properties=properties
)

# Display metadata of the first extracted document
print(json.dumps(extracted_document[0].metadata, indent=2))

```

## Issue
- Pull request #14525 has caused a break in the aforementioned code.
Instead of removing an asynchronous implementation of a function,
consider implementing a synchronous version alongside it.
2024-01-15 10:39:25 -08:00
..
xsl
__init__.py
beautiful_soup_transformer.py
doctran_text_extract.py community[minor]: Adding asynchronous function implementation for Doctran (#15941) 2024-01-15 10:39:25 -08:00
doctran_text_qa.py community: Make doctran synchronous (#15264) 2023-12-28 08:05:24 -08:00
doctran_text_translate.py community: Make doctran synchronous (#15264) 2023-12-28 08:05:24 -08:00
embeddings_redundant_filter.py
google_translate.py
html2text.py
long_context_reorder.py
nuclia_text_transform.py
openai_functions.py