跳到主要内容
Browserless 是一项允许您在云端运行无头 Chrome 实例的服务。它是在无需担心管理自有基础设施的情况下,大规模运行基于浏览器的自动化的绝佳方式。 要将 Browserless 用作文档加载器,请如此笔记本中所示初始化一个 BrowserlessLoader 实例。请注意,默认情况下,BrowserlessLoader 会返回页面 body 元素的 innerText。要禁用此功能并获取原始 HTML,请将 text_content 设置为 False
from langchain_community.document_loaders import BrowserlessLoader
BROWSERLESS_API_TOKEN = "YOUR_BROWSERLESS_API_TOKEN"
loader = BrowserlessLoader(
    api_token=BROWSERLESS_API_TOKEN,
    urls=[
        "https://en.wikipedia.org/wiki/Document_classification",
    ],
    text_content=True,
)

documents = loader.load()

print(documents[0].page_content[:1000])
Jump to content
Main menu
Search
Create account
Log in
Personal tools
Toggle the table of contents
Document classification
17 languages
Article
Talk
Read
Edit
View history
Tools
From Wikipedia, the free encyclopedia

Document classification or document categorization is a problem in library science, information science and computer science. The task is to assign a document to one or more classes or categories. This may be done "manually" (or "intellectually") or algorithmically. The intellectual classification of documents has mostly been the province of library science, while the algorithmic classification of documents is mainly in information science and computer science. The problems are overlapping, however, and there is therefore interdisciplinary research on document classification.

The documents to be classified may be texts, images, music, etc. Each kind of document possesses its special classification problems. When not otherwise specified, text classification is implied.

Do

以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.