Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Enhancement/Document-level annotation guideline #487
Doccano currently supports project-level annotation guidelines which is a very useful tool to help labelers in their work. However, in some scenarios it can be helpful to also provide additional context to a labeler on a document-level, e.g. if the vocabularies of some documents vary wildly or if the classification in may depend on domain knowledge beyond the immediate document content.
This pull request implements document-level annotation guidelines: if a document has the metadata key "guideline", the content of this field will be rendered in the guideline display instead of the project-level guideline. If the "guideline" metadata key is not present, the project-level guideline is displayed as previously.
Given that this pull request introduces a second "magic" metadata value after documentSourceUrl introduced in #269, this pull request also adds functionality to exclude the "magic" metadata values from the display of the document metadata to avoid cluttering up the screen.