Skip to content

[Bug]: Drop sentencepiece dependency #3676

@tibbe

Description

@tibbe

Describe the bug

sentencepiece seems no longer maintained--the last release was Feb 19, 2024-- and doesn't build on Python 3.13 on several platforms/configurations (e.g. macOS):

Since the package seems unmaintained, could flair drop the [sentencepiece] part of its transformers[sentencepiece] dependency so flair itself can build on macOS with Python 3.13?

To Reproduce

Build the latest sentencepiece (0.2.0) on e.g. macOS usng Python 3.13.

Expected behavior

flair builds on macOS with Python 3.13.

Logs and Stack traces


Screenshots

No response

Additional Context

No response

Environment

(P.S. The collect_env.py link above is wrong, it's missing the repo part of the URL.)

#### Versions:
##### Flair
0.15.0
##### Pytorch
2.5.1
##### Transformers
4.47.1
#### GPU
False

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions