Skip to content

span_marker 1.6.0: Add missing sklearn (scikit-learn) dependency #69

@sanmai-NL

Description

@sanmai-NL
================================================================================== test session starts ===================================================================================
platform darwin -- Python 3.12.6, pytest-8.3.4, pluggy-1.5.0
rootdir: /Users/myuser/devel/app
configfile: pyproject.toml
testpaths: tests
plugins: asyncio-0.24.0, time-machine-2.16.0, anyio-4.6.2.post1
asyncio: mode=Mode.STRICT, default_loop_scope=function
collected 1 item / 1 error                                                                                                                                                               

========================================================================================= ERRORS =========================================================================================
________________________________________________________________ ERROR collecting tests/dirty_data_dive/test_partners.py _________________________________________________________________
ImportError while importing test module '/Users/myuser/devel/app/tests/dirty_data_dive/test_partners.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/dirty_data_dive/test_partners.py:8: in <module>
    from app.dirty_data_dive import KnowledgePlatformDocument
src/main/dirty_data_dive/__init__.py:11: in <module>
    from span_marker import SpanMarkerModel
.venv/lib/python3.12/site-packages/span_marker/__init__.py:16: in <module>
    from span_marker.trainer import Trainer
.venv/lib/python3.12/site-packages/span_marker/trainer.py:19: in <module>
    from span_marker.evaluation import compute_f1_via_seqeval
.venv/lib/python3.12/site-packages/span_marker/evaluation.py:6: in <module>
    from sklearn.exceptions import UndefinedMetricWarning
E   ModuleNotFoundError: No module named 'sklearn'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions