Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add content and paragraph to example in doc/annotation_schema.md #31

Open
jameshowison opened this issue Sep 12, 2023 · 1 comment
Open

Comments

@jameshowison
Copy link

On doc/annotation_schema.md

the example is

    "software-name": {
        "rawForm": "ClustalW",
        "normalizedForm": "ClustalW",
        "wikidataId": "Q866737",
        "wikipediaExternalRef": 1976990,
        "lang": "en",
        "confidence": 0.7827,
        "offsetStart": 31,
        "offsetEnd": 39,
        "boundingBoxes": [{
            "p": 4,
            "x": 439.144,
            "y": 111.378,
            "w": 36.0176,
            "h": 8.0517
        }]
    }

but the discussion underneath mentions context and paragraph with offsets into those for software-name, version, publisher and url.

Could the example given include context and (potentially) paragraph?

@kermitt2
Copy link
Collaborator

The excerpt here is for the sub-structure "chunk" fields, one of software-name, version, publisher, url and language.

context and paragraph are fields outside these sub-structures. They are present in the mention part of the example:

{
    "type": "software",
    "software-type": "...",
    "wikidataId": "...",
    "wikipediaExternalRef": ...,
    "lang": "...",
    "confidence": ...,
    "software-name": {...},
    "version": {...},
    "publisher": {...},
    "url": {...},
    "language": {...},
    "context": "...",
    "paragraph": "...",
    "references": [{
            "label": "(Jones, 1999)",
            "normalizedForm": "Jones, 1999",
            "refKey": 24
        }],
    "mentionContextAttributes": {...},
    "documentContextAttributes": {...}
}

Does it clarify ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants