Abstract
BioCconvert is a Python-based utility designed to bridge the gap between the BioC XML and PubAnnotation JSON formats, two major standards in biomedical text annotation. By facilitating seamless conversion, the tool enhances interoperability within the biomedical text mining community, allowing researchers to leverage diverse NLP pipelines and datasets across both ecosystems.
Introduction
In biomedical text mining, researchers frequently encounter a "format silo" problem. Two prominent standards have emerged for sharing annotated text: BioC, a minimalistic XML format used in challenges like BioCreative, and PubAnnotation, a web-based ecosystem utilizing a specific JSON format for visualization and sharing. Despite their widespread use, these formats are not natively compatible. This lack of interoperability prevents tools developed for one format from being easily applied to data in the other. BioCconvert addresses this by automating the translation process, enabling a free flow of tools and data between these two communities.
Methods
BioCconvert is implemented in Python and maps structural elements between BioC XML and PubAnnotation JSON. The mapping logic is governed by several key rules:
- Denotations: BioC annotations are transformed into PubAnnotation "denotations," which represent labeled substrings of text.
- Relations: Binary relations in BioC are mapped to PubAnnotation "relations," while unary relations are mapped to "modifiers."
- Coordinates: The tool automatically adjusts character offsets and lengths to maintain alignment across formats.
- Validation: Reliability is ensured through "round-trip" testing, where data is converted from BioC to PubAnnotation and back to verify data integrity.
The technical mapping of these elements is illustrated in the comparison below:
To demonstrate the tool's efficacy, the authors utilized the Ab3P gold standard abbreviation corpus, consisting of 1,250 manually annotated MEDLINE records and 1,221 abbreviation-definition pairs. This corpus provided a clear baseline for verifying conversion accuracy.
Results
The implementation of BioCconvert has led to several key outcomes:
- Successful Integration: The Ab3P corpus was successfully converted and is now hosted on the PubAnnotation repository.
- Enhanced Interoperability: The tool demonstrates that NLP pipelines written in languages like C++ or Java for BioC can now process data originally hosted in PubAnnotation.
- Bi-directional Data Flow: The conversion utility supports two-way translation, allowing the BioC community to access PubAnnotation's extensive repository of life science annotations.
Discussion and Future Work
While BioCconvert significantly improves interoperability, several challenges remain. The authors noted a "redundancy gap," where the less redundant nature of PubAnnotation JSON might mask errors during round-trip testing that would be visible in BioC XML. Additionally, BioC's use of "infons" (arbitrary key-value pairs) can lead to metadata loss during conversion to the more rigid PubAnnotation structure.
Another technical hurdle is the handling of "multi-segment" denotations. Since PubAnnotation historically lacked support for non-contiguous text segments, BioCconvert currently creates a single encompassing span, a necessary compromise for compatibility.
Future development will focus on testing more complex annotation collections to identify edge cases and automating the mapping of arbitrary BioC role labels to PubAnnotation's specific relational fields.
Summary updated