Treebanking—the process of mapping sentences to their syntactic structures—is a foundational task in Natural Language Processing (NLP). High-quality treebanks are vital for training dependency parsers and evaluating the linguistic capabilities of Large Language Models (LLMs). However, the manual effort required is immense, and existing annotation tools often suffer from poor user experience (UX), lack of persistence, and limited support for morphologically rich languages.
Presented at LREC-COLING 2024, Palmyra 3.0 addresses these challenges. It is an open-source, web-based platform designed to streamline morphological and dependency syntax annotation through cloud integration, automated parsing, and a highly configurable interface.
Addressing Limitations in Existing Tools
Existing linguistic annotation software often lags behind modern web standards. The authors identify three primary pain points: volatility, where browser crashes lead to lost work; language bias, where tools are optimized for English; and UX friction, such as the absence of standard shortcuts or undo/redo functionality.
As shown in the comparison above, Palmyra 3.0 introduces critical features like online storage, online parsing, and a robust undo/redo system that were previously fragmented across different tools. These features reduce the cognitive load on annotators and minimize the risk of data loss.
Methodology and Key Features
Palmyra 3.0 evolves from its predecessor by focusing on three pillars: persistence, automation, and visualization.
- Cloud-Based Persistence: By integrating with the Google Drive API, Palmyra 3.0 ensures that work is saved securely and persistently, facilitating collaboration without the risk of data loss from browser instability.
- Integrated "Silver" Parsing: The platform embeds CamelParser2.0, a state-of-the-art Arabic dependency parser utilizing BERT embeddings and a neural biaffine attention mechanism. This allows annotators to start with high-quality "silver" labels, reducing the task to one of correction rather than creation. The results suggest that with high-quality parsing, annotators only need to correct about one in every ten tokens.
- Waterfall Visualization: To manage the complexity of long sentences, especially in languages like Arabic, the tool employs a "waterfall" tree structure. This layout improves readability over traditional flat representations.
- Configurable Formalisms: While optimized for Arabic and Universal Dependencies (UD), the tool is language-agnostic. Users can define custom tags, labels, and keyboard shortcuts via JSON configuration files, making it adaptable to any linguistic framework.
Evaluation and Performance
The system was evaluated using benchmark Arabic datasets, including the Penn Arabic Treebank (PATB) and CamelTreebank. The integrated parser achieved a Labeled Attachment Score (LAS) of 91.6% for the CATiB formalism and 88.7% for UD (using predicted tokenization). This high baseline accuracy ensures that the "starting point" for human annotators is very close to the final gold-standard goal.
In terms of throughput, the system processes approximately 12 sentences per second (457 tokens/sec) during full preprocessing and parsing. When working with pre-tokenized text, performance increases significantly to roughly 100 sentences per second. This efficiency ensures a responsive "human-in-the-loop" experience.
Conclusion
Palmyra 3.0 represents a significant step forward in making linguistic annotation more accessible and efficient. By prioritizing UX and integrating advanced automated tools, it lowers the barrier to creating high-quality "gold-standard" data. Future work will focus on expanding default configurations for more languages and further refining the user interface for non-technical linguists.
The platform is open-source and available through the CAMeL Lab GitHub repository.
Summary updated