mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-29 21:30:18 +00:00
### Summary
Adds an `UnstructuredTSVLoader` for TSV files. Also updates the doc
strings for `UnstructuredCSV` and `UnstructuredExcel` loaders.
### Testing
```python
from langchain.document_loaders.tsv import UnstructuredTSVLoader
loader = UnstructuredTSVLoader(
file_path="example_data/mlb_teams_2012.csv", mode="elements"
)
docs = loader.load()
```
86 B
86 B
| 1 | Stanley Cups | ||
|---|---|---|---|
| 2 | Team | Location | Stanley Cups |
| 3 | Blues | STL | 1 |
| 4 | Flyers | PHI | 2 |
| 5 | Maple Leafs | TOR | 13 |