mirror of
https://github.com/mssoftjp/obsidian-voice-input.git
synced 2026-07-22 06:44:48 +00:00
Remove unused xmlPatternGroups configuration for consistency
Co-authored-by: mssoftjp <115339791+mssoftjp@users.noreply.github.com>
This commit is contained in:
parent
74255f1263
commit
4fb0ba7ca7
1 changed files with 0 additions and 28 deletions
|
|
@ -45,13 +45,6 @@ export interface RepetitionThresholds {
|
|||
export interface ContaminationPatterns {
|
||||
/** Instruction patterns to remove from text beginning */
|
||||
instructionPatterns: string[];
|
||||
/** XML pattern groups for different contexts */
|
||||
xmlPatternGroups: {
|
||||
completeXmlTags: string[];
|
||||
sentenceBoundedTags: string[];
|
||||
lineBoundedTags: string[];
|
||||
standaloneTags: string[];
|
||||
};
|
||||
/** Context patterns for general cleanup */
|
||||
contextPatterns: string[];
|
||||
/** Prompt snippet lengths for partial matching */
|
||||
|
|
@ -113,27 +106,6 @@ export const CLEANING_CONFIG: CleaningConfig = {
|
|||
'화자의 발언 내용만 정확히 기록해주세요'
|
||||
],
|
||||
|
||||
xmlPatternGroups: {
|
||||
completeXmlTags: [
|
||||
'/<TRANSCRIPT[^>]*>([\\s\\S]*?)<\\/TRANSCRIPT>/g',
|
||||
'/<transcript[^>]*>([\\s\\S]*?)<\\/transcript>/g',
|
||||
'/<TRANSCRIPTION[^>]*>([\\s\\S]*?)<\\/TRANSCRIPTION>/g'
|
||||
],
|
||||
sentenceBoundedTags: [
|
||||
'/<\\/?TRANSCRIPT[^>]*>/g',
|
||||
'/<\\/?transcript[^>]*>/g',
|
||||
'/<\\/?TRANSCRIPTION[^>]*>/g'
|
||||
],
|
||||
lineBoundedTags: [
|
||||
'/^\\s*<[^>]*>\\s*$/gm',
|
||||
'/^\\s*<\\/[^>]*>\\s*$/gm'
|
||||
],
|
||||
standaloneTags: [
|
||||
'/<[^>]*\\/>/g',
|
||||
'/<\\w+[^>]*>\\s*<\\/\\w+>/g'
|
||||
]
|
||||
},
|
||||
|
||||
contextPatterns: [
|
||||
// Universal context patterns (structural)
|
||||
'/^\\s*\\([^)]*Speaker[^)]*only[^)]*\\)\\s*$/gmi',
|
||||
|
|
|
|||
Loading…
Reference in a new issue