You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/opt/venv/lib/python3.11/site-packages/fastlangid/langid.py", line 105, in predict
return self._predict_text(text, supplement_threshold=supplement_threshold, k=k, prob=prob, force_second=force_second)
File "/opt/venv/lib/python3.11/site-packages/fastlangid/langid.py", line 62, in _predict_text
labels, probs = self.model.predict(text, k=max(3, k))
File "/opt/venv/lib/python3.11/site-packages/fasttext/FastText.py", line 239, in predict
return labels, np.array(probs, copy=False)
ValueError: Unable to avoid copy while creating an array as requested.
If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x).
For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.
But I see that the dependency was archived. What are the alternatives to detect languages?
The text was updated successfully, but these errors were encountered:
I got this error when using the lib:
But I see that the dependency was archived. What are the alternatives to detect languages?
The text was updated successfully, but these errors were encountered: