【问题标题】:Form recognizer 'errors': ['Page 1: Document is either invalid or exceeds the page/size limits.']表单识别器“错误”:[“第 1 页:文档无效或超出页面/大小限制。”]
【发布时间】:2019-09-26 09:48:25
【问题描述】:

当我使用 Azure 表单识别器提取 pdf 文本时,使用 Microsoft 提供的示例数据时一切正常。但是当我使用我唯一的 pdf 来训练模型时,我收到以下错误:

响应状态码:200 响应正文:

{
    'modelId': '4380f0c6-e073-4a5f-b69e-78e9b7e39c0d',
    'trainingDocuments': [{
        'documentName': 'liste_med_2019_08_15_en - p201.pdf',
        'pages': 1,
        'errors': ['Page 1: Document is either invalid or exceeds the page/size limits.'],
        'status': 'failure'
    }, {
        'documentName': 'liste_med_2019_08_15_en - p202.pdf',
        'pages': 1,
        'errors': ['Page 1: Document is either invalid or exceeds the page/size limits.'],
        'status': 'failure'
    }, {
        'documentName': 'liste_med_2019_08_15_en - p203.pdf',
        'pages': 1,
        'errors': ['Page 1: Document is either invalid or exceeds the page/size limits.'],
        'status': 'failure'
    }, {
        'documentName': 'liste_med_2019_08_15_en - p204.pdf',
        'pages': 1,
        'errors': ['Page 1: Document is either invalid or exceeds the page/size limits.'],
        'status': 'failure'
    }, {
        'documentName': 'liste_med_2019_08_15_en - p205.pdf',
        'pages': 1,
        'errors': ['Page 1: Document is either invalid or exceeds the page/size limits.'],
        'status': 'failure'
    }],
    'errors': [{
        'errorMessage': 'Unable to fit model. No documents clustered.'
    }]
}

我使用的培训文件是 5 个 pdf,每个 1 页,格式相似。

这是我的 pdf 示例:

拜托,谁能帮我解决我的问题?谢谢

【问题讨论】:

    标签: azure form-recognizer


    【解决方案1】:

    为培训表单识别器 API 提交的文档的一般输入要求列在 here 中。您能否确认您的 5 个 PDF 文档的总大小不超过 4 MB?

    【讨论】:

    • 是的,我可以。我很确定我的训练文件总大小只有 515 KB,远小于 4 MB。我还尝试了 3 个其他示例 pdf 文件,它们每个只有一页,每个训练样本只有 5 个 pdf,但我所有的尝试都失败了。我唯一的成功经验是使用 Microsoft 提供的示例文件。
    • 您的 PDF 文档密码是否受到任何机会的保护?我们无法从此类文件中提取信息。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-01
    • 2015-08-23
    相关资源
    最近更新 更多