stanfordnlp / stanza

Stanford NLP Python library for tokenization, sentence segmentation, NER, and parsing of many human languages
https://stanfordnlp.github.io/stanza/
Other
7.14k stars 880 forks source link

Drop dependency on tomli and prefer tomllib in the standard library for Python >= 3.11 #1388

Closed BLKSerene closed 2 months ago

BLKSerene commented 2 months ago

Description

This PR drops dependency on the 3rd-party package tomli and prefer tomllib (implementation based on tomli) added to the standard library in PEP 680 for Python >= 3.11.

Fixes Issues

Solves #1385, along with this commit.

Unit test coverage

Are there unit tests in place to make sure your code is functioning correctly? (see here for a simple example) No.

Known breaking changes/behaviors

No.