Introduction
Building complex Natural Language Processing (NLP) pipelines often presents a significant software engineering challenge. Researchers frequently encounter an "interoperability crisis" where high-quality tools (e.g., POS taggers, NER systems) are incompatible due to differing programming languages, data formats, or input requirements. This paper presents extensions to U-Compare, a graphical platform designed to alleviate these issues by allowing the creation of sophisticated NLP workflows without manual coding.
The Interoperability Challenge
Traditional NLP platforms often excel at monolingual enrichment—adding metadata to a single text stream. However, they frequently struggle with transformative tasks. These tasks involve converting input text into entirely different forms, such as translations in another language, condensed summaries, or even audio files. Bridging these gaps requires a robust framework that can handle multiple "views" of the same underlying data.
Technical Implementation: The UIMA Sofa Mechanism
The authors leveraged the Unstructured Information Management Architecture (UIMA) to solve these challenges. Central to their approach is the Subject of Analysis (Sofa) mechanism. In UIMA, data is encapsulated within a Common Analysis Structure (CAS). A "Sofa" allows a single CAS to maintain multiple synchronized views.
By utilizing Sofas, U-Compare can now manage complex multi-view workflows seamlessly. Key enhancements include:
- Parallel Sofa Viewer: A GUI component for side-by-side comparison of source and translated/summarized text.
- Audio Visualizer: A multimodal component that displays waveforms and spectrograms, allowing users to align synthesized speech with original text tokens.
- Component Wrapping: The integration of 46 new Language Resources (LRs) into a unified Type System, ensuring cross-tool compatibility.
Multilingual and Multimodal Workflows
The platform's extension enables three primary types of sophisticated workflows that were previously difficult to construct in a graphical interface:
- Machine Translation: Pipelines that transform text across languages (e.g., English to Spanish) while preserving linguistic annotations.
- Automatic Summarization: Workflows that generate parameterized summaries of input documents.
- Speech Synthesis: Multimodal pipelines that convert text into audio.
By treating an audio file as a distinct Sofa view within the CAS, the system maintains perfect synchronization between text annotations (like word timestamps) and the raw audio data. This approach effectively democratizes NLP by providing drag-and-drop access to complex MT and TTS technologies.
Results and Impact
The project integrated 46 Language Resources covering 15 European languages, including tools like the Apertium translation engine and UPC Ogmios for speech synthesis. As a result, U-Compare has become one of the world's largest repositories of type-system-compatible NLP resources. While the Sofa mechanism was previously underutilized, this work demonstrates its power in creating flexible, interoperable, and multimodal research tools. Future work aims to extend these capabilities to video data, further pushing the boundaries of synchronized multimodal analysis.
Summary updated