Abstract
Emerging text-intensive enterprise applications such as social analytics and semantic search pose new challenges of scalability and usability to Information Extraction (IE) systems. This paper presents SystemT, a declarative IE system that addresses these challenges and has been deployed in a wide range of enterprise applications. SystemT facilitates the development of high quality complex annotators by providing a highly expressive language and an advanced development environment. It also includes a cost-based optimizer and a high-performance, flexible runtime with minimum memory footprint. We present SystemT as a useful resource that is freely available, and as an opportunity to promote research in building scalable and usable IE systems.
Introduction
Information Extraction (IE)—the process of transforming unstructured text into structured data—is a cornerstone of modern enterprise analytics. However, traditional IE systems often hit a "scalability and usability" wall. Most legacy systems are procedural, requiring developers to write rules or train models and link them using general-purpose languages like Java, C++, or Perl. This approach leads to unoptimizable code and labor-intensive maintenance. SystemT represents a "database moment" for IE, moving from manual procedural manipulation to a declarative approach similar to how SQL revolutionized data management.
System Architecture and AQL
The core philosophy of SystemT is the separation of the extraction logic from the execution strategy. This decoupling allows developers to focus on what to extract, while the system determines how to extract it most efficiently.
As shown in Figure 1, the system is divided into a development environment and a runtime environment. In the development environment, users define rules using AQL (Annotation Query Language). These rules are processed by a cost-based optimizer that generates an efficient execution plan based on relational algebra for text. This plan is then "published" to the runtime environment, where it processes input document streams to produce annotated outputs.
The AQL Language
AQL is a declarative language with a syntax familiar to SQL users. Instead of writing complex loops to find patterns, developers define "views" for specific entities and use relational-style operations like Join and Select to combine them based on proximity or other constraints.
For instance, Figure 2 illustrates how views for Phone and Person are defined using regex and dictionary extractors. These are then joined in the PersonPhoneAll view based on proximity constraints (e.g., a name followed by a phone number within 0 to 5 tokens). This high-level abstraction significantly improves usability and maintainability compared to procedural "spaghetti" code.
Optimization and Runtime Performance
The system's "brain" is its cost-based optimizer. It explores thousands of possible execution plans and selects the most efficient one based on document characteristics. For example, it might decide to find names first if that operation is computationally "cheaper" than running a complex regex for phone numbers, subsequently limiting the regex search to the immediate vicinity of found names. This automated optimization can find strategies up to 20 times faster than those a human would manually code.
The runtime is a compact Java-based engine designed for high throughput and minimal memory footprint. It features a specialized garbage collection system for text spans, allowing it to process massive documents with as little as 10MB of RAM. This efficiency makes SystemT suitable for everything from cloud-scale processing to client-side applications.
Key Results and Impact
SystemT has been evaluated across diverse real-world domains, including financial reports, healthcare data, and social media. Key results include:
- Throughput: Achieves an order of magnitude higher throughput than state-of-the-art grammar-based IE systems.
- Efficiency: Automated optimization consistently outperforms manual implementations by significant margins (often 20x faster).
- Scalability: Successfully handles petabytes of data in cloud environments while maintaining a low memory footprint.
- Deployment: The system has been successfully deployed across a wide array of IBM's enterprise products, proving its viability in diverse, high-stakes environments.
Conclusion
By decoupling logic from execution, SystemT allows developers to focus on extraction quality while the system handles performance. While the current focus is on rule-based declarative logic, the architecture provides a foundation for integrating machine learning models as components within AQL. The release of SystemT serves as an invitation to the research community to further explore building IE systems that are both scalable and usable.
Summary updated