Spaces:
Sleeping
Sleeping
| from dataclasses import dataclass | |
| from typing import Tuple, Dict | |
| class Config: | |
| MAX_HISTORY_SIZE: int = 1000 | |
| BATCH_SIZE_LIMIT: int = 50 | |
| MAX_TEXT_LENGTH: int = 512 | |
| MIN_WORD_LENGTH: int = 2 | |
| CACHE_SIZE: int = 128 | |
| BATCH_PROCESSING_SIZE: int = 8 | |
| # Visualization settings | |
| FIGURE_SIZE_SINGLE: Tuple[int, int] = (8, 5) | |
| FIGURE_SIZE_BATCH: Tuple[int, int] = (12, 8) | |
| WORDCLOUD_SIZE: Tuple[int, int] = (10, 5) | |
| THEMES = { | |
| 'default': {'pos': '#4ecdc4', 'neg': '#ff6b6b'}, | |
| 'ocean': {'pos': '#0077be', 'neg': '#ff6b35'}, | |
| 'forest': {'pos': '#228b22', 'neg': '#dc143c'}, | |
| 'sunset': {'pos': '#ff8c00', 'neg': '#8b0000'} | |
| } | |
| STOP_WORDS = { | |
| 'the', 'a', 'an', 'and', 'or', 'but', 'in', 'on', 'at', 'to', | |
| 'for', 'of', 'with', 'by', 'is', 'are', 'was', 'were', 'be', | |
| 'been', 'have', 'has', 'had', 'will', 'would', 'could', 'should' | |
| } | |
| config = Config() |