Fix test errors of nltk and numpy (#1335)

* Fix test errors with nltk 3.8.2

* Fix test errors with numpy large

* Fix test errors with numpy large
This commit is contained in:
Li Jiang
2024-08-12 08:14:21 +08:00
committed by GitHub
parent 52627ff14b
commit a17c6e392e
2 changed files with 7 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ setuptools.setup(
"dataclasses",
"transformers[torch]==4.26",
"datasets",
"nltk",
"nltk<=3.8.1", # 3.8.2 doesn't work with mlflow
"rouge_score",
"hcrystalball==0.1.10",
"seqeval",
@@ -117,14 +117,14 @@ setuptools.setup(
"hf": [
"transformers[torch]==4.26",
"datasets",
"nltk",
"nltk<=3.8.1",
"rouge_score",
"seqeval",
],
"nlp": [ # for backward compatibility; hf is the new option name
"transformers[torch]==4.26",
"datasets",
"nltk",
"nltk<=3.8.1",
"rouge_score",
"seqeval",
],

View File

@@ -151,6 +151,10 @@ def test_numpy():
print(automl.predict(12))
@pytest.mark.skipif(
sys.platform in ["darwin"],
reason="do not run on mac os",
)
def test_numpy_large():
import numpy as np
import pandas as pd