PaddleOCR README
PaddlePaddle/PaddleOCR · Apache-2.0 · 源码版本 dab3fe35
上手导读
安装与准备
按官方快速入门安装,先在一页样本上核对识别结果。
试用示例
一批报销票据要录入表格时,先区分文字识别与版面解析。按单据类型抽样,确认金额与对应行能否正确配对。
PaddleOCR 以业界领先的精准度,将 PDF 文档和图像转换为结构化、LLM 友好的数据格式(JSON/Markdown)。凭借 70,000+ Stars 的成绩,PaddleOCR 已获得 Dify、RAGFlow、Cherry Studio 等顶级项目的广泛信赖,是构建智能 RAG 和 Agentic 应用的核心基础组件。
🚀 核心特性
📄 智能文档解析(面向大模型)
为大模型时代将杂乱的文档视觉信息转化为结构化数据。
- SOTA 级文档视觉语言模型 (VLM): 业界领先的轻量级文档解析视觉语言模型 PaddleOCR-VL-1.6 (0.9B)。该模型以 96.3% 精度刷新 OmniDocBench v1.6,文本、公式、表格识别全面领先,并在古籍、生僻字、印章、图表等多场景能力显著增强,支持以 Markdown 和 JSON 格式输出结构化结果。
- 版面结构分析:由 PP-StructureV3 驱动,无缝将复杂的 PDF文档 和图像转换为 Markdown 或 JSON 格式。与 PaddleOCR-VL 系列模型不同,它提供更细粒度的坐标信息,包括表格单元格坐标、文本坐标等。
- 生产级高效能:以极小的模型体积实现商业级别的准确率。在公开基准测试中超越众多闭源解决方案,同时保持极高的资源利用率,完美适配边缘计算与云端部署。
🔍 通用文本识别(场景 OCR)
快速、精准的多语言文本检测与识别,被全球开发者广泛采用。
- 支持 100+ 种语言:原生支持庞大丰富的全球语种库。PP-OCRv6 单模型统一支持 50 种语言(中、英、日及 46 种拉丁语系),无需切换模型即可应对多语言混合排版文档。
- 复杂场景支持:除了标准的文本识别,还支持在各种广泛的环境下进行自然场景文本检测与识别,涵盖身份证件、街景、书籍以及工业零部件等。
- 性能提升:PP-OCRv6 相比 PP-OCRv5 检测精度提升 4.6%、识别精度提升 5.1%,超越主流视觉语言大模型,CPU 推理加速 5.2×。
🛠️ 以开发者为中心的生态系统
- 无缝集成:AI 智能体生态系统的首选——与 Dify、RAGFlow、Pathway和Cherry Studio 深度集成。
- 大语言模型数据飞轮:完整的数据流水线,用于构建高质量数据集,为微调大语言模型提供可持续的"数据引擎"。
- 一键部署:支持多种硬件后端(NVIDIA GPU、Intel CPU、昆仑芯 XPU 和多种 AI 加速器)。
📣 最新动态
🔥 2026.07.22: HPD-Parsing 新增上线
- HPD-Parsing 是面向高吞吐文档解析的轻量级视觉语言模型。它采用层级并行解码范式和渐进式多 token 预测(P-MTP),在公开基准上达到 4,752 tokens/s 的峰值吞吐,同时保持有竞争力的解析精度。
- HPD-Parsing 基于定制版 vLLM 运行时,支持 OpenAI 兼容服务化调用和本地推理,适用于对推理效率和部署吞吐要求较高的文档解析场景。
- 查看 HPD-Parsing 使用教程,了解环境准备、服务化部署与本地推理说明。
2026.06.11: PaddleOCR 3.7.0 发布
-
PP-OCRv6 核心亮点如下:
- 精度全面提升:medium 档相比 PP-OCRv5_server 检测精度提升 4.6%、识别精度提升 5.1%,以仅 34.5M 参数超越 Qwen3-VL-235B、GPT-5.5 等主流视觉语言大模型。
- 50 种语言统一支持:单一模型覆盖中文、英文、日文及 46 种拉丁语系语言,无需为不同语种切换模型。
- 专业场景增强:数码显示屏、点阵字符、轮胎印字、工业字符等传统 VLM 难以覆盖的场景识别能力大幅提升。
- 推理速度更快:medium 档 CPU OpenVINO 推理加速 5.2×,tiny 档 Apple M4 加速 6.1×,A100 上仅需 0.13s。
- 三档模型覆盖全场景:tiny(1.5M)/ small(7.7M)/ medium(34.5M)分别面向端侧/移动端/服务端部署。
- 模型获取:所有模型均可通过 HuggingFace 和 ModelScope 获取。
2026.05.28: PaddleOCR 3.6.0 发布
-
PaddleOCR-VL-1.6核心亮点如下:
- 全新SOTA精度:OmniDocBench v1.6 突破96.3%,在OmniDocBench v1.5、Real5-OmniDocBench上同样刷新SOTA,文本、公式、表格识别全面领先开源与闭源方案。
- 能力全面升级:表格、古籍、生僻字识别大幅提升,印章、spotting、图表识别等多场景均有显著增强。
- 无缝迁移:模型结构与PaddleOCR-VL-1.5完全一致,零成本适配,即换即用。
- 立即试用:可在 HuggingFace 或 PaddleOCR 官方网站 使用。
2026.04.21: PaddleOCR 3.5.0 发布
- 推理后端灵活切换:支持在飞桨静态图、飞桨动态图和 Transformers 之间无缝切换。深度适配 Hugging Face 生态,20 个主要模型支持以 Transformers 作为推理后端。
- 常见文档格式转 Markdown:支持将 Word、Excel、Powerpoint 等常见文档格式转换为 Markdown。
- 解析结果导出 DOCX:
PaddleOCR-VL系列、PP-StructureV3和PP-DocTranslation现已支持将解析结果导出为 DOCX,便于在 Microsoft Word 中查看和编辑。 - 官方浏览器推理 SDK:发布官方浏览器推理 SDK
PaddleOCR.js,支持在浏览器中运行PP-OCRv5。
2026.01.29: PaddleOCR 3.4.0 发布
* PaddleOCR-VL-1.5 (SOTA 0.9B VLM): * **OmniDocBench 94.5%准确率**:超越顶级通用大模型和专业文档解析模型。 * **现实5大场景文档解析的SOTA性能**:首次引入**PP-DocLayoutV3**算法进行异形框定位,可以解决5种真实场景: 倾斜、弯曲、扫描、光线变化和屏幕拍照。 * **能力拓展**:增加**印章识别**、**文本行检测/识别**,并扩展至**111种语言**(包括中国的藏文和孟加拉语)。 * **长文档跨页解析**:支持自动跨页表格合并和分层标题识别。 * **立即试用**:可在[HuggingFace](https://huggingface.co/PaddlePaddle/PaddleOCR-VL-1.5)或[PaddleOCR 官方网站](https://www.paddleocr.com)使用。2025.10.16: PaddleOCR 3.3.0 发布
-
发布PaddleOCR-VL:
-
模型介绍:
- PaddleOCR-VL 是一款先进、高效的文档解析模型,专为文档中的元素识别设计。其核心组件为 PaddleOCR-VL-0.9B,这是一种紧凑而强大的视觉语言模型(VLM),它由 NaViT 风格的动态分辨率视觉编码器与 ERNIE-4.5-0.3B 语言模型组成,能够实现精准的元素识别。该模型支持 109 种语言,并在识别复杂元素(如文本、表格、公式和图表)方面表现出色,同时保持极低的资源消耗。通过在广泛使用的公开基准与内部基准上的全面评测,PaddleOCR-VL 在页级级文档解析与元素级识别均达到 SOTA 表现。它显著优于现有的基于Pipeline方案和文档解析多模态方案以及先进的通用多模态大模型,并具备更快的推理速度。这些优势使其非常适合在真实场景中落地部署。模型已发布至HuggingFace,欢迎大家下载使用!更多介绍内容请点击PaddleOCR-VL。
-
特性:
- 紧凑而强大的视觉语言模型架构:我们提出了一种新的视觉语言模型,专为资源高效的推理而设计,在元素识别方面表现出色。通过将NaViT风格的动态高分辨率视觉编码器与轻量级的ERNIE-4.5-0.3B语言模型结合,我们显著增强了模型的识别能力和解码效率。这种集成在保持高准确率的同时降低了计算需求,使其非常适合高效且实用的文档处理应用。
- 文档解析的SOTA性能:PaddleOCR-VL在页面级文档解析和元素级识别中达到了最先进的性能。它显著优于现有的基于流水线的解决方案,并在文档解析中展现出与领先的视觉语言模型(VLMs)竞争的强劲实力。此外,它在识别复杂的文档元素(如文本、表格、公式和图表)方面表现出色,使其适用于包括手写文本和历史文献在内的各种具有挑战性的内容类型。这使得它具有高度的多功能性,适用于广泛的文档类型和场景。
- 多语言支持:PaddleOCR-VL支持109种语言,覆盖了主要的全球语言,包括但不限于中文、英文、日文、拉丁文和韩文,以及使用不同文字和结构的语言,如俄语(西里尔字母)、阿拉伯语、印地语(天城文)和泰语。这种广泛的语言覆盖大大增强了我们系统在多语言和全球化文档处理场景中的适用性。
-
-
发布PP-OCRv5小语种识别模型:
- 优化拉丁文识别的准度和广度,新增西里尔文、阿拉伯文、天城文、泰卢固语、泰米尔语等语系,覆盖109种语言文字的识别。模型参数量仅为2M,部分模型精度较上一代提升40%以上。
2025.08.21: PaddleOCR 3.2.0 发布
-
重要模型新增:
- 新增 PP-OCRv5 英文、泰文、希腊文识别模型的训练、推理、部署。其中 PP-OCRv5 英文模型较 PP-OCRv5 主模型在英文场景提升 11%,泰文识别模型精度 82.68%,希腊文识别模型精度 89.28%。
-
部署能力升级:
- 全面支持飞桨框架 3.1.0 和 3.1.1 版本。
- 全面升级 PP-OCRv5 C++ 本地部署方案,支持 Linux、Windows,功能及精度效果与 Python 方案保持一致。
- 高性能推理支持 CUDA 12,可使用 Paddle Inference、ONNX Runtime 后端推理。
- 高稳定性服务化部署方案全面开源,支持用户根据需求对 Docker 镜像和 SDK 进行定制化修改。
- 高稳定性服务化部署方案支持通过手动构造HTTP请求的方式调用,该方式允许客户端代码使用任意编程语言编写。
-
Benchmark支持:
- 全部产线支持产线细粒度 benchmark,能够测量产线端到端推理时间以及逐层、逐模块的耗时数据,可用于辅助产线性能分析。可以参考文档来进行性能测试。
- 文档中补充各产线常用配置在主流硬件上的关键指标,包括推理耗时和内存占用等,为用户部署提供参考。
-
Bug修复:
- 修复模型训练时训练日志保存失败的问题。
- 对公式模型的数据增强部分进行了版本兼容性升级,以适应新版本的 albumentations 依赖,并修复了在多进程使用 tokenizers 依赖包时出现的死锁警告。
- 修复 PP-StructureV3 配置文件中的
use_chart_parsing等开关行为与其他产线不统一的问题。
-
其他升级:
- 分离必要依赖与可选依赖。使用基础文字识别功能时,仅需安装少量核心依赖;若需文档解析、信息抽取等功能,用户可按需选择安装额外依赖。
- 支持 Windows 用户使用英伟达 50 系显卡,可根据 安装文档 安装对应版本的 paddle 框架。
- PP-OCR 系列模型支持返回单文字坐标。
- 模型新增 AIStudio、ModelScope 等下载源。可指定相关下载源下载对应的模型。
- 支持图表转表 PP-Chart2Table 单功能模块推理能力。
- 优化部分使用文档中的描述,提升易用性。
🚀 快速开始
步骤 1: 在线体验
PaddleOCR官方网站提供交互式体验中心和APIs——无需设置,一键体验。
👉 访问官方网站
步骤 2: 本地部署
对于本地使用,请根据您的需求参考以下文档:
- PP-OCR系列:查看PP-OCR文档
- PaddleOCR-VL系列:查看PaddleOCR-VL文档
- PP-StructureV3:查看PP-StructureV3文档
- 更多能力:查看更多能力文档
🧩 更多功能
- 将模型转换为ONNX格式: 获取ONNX模型。
- 使用OpenVINO、ONNX Runtime、TensorRT等引擎加速推理,或使用ONNX格式模型进行推理: 高性能推理。
- 使用多GPU和多进程加速推理: 流水线并行推理。
- 将PaddleOCR集成到C++、C#、Java等语言编写的应用程序中: 服务化部署。
🔄 执行结果快速预览
PP-OCRv5
PP-StructureV3
PaddleOCR-VL
✨ 保持关注
⭐ 收藏本仓库,持续关注最新动态与版本发布,包括强大的 OCR 及文档解析等新功能特性。 ⭐
👩👩👧👦 社区
😃 使用 PaddleOCR 的优秀项目
PaddleOCR 的发展离不开社区贡献!💗衷心感谢所有开发者、合作伙伴与贡献者!
| 项目名称 | 简介 |
|---|---|
| RAGFlow |
基于RAG的AI工作流引擎 |
| pathway |
用于流处理、实时分析、LLM流水线和RAG的Python ETL框架 |
| MinerU |
多类型文档转换Markdown工具 |
| Umi-OCR |
开源批量离线OCR软件 |
| cherry-studio |
一个支持多个LLM提供商的桌面客户端 |
| OmniParser |
基于纯视觉的GUI智能体屏幕解析工具 |
| QAnything |
基于任意内容的问答系统 |
| PDF-Extract-Kit |
高效复杂PDF文档提取工具包 |
| Dango-Translator |
屏幕实时翻译工具 |
| 更多项目 | 更多基于PaddleOCR的项目 |
👩👩👧👦 贡献者
🌟 Star历史
📄 许可证
本项目采用Apache 2.0许可证发布。
🎓 引用
如果本项目对您的研究有帮助,欢迎引用 PaddleOCR 3.0 和 PaddleOCR-VL。更多历年论文、工作介绍及 BibTeX,请参阅 PaddleOCR 论文展示。
@misc{cui2025paddleocr30technicalreport, title={PaddleOCR 3.0 Technical Report}, author={Cheng Cui and Ting Sun and Manhui Lin and Tingquan Gao and Yubo Zhang and Jiaxuan Liu and Xueqing Wang and Zelun Zhang and Changda Zhou and Hongen Liu and Yue Zhang and Wenyu Lv and Kui Huang and Yichao Zhang and Jing Zhang and Jun Zhang and Yi Liu and Dianhai Yu and Yanjun Ma}, year={2025}, eprint={2507.05595}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2507.05595}, } @misc{cui2025paddleocrvlboostingmultilingualdocument, title={PaddleOCR-VL: Boosting Multilingual Document Parsing via a 0.9B Ultra-Compact Vision-Language Model}, author={Cheng Cui and Ting Sun and Suyin Liang and Tingquan Gao and Zelun Zhang and Jiaxuan Liu and Xueqing Wang and Changda Zhou and Hongen Liu and Manhui Lin and Yue Zhang and Yubo Zhang and Handong Zheng and Jing Zhang and Jun Zhang and Yi Liu and Dianhai Yu and Yanjun Ma}, year={2025}, eprint={2510.14528}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2510.14528}, }
| comments | true |
|---|
安装
1. 安装 PaddleOCR Python 库及可选依赖
本节说明如何按需安装paddleocr 分发包,按能力域启用的可选依赖组,以及安装推理引擎。这条路径适用于在本地调用预训练产线完成推理,或是使用文档格式转换等辅助功能。模型训练与模型导出见第 2 节,与上述安装路径相互独立。
Python 版本要求:paddleocr 本体与 doc2md 依赖组支持 Python 3.8 及以上;其他可选依赖组(doc-parser、ie、trans、all 等)受上游依赖限制,需要 Python 3.9 及以上。
1.1 安装 paddleocr {#install-paddleocr}
从 PyPI 安装最新版本的 paddleocr:
# 仅需要通用 OCR 与文档图像预处理等默认能力 python -m pip install paddleocr # 需要文档解析、文档理解、文档翻译、关键信息抽取等全部可选能力 # python -m pip install "paddleocr[all]"
或从源码安装(默认跟踪仓库当前默认分支):
# 仅需要通用 OCR 与文档图像预处理等默认能力 python -m pip install "paddleocr@git+https://github.com/PaddlePaddle/PaddleOCR.git" # 需要文档解析、文档理解、文档翻译、关键信息抽取等全部可选能力 # python -m pip install "paddleocr[all]@git+https://github.com/PaddlePaddle/PaddleOCR.git"
1.2 按功能选择依赖组
除 all 外,可通过指定依赖组启用部分可选能力。依赖组表示能力域(文档解析、信息抽取、文档翻译等)。各依赖组如下:
| 依赖组名称 | 对应的功能 |
|---|---|
doc-parser |
文档解析,可用于提取文档中的表格、公式、印章、图片等版面元素,包含 PP-StructureV3 等模型方案 |
ie |
信息抽取,可用于从文档中提取关键信息,如姓名、日期、地址、金额等,包含 PP-ChatOCRv4 等模型方案 |
trans |
文档翻译,可用于将文档从一种语言翻译为另一种语言,包含 PP-DocTranslation 等模型方案 |
doc2md |
文档转 MarkDown,可用于将 Word、Excel、PowerPoint 文件快速转为可读文本 |
all |
完整功能 |
通用 OCR 产线与文档图像预处理产线无需额外依赖组;文档解析、信息抽取、文档翻译等按上表安装对应组。各产线所属依赖组见对应产线文档;单功能模块在任一包含该模块的依赖组安装后即可调用其基础能力。
1.3 安装推理引擎(按需)
PaddleOCR 3.5 采用统一推理引擎配置,底层可对接飞桨、Transformers 等。若要实际执行模型推理,请参考 推理引擎与配置说明 安装所选推理引擎。
2. 安装训练与导出依赖
若要进行模型训练或模型导出,需另行安装训练相关依赖。该路径与第 1 节的 paddleocr 包及可选依赖组属于不同安装维度,同一环境中可同时存在,无需强制隔离。训练与导出依赖飞桨框架,请先参考 飞桨框架安装 安装飞桨框架。如果当前环境中已安装飞桨之外的推理引擎(如 Transformers),可能会出现依赖冲突,建议在全新的环境中进行安装。
Python 版本要求:训练与模型导出支持 Python 3.8 及以上。
将本仓库克隆到本地后安装其余依赖:
git clone --depth 1 https://github.com/PaddlePaddle/PaddleOCR.git
cd PaddleOCR默认只下载当前分支的最新版本,适合训练和导出。需要完整提交历史时,在仓库目录执行 git fetch --unshallow。
若需要指定版本,请在克隆时选择分支,例如:
git clone --depth 1 --branch release/3.5 https://github.com/PaddlePaddle/PaddleOCR.git PaddleOCR-3.5
cd PaddleOCR-3.5以上两种方式二选一。如果 GitHub 网络不可用,可将克隆地址替换为 https://gitee.com/paddlepaddle/PaddleOCR.git;镜像可能延迟 3–5 天。
执行如下命令安装其余训练依赖:
python -m pip install -r requirements.txt
原作者与许可证
文档来自 PaddlePaddle/PaddleOCR 的上述提交,保留原文并调整了站内排版与链接。
查看仓库许可证原文 ↗ Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.








