lyrics-transcriber 0.55.1__py3-none-any.whl → 0.56.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lyrics_transcriber/correction/anchor_sequence.py +8 -1
- lyrics_transcriber/frontend/package.json +1 -1
- lyrics_transcriber/frontend/tsconfig.tsbuildinfo +1 -1
- lyrics_transcriber/frontend/web_assets/assets/index-B35iaySc.js +38929 -0
- lyrics_transcriber/frontend/web_assets/assets/index-B35iaySc.js.map +1 -0
- lyrics_transcriber/frontend/web_assets/index.html +13 -0
- lyrics_transcriber/frontend/web_assets/vite.svg +1 -0
- lyrics_transcriber/types.py +11 -6
- {lyrics_transcriber-0.55.1.dist-info → lyrics_transcriber-0.56.0.dist-info}/METADATA +1 -1
- {lyrics_transcriber-0.55.1.dist-info → lyrics_transcriber-0.56.0.dist-info}/RECORD +13 -10
- lyrics_transcriber/frontend/.yarn/install-state.gz +0 -0
- {lyrics_transcriber-0.55.1.dist-info → lyrics_transcriber-0.56.0.dist-info}/LICENSE +0 -0
- {lyrics_transcriber-0.55.1.dist-info → lyrics_transcriber-0.56.0.dist-info}/WHEEL +0 -0
- {lyrics_transcriber-0.55.1.dist-info → lyrics_transcriber-0.56.0.dist-info}/entry_points.txt +0 -0
@@ -87,8 +87,15 @@ class AnchorSequenceFinder:
|
|
87
87
|
self.logger.debug(f"_create_anchor called for ngram: '{' '.join(ngram)}' at position {trans_pos}")
|
88
88
|
if len(matching_sources) >= self.min_sources:
|
89
89
|
confidence = len(matching_sources) / total_sources
|
90
|
+
# Use new API to avoid setting _words field
|
90
91
|
anchor = AnchorSequence(
|
91
|
-
|
92
|
+
id=WordUtils.generate_id(),
|
93
|
+
transcribed_word_ids=[WordUtils.generate_id() for _ in ngram],
|
94
|
+
transcription_position=trans_pos,
|
95
|
+
reference_positions=matching_sources,
|
96
|
+
reference_word_ids={source: [WordUtils.generate_id() for _ in ngram]
|
97
|
+
for source in matching_sources.keys()},
|
98
|
+
confidence=confidence
|
92
99
|
)
|
93
100
|
self.logger.debug(f"Found anchor sequence: '{' '.join(ngram)}' (confidence: {confidence:.2f})")
|
94
101
|
return anchor
|
@@ -1 +1 @@
|
|
1
|
-
{"root":["./src/
|
1
|
+
{"root":["./src/App.tsx","./src/api.ts","./src/main.tsx","./src/theme.ts","./src/types.ts","./src/validation.ts","./src/vite-env.d.ts","./src/components/AddLyricsModal.tsx","./src/components/AudioPlayer.tsx","./src/components/CorrectionMetrics.tsx","./src/components/EditActionBar.tsx","./src/components/EditModal.tsx","./src/components/EditTimelineSection.tsx","./src/components/EditWordList.tsx","./src/components/FileUpload.tsx","./src/components/FindReplaceModal.tsx","./src/components/Header.tsx","./src/components/LyricsAnalyzer.tsx","./src/components/ModeSelector.tsx","./src/components/PreviewVideoSection.tsx","./src/components/ReferenceView.tsx","./src/components/ReviewChangesModal.tsx","./src/components/SegmentDetailsModal.tsx","./src/components/TimelineEditor.tsx","./src/components/TimingOffsetModal.tsx","./src/components/TranscriptionView.tsx","./src/components/WordDivider.tsx","./src/components/shared/constants.ts","./src/components/shared/styles.ts","./src/components/shared/types.ts","./src/components/shared/components/HighlightedText.tsx","./src/components/shared/components/SourceSelector.tsx","./src/components/shared/components/Word.tsx","./src/components/shared/hooks/useWordClick.ts","./src/components/shared/utils/keyboardHandlers.ts","./src/components/shared/utils/localStorage.ts","./src/components/shared/utils/referenceLineCalculator.ts","./src/components/shared/utils/segmentOperations.ts","./src/components/shared/utils/timingUtils.ts","./src/components/shared/utils/wordUtils.ts","./src/hooks/useManualSync.ts","./src/types/global.d.ts"],"version":"5.6.3"}
|