diff --git a/electron/main/nlp/segmenter.ts b/electron/main/nlp/segmenter.ts index b838972..b4cb766 100644 --- a/electron/main/nlp/segmenter.ts +++ b/electron/main/nlp/segmenter.ts @@ -46,11 +46,11 @@ export const POS_TAG_DEFINITIONS: PosTagInfo[] = [ { tag: 'nt', name: '机构名', description: '机构团体名', meaningful: true }, { tag: 'nz', name: '其他专名', description: '其他专有名词', meaningful: true }, { tag: 'nw', name: '作品名', description: '作品名', meaningful: true }, - // 动词类 - { tag: 'v', name: '动词', description: '普通动词', meaningful: true }, + // 动词类(普通动词通常不太有意义,如"是""有""说"等) + { tag: 'v', name: '动词', description: '普通动词', meaningful: false }, { tag: 'vn', name: '动名词', description: '动名词', meaningful: true }, - { tag: 'vd', name: '副动词', description: '副动词', meaningful: true }, - { tag: 'vg', name: '动语素', description: '动词性语素', meaningful: true }, + { tag: 'vd', name: '副动词', description: '副动词', meaningful: false }, + { tag: 'vg', name: '动语素', description: '动词性语素', meaningful: false }, // 形容词类 { tag: 'a', name: '形容词', description: '普通形容词', meaningful: true }, { tag: 'an', name: '名形词', description: '名形词', meaningful: true }, diff --git a/src/components/analysis/quotes/WordcloudTab.vue b/src/components/analysis/quotes/WordcloudTab.vue index 2fb3c06..05cc20e 100644 --- a/src/components/analysis/quotes/WordcloudTab.vue +++ b/src/components/analysis/quotes/WordcloudTab.vue @@ -41,14 +41,14 @@ const stats = ref({ uniqueWords: 0, }) -// 颜色方案 -const colorScheme = ref<'default' | 'warm' | 'cool' | 'rainbow'>('default') +// 颜色方案(固定为默认) +const colorScheme = 'default' as const -// 字体大小倍率 -const sizeScale = ref(1) +// 字体大小倍率(默认大) +const sizeScale = ref(1.25) -// 最大显示词数 -const maxWords = ref(100) +// 最大显示词数(默认 150) +const maxWords = ref(150) // 词性过滤模式 const posFilterMode = ref('meaningful') @@ -78,13 +78,6 @@ const posFilterModeOptions = computed(() => [ { label: t('posFilter.custom'), value: 'custom' }, ]) -// 配色方案选项 -const colorSchemeOptions = computed(() => [ - { label: t('colors.default'), value: 'default' }, - { label: t('colors.warm'), value: 'warm' }, - { label: t('colors.cool'), value: 'cool' }, - { label: t('colors.rainbow'), value: 'rainbow' }, -]) // 词数选项 const maxWordsOptions = [ @@ -297,12 +290,6 @@ onMounted(() => { - -
-

{{ t('config.colorScheme') }}

- -
-

{{ t('config.sizeScale') }}

@@ -395,7 +382,6 @@ onMounted(() => { "uniqueLabel": "独立词" }, "config": { - "colorScheme": "配色方案", "maxWords": "显示词数", "sizeScale": "字体大小", "userFilter": "用户筛选", @@ -417,12 +403,6 @@ onMounted(() => { "selectAll": "全选", "clearAll": "清空" }, - "colors": { - "default": "默认", - "warm": "暖色", - "cool": "冷色", - "rainbow": "彩虹" - }, "empty": { "title": "暂无词云数据", "description": "当前筛选条件下没有足够的文本消息用于生成词云" @@ -440,7 +420,6 @@ onMounted(() => { "uniqueLabel": "Unique" }, "config": { - "colorScheme": "Color scheme", "maxWords": "Max words", "sizeScale": "Font size", "userFilter": "User filter", @@ -462,12 +441,6 @@ onMounted(() => { "selectAll": "All", "clearAll": "Clear" }, - "colors": { - "default": "Default", - "warm": "Warm", - "cool": "Cool", - "rainbow": "Rainbow" - }, "empty": { "title": "No word cloud data", "description": "Not enough text messages to generate a word cloud with current filters" diff --git a/src/pages/group-chat/components/QuotesTab.vue b/src/pages/group-chat/components/QuotesTab.vue index ef77943..c0c7d2b 100644 --- a/src/pages/group-chat/components/QuotesTab.vue +++ b/src/pages/group-chat/components/QuotesTab.vue @@ -18,13 +18,13 @@ const props = defineProps<{ // 子 Tab 配置 const subTabs = computed(() => [ + { id: 'wordcloud', label: t('wordcloud'), icon: 'i-heroicons-cloud' }, { id: 'hot-repeat', label: t('hotRepeat'), icon: 'i-heroicons-fire' }, { id: 'catchphrase', label: t('catchphrase'), icon: 'i-heroicons-chat-bubble-bottom-center-text' }, - { id: 'wordcloud', label: t('wordcloud'), icon: 'i-heroicons-cloud' }, { id: 'keyword', label: t('keywordAnalysis'), icon: 'i-heroicons-magnifying-glass' }, ]) -const activeSubTab = ref('hot-repeat') +const activeSubTab = ref('wordcloud')