No result difference using word2vec vectors for training NER in spacy 3 #9334
-
Hello,
I have trained both models 100 epochs in CPU with the same data. But my test result producing a similar F1 score 92.35. Same validation result also: 91.50. NB: I have prepared the vector using How to reproduce the behaviourTrain-1 python -m spacy train config.cfg \
--output ./logs/train1 \
--paths.train ./data/traindata/train.spacy \
--paths.dev ./data/traindata/val.spacy \
--paths.vectors ./vector/mycustom_vector_md \
-g -1 Train-2 python -m spacy train config.cfg \
--output ./logs/train2 \
--paths.train ./data/traindata/train.spacy \
--paths.dev ./data/traindata/val.spacy \
-g -1 Your Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
I suspect you are not enabling the use of static vectors. See the docs - is |
Beta Was this translation helpful? Give feedback.
-
Hi @polm , |
Beta Was this translation helpful? Give feedback.
-
Hi @polm , |
Beta Was this translation helpful? Give feedback.
-
I have successfully regenerated my test results just like spacy 2(Not exact but absolute value is now similar).
According to the documentation I replaced it by
Now it's working just like spacy 2. |
Beta Was this translation helpful? Give feedback.
I have successfully regenerated my test results just like spacy 2(Not exact but absolute value is now similar).
Solution I found in spacy documentation https://spacy.io/api/architectures#parser
While generating base_config.cfg it's automatically selecting the tok2vec.model as
According to the documentation I replaced it by
Now it's working just like spacy 2.