Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -42,6 +42,25 @@ Here is how to use this model to detect the language of a given text:
42
  array([0.61224753, 0.21323682, 0.09696738, 0.01359863, 0.01319415]))
43
  ```
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  ### Limitations and bias
46
 
47
  Even if the training data used for this model could be characterized as fairly neutral, this model can have biased predictions.
 
42
  array([0.61224753, 0.21323682, 0.09696738, 0.01359863, 0.01319415]))
43
  ```
44
 
45
+ If you have problems with the “numpy” library, like the follow:
46
+
47
+ ```bash
48
+ Traceback (most recent call last):
49
+ File "path/to/your/file.py", line 9, in <module>
50
+ labels, probs = model.predict("Hello, world!", k=5)
51
+ File "path/to/your/folder/.env/lib/python3.10/site-packages/fasttext/FastText.py", line 239, in predict
52
+ return labels, np.array(probs, copy=False)
53
+ ValueError: Unable to avoid copy while creating an array as requested.
54
+ 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).
55
+ For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.
56
+ ```
57
+
58
+ let install this version (update October 10 2024):
59
+
60
+ ``` bash
61
+ pip install numpy==1.23.5
62
+ ```
63
+
64
  ### Limitations and bias
65
 
66
  Even if the training data used for this model could be characterized as fairly neutral, this model can have biased predictions.