lyrics-transcriber 0.55.3__py3-none-any.whl → 0.56.1__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/web_assets/assets/{index-BjASXC8R.js → index-C6nHrD6T.js} +2 -2
- lyrics_transcriber/frontend/web_assets/assets/{index-BjASXC8R.js.map → index-C6nHrD6T.js.map} +1 -1
- lyrics_transcriber/frontend/web_assets/index.html +1 -1
- lyrics_transcriber/types.py +23 -19
- {lyrics_transcriber-0.55.3.dist-info → lyrics_transcriber-0.56.1.dist-info}/METADATA +1 -1
- {lyrics_transcriber-0.55.3.dist-info → lyrics_transcriber-0.56.1.dist-info}/RECORD +11 -11
- {lyrics_transcriber-0.55.3.dist-info → lyrics_transcriber-0.56.1.dist-info}/LICENSE +0 -0
- {lyrics_transcriber-0.55.3.dist-info → lyrics_transcriber-0.56.1.dist-info}/WHEEL +0 -0
- {lyrics_transcriber-0.55.3.dist-info → lyrics_transcriber-0.56.1.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
|
@@ -38915,7 +38915,7 @@ const theme = createTheme({
|
|
38915
38915
|
spacing: (factor) => `${0.6 * factor}rem`
|
38916
38916
|
// Further reduced from 0.8 * factor
|
38917
38917
|
});
|
38918
|
-
const version = "0.
|
38918
|
+
const version = "0.56.1";
|
38919
38919
|
const packageJson = {
|
38920
38920
|
version
|
38921
38921
|
};
|
@@ -38926,4 +38926,4 @@ ReactDOM$1.createRoot(document.getElementById("root")).render(
|
|
38926
38926
|
/* @__PURE__ */ jsxRuntimeExports.jsx(App, {})
|
38927
38927
|
] })
|
38928
38928
|
);
|
38929
|
-
//# sourceMappingURL=index-
|
38929
|
+
//# sourceMappingURL=index-C6nHrD6T.js.map
|