Skip to content

Refactor corpus import and add model-based topic/emotion visualization#140

Open
MaestroVaqueiro wants to merge 55 commits intotexttechnologylab:developfrom
MaestroVaqueiro:fallback/last-working-state
Open

Refactor corpus import and add model-based topic/emotion visualization#140
MaestroVaqueiro wants to merge 55 commits intotexttechnologylab:developfrom
MaestroVaqueiro:fallback/last-working-state

Conversation

@MaestroVaqueiro
Copy link

A file-based upload workflow now supports both the creation of new corpora and the addition of documents to existing ones. Support for CorpusConfig.json makes corpus configuration reusable and more consistent across imports. Import progress is tracked through unique import IDs and exposed in the UI with both status and detailed progress views. A central model table normalizes model metadata and enables topic and emotion annotations to be stored as explicit, model-linked entities. In the Document Reader, users can choose an analysis area and a specific model to explore shared and dedicated visualizations for topics and emotions.

duaakb and others added 30 commits September 15, 2025 11:25
Das Analyse tool nutzt nun das bereits existierende select zur Auswahl zum Speichern.
getCurrentUserId returned nun die jetzige User id.
…opics and Backfill sentencetopics.unifiedtopic_id
…on and rag-service flags on existing corporas
…timeline and heatmap views.

Also added visualization for Annotations for better overview.
Ph1l1ppGitHub and others added 25 commits March 10, 2026 14:54
- Added new 'Others' button to the viz navigation bar (alongside Topic, Sentiment, Emotion)
- Moved Semantic Density, Topic Entity, Topic Landscape, Topic Similarity and Sentence Topic Flow from Topic category into Others
- Refactored loadTopicMenu() to only handle Topic Models
- Added new loadOthersMenu() function to dynamically populate the Others dropdown
- Added click handler for others-menu-item to route to correct viz panels
- Fixed positioning of viz navigation bar: now left-aligned within sidebar instead of overlapping document area
…toggle buttons visible

feat: dynamic sentiment menu with 'No models found' fallback matching Topic and Emotion logic
…ing 'document_id' check to the SQL query in createSentenceEmotions. This prevents sentences in newly imported corpora from accidentally linking to emotions of older documents with identical text offsets, which caused foreign key constraint violations during deletion of corporas with the same documents but different models.
…the import modal in an already imported corpus
… Promise.all from failing when individual endpoints return no data
… visible in both landing-page.ftl and corpus-inspector.ftl
… errors when adding documents to one of these corporas. also removed submitCorpusImport() (part of old useless path import)
…fallback/last-working-state

# Conflicts:
#	uce.portal/uce.common/src/main/java/org/texttechnologylab/uce/common/services/PostgresqlDataInterface_Impl.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants