google / google/metrax

Update dev dependencies to Python 3.13

Open
#115 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
64
Forks
18
Avg merge
4h 46m
Merged PRs (30d)
1

Description

Running in Python 3.13 causes these tests to break:

```
======================================================== short test summary info =========================================================
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_bleu - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_bleu_merge - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_rouge_merge_rougeL - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_rouge_merge_rougeN - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_rouge_rougeL - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_rouge_rougeN - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
```

Since tensorflow-text doesn't support 3.13 yet, it causes this import to fail:
https://github.com/keras-team/keras-hub/blob/4de2ff65dd8ed699b00937681fd8d8f7d8c2edac/keras_hub/src/utils/tensor_utils.py#L13-L18

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.