Shubham Gupta
Shubham Gupta
"Updated in commit 329d981: made self-contained — inlined _edit_distance and full Metric implementation directly, removing dependency on unmerged PR #3638. All 15 tests pass on master."
Thank you! I'll reach out to @Manimaran-tech on PR #3638 to check their status. Will follow up shortly.
Hi @aaishwarymishra, following up after reaching out to @Manimaran-tech on PR #3638 — I haven't heard back from them in the two weeks since. Given the WER PR appears inactive,...
Thanks for the review @aaishwarymishra! Addressing all three points: 1. The explicit `list(p)` is for character tokenization — converting a string to a list of individual characters. Happy to simplify...
Hi @aaishwarymishra, addressed all three points in the latest commit: 1. **`list(p)` / `list(r)`** — removed. Strings are already character sequences so direct iteration is equivalent and cleaner. `_edit_distance` works...
Thanks @aaishwarymishra! Addressed in latest commit: Removed the redundant element-level isinstance loops from update() Fixed docstring: "receive output" → "receive input", removed unsupported dict form Consolidated y_pred/y description per your...
Hi @aaishwarymishra, fixed both issues: 1. Switched example from `.. code-block:: python` to `.. testcode::` / `.. testoutput::` format (matching Bleu's convention) 2. Ran pre-commit hooks — ruff-format applied, all...
Thanks @aaishwarymishra! Removed the `super().reset()` call — confirmed `Metric.reset()` is abstract with no body so calling it was unnecessary. Checked other metrics for reference as suggested. All 15 tests still...
Hi @aaishwarymishra, I've been reviewing more carefully now.
Awesome added 3 changes let me know if anything else needed.