Skip to content

The RecognizedMetadata in the api-docs.yml is missing property "recognizer_identifier" #1605

Open
@StefH

Description

@StefH

Describe the bug
The RecognizedMetadata in the api-docs.yml is missing property "recognizer_identifier"

To Reproduce
Use Docker Analyzer

POST this body:

{
    "text": "john@smith.com",
    "language": "en"
}

Response is:

[
    {
        "analysis_explanation": null,
        "end": 14,
        "entity_type": "EMAIL_ADDRESS",
        "recognition_metadata": {
            "recognizer_identifier": "EmailRecognizer_140076591272816",
            "recognizer_name": "EmailRecognizer"
        },
        "score": 1.0,
        "start": 0
    },
    {
        "analysis_explanation": null,
        "end": 14,
        "entity_type": "URL",
        "recognition_metadata": {
            "recognizer_identifier": "UrlRecognizer_140076591273824",
            "recognizer_name": "UrlRecognizer"
        },
        "score": 0.5,
        "start": 5
    }
]

Expected behavior
The "recognition_metadata" contains an extra property named "recognizer_identifier".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions