forked from Archives/langchain
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3830d900bf
### Summary Adds a document loader for MS Word Documents. Works with both `.docx` and `.doc` files as longer as the user has installed `unstructured>=0.4.11`. ### Testing The follow workflow test the loader for both `.doc` and `.docx` files using example docs from the `unstructured` repo. #### `.docx` ```python from langchain.document_loaders import UnstructuredWordDocumentLoader filename = "../unstructured/example-docs/fake.docx" loader = UnstructuredWordDocumentLoader(filename) loader.load() ``` #### `.doc` ```python from langchain.document_loaders import UnstructuredWordDocumentLoader filename = "../unstructured/example-docs/fake.doc" loader = UnstructuredWordDocumentLoader(filename) loader.load() ``` |
1 year ago | |
---|---|---|
.. | ||
agents | 1 year ago | |
chains | 1 year ago | |
document_loaders | 1 year ago | |
indexes | 1 year ago | |
llms | 1 year ago | |
memory | 1 year ago | |
prompts | 1 year ago | |
utils | 1 year ago | |
agents.rst | 1 year ago | |
chains.rst | 1 year ago | |
document_loaders.rst | 1 year ago | |
indexes.rst | 1 year ago | |
llms.rst | 1 year ago | |
memory.rst | 1 year ago | |
prompts.rst | 1 year ago | |
state_of_the_union.txt | 1 year ago | |
utils.rst | 1 year ago |