Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
2c1b0bc
Add depth score metric end to end
Sohaib-Ahmed21 Jan 25, 2026
c8be46a
Fix pre-commit failures and add reduction param to main interface
Sohaib-Ahmed21 Jan 25, 2026
b57be3f
Rename measure param to depth_measure and provided test coverage for …
Sohaib-Ahmed21 Jan 25, 2026
0b7a8f5
Add reference to original implementation properly
Sohaib-Ahmed21 Jan 25, 2026
7e0929c
Add new depthscore specific dependencies to text dependencies in repo
Sohaib-Ahmed21 Jan 25, 2026
e514181
Fix typo
Sohaib-Ahmed21 Jan 25, 2026
cd1a94f
Handle depth score specific dependencies, their imports and related t…
Sohaib-Ahmed21 Jan 26, 2026
52a3d3e
Fix RST formatting error
Sohaib-Ahmed21 Jan 26, 2026
8ef1573
Change POT version to >=0.9.0 to fix Cython dependency issue in CI
Sohaib-Ahmed21 Jan 26, 2026
9d528ff
Merge branch 'master' into feature/854_depth_score_metric
Sohaib-Ahmed21 Jan 26, 2026
0454a48
Proper test skipping for DepthScore when nlg_eval_via_simi_measures i…
Sohaib-Ahmed21 Jan 27, 2026
b5bfe9b
Merge branch 'feature/854_depth_score_metric' of https://github.com/S…
Sohaib-Ahmed21 Jan 27, 2026
dc90a55
Fix code quality check failures
Sohaib-Ahmed21 Jan 29, 2026
3388d88
Merge branch 'master' into feature/854_depth_score_metric
Sohaib-Ahmed21 Jan 29, 2026
d5d520a
Merge branch 'master' into feature/854_depth_score_metric
Sohaib-Ahmed21 Jan 30, 2026
a52c238
Merge branch 'master' into feature/854_depth_score_metric
Sohaib-Ahmed21 Mar 8, 2026
9f6b059
Merge branch 'master' into feature/854_depth_score_metric
Sohaib-Ahmed21 Mar 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/source/links.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
.. _Mean Reciprocal Rank: https://en.wikipedia.org/wiki/Mean_reciprocal_rank
.. _BERT_score: https://github.com/Tiiiger/bert_score/blob/master/bert_score/utils.py
.. _Bert_score Evaluating Text Generation: https://arxiv.org/abs/1904.09675
.. _DepthScore Evaluating Text Generation: https://arxiv.org/abs/2103.12711
.. _DEPTH_score: https://github.com/PierreColombo/nlg_eval_via_simi_measures/blob/main/nlg_eval_via_simi_measures/depth_score.py
.. _BLEU score: https://en.wikipedia.org/wiki/BLEU
.. _BLEU: https://www.semanticscholar.org/paper/Bleu%3A-a-Method-for-Automatic-Evaluation-of-Machine-Papineni-Roukos/d7da009f457917aa381619facfa5ffae9329a6e9
.. _SacreBLEU: https://github.com/mjpost/sacrebleu
Expand Down
21 changes: 21 additions & 0 deletions docs/source/text/depth_score.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. customcarditem::
:header: Depth Score
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg
:tags: Text

.. include:: ../links.rst

###########
Depth Score
###########

Module Interface
________________

.. autoclass:: torchmetrics.text.depth_score.DepthScore
:exclude-members: update, compute

Functional Interface
____________________

.. autofunction:: torchmetrics.functional.text.depth_score.depth_score
4 changes: 4 additions & 0 deletions requirements/text.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ transformers >=4.43.0,<4.57
mecab-python3 >=1.0.6, <1.1.0
ipadic >=1.0.0, <1.1.0
sentencepiece >=0.2.0, <0.3.0

scikit-learn >1.5.0, <1.8.0
POT >=0.9.0, <=0.9.6
geomloss ==0.2.6 # strict
3 changes: 2 additions & 1 deletion src/torchmetrics/functional/text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

if _TRANSFORMERS_GREATER_EQUAL_4_4:
from torchmetrics.functional.text.bert import bert_score
from torchmetrics.functional.text.depth_score import depth_score
from torchmetrics.functional.text.infolm import infolm

__all__ += ["bert_score", "infolm"]
__all__ += ["bert_score", "depth_score", "infolm"]
Loading
Loading