Introduction
Exploratory Data Analysis (EDA) for text remains a significant challenge for researchers and analysts. Currently, workflows are often bifurcated: analysts either rely on high-level statistical summaries—such as word clouds or topic models—that strip away vital context, or they perform labor-intensive manual reading of small, potentially unrepresentative document samples. While specialized tools exist for specific domains like social media analysis or literature reviews, they frequently suffer from rigid data representations. When analytical goals shift, users are forced to switch tools or write extensive custom code.
TEXTURE (Text Exploration with a Configurable Data Schema) addresses this gap by providing a general-purpose interactive environment. It allows users to explore text datasets through a flexible, multi-level schema that links high-level visualizations directly to raw document content.
System Design and Data Schema
The core innovation of TEXTURE is its Configurable Data Schema, which standardizes text data into five distinct types to support diverse analytical needs:
- Text: The raw document content.
- Single-Value: Document-level metadata (e.g., sentiment scores or publication years).
- List: Multi-value document attributes (e.g., a list of authors).
- Span List: Attributes mapped to specific text segments (e.g., named entities or specific keywords).
- Embedding: High-dimensional vectors for 2D projections and similarity search.
Technically, TEXTURE utilizes a relational backend powered by DuckDB and Mosaic. This architecture manages attributes as separate tables joined by foreign keys, enabling high-performance "cross-filtering." For instance, selecting a specific year in a metadata chart instantly updates word frequency distributions and filters the document view. The frontend is built with Svelte and integrates seamlessly into the Python ecosystem, allowing researchers to derive attributes in Jupyter notebooks before launching the TEXTURE interface.
The Contextualization Loop
A primary strength of TEXTURE is what the authors term the "contextualization loop." Unlike traditional tools where aggregation leads to a loss of context, TEXTURE maintains a direct link between summaries and raw text.
When a user interacts with a chart—for example, by clicking a bar representing a specific word—the system highlights every instance of that word within the filtered document list. This allows analysts to verify statistical trends against actual usage patterns. Furthermore, the inclusion of embedding-based similarity search facilitates the discovery of "unexpectedly similar" documents or near-duplicates, a task that is typically difficult to perform on the fly with standard coding workflows.
Evaluation and Insights
The authors evaluated TEXTURE through a user study involving ten participants, including NLP researchers and humanities scholars. Participants applied the tool to diverse real-world datasets, ranging from scientific abstracts (VisPubs) and LLM reasoning traces to Reddit posts and historical book corpora.
The study revealed several key results:
- Efficiency: Participants rated TEXTURE significantly higher than their baseline manual coding methods (Python/Pandas) for filtering subsets (4.8/5) and understanding text attributes (4.4/5).
- Data Quality Discovery: The tool's ability to provide both bird's-eye views and granular details led to significant findings. Two participants discovered major data quality issues, such as a single Reddit post appearing 5,000 times (30% of the dataset) and near-duplicate training prompts for LLMs.
- Hypothesis Iteration: Users reported that TEXTURE acted as a high-speed "handoff" between exploration and formal analysis, allowing them to quickly determine if a hypothesis was worth the effort of writing custom code.
Conclusion and Future Work
TEXTURE demonstrates that decoupling attribute derivation from exploration allows for a more flexible and powerful EDA experience. By providing a standardized way to interact with diverse text attributes, it helps bridge the gap between big data summaries and raw text.
Future work aims to reduce the "pre-processing hurdle" by allowing users to derive new attributes (such as topics or entities) directly within the UI using Large Language Models (LLMs). Additionally, while the current relational backend is efficient for datasets up to 16,000 documents, further optimizations are planned to scale the system for millions of records and to broaden its accessibility for non-technical domain experts.
Summary updated