spaCy version 2.0.0a19
Platform Linux-4.4.0-98-generic-x86_64-with-Ubuntu-16.04-xenial
Location /home/damiano/lavoro/python/nlp/spacy
Python version 3.5.2
Models en, it
Hello,
this example: https://github.com/explosion/spaCy/blob/v2.0.0a18/examples/training/train_textcat.py
give me this output:
Created blank 'en' model
Loading IMDB data...
Using 2000 training examples
Training the model...
LOSS P R F
Traceback (most recent call last):
File "/home/damiano/lavoro/python/parser/train_ner.py", line 135, in <module>
plac.call(main)
File "/home/damiano/lavoro/python/base/lib/python3.5/site-packages/plac_core.py", line 328, in call
cmd, result = parser.consume(arglist)
File "/home/damiano/lavoro/python/base/lib/python3.5/site-packages/plac_core.py", line 207, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/home/damiano/lavoro/python/parser/train_ner.py", line 73, in main
scores = evaluate(nlp.tokenizer, textcat, dev_texts, dev_cats)
File "/home/damiano/lavoro/python/parser/train_ner.py", line 115, in evaluate
for i, doc in enumerate(textcat.pipe(docs)):
File "pipeline.pyx", line 778, in pipe
File "pipeline.pyx", line 790, in spacy.pipeline.TextCategorizer.set_annotations
File "doc.pyx", line 843, in spacy.tokens.doc.Doc.extend_tensor
ValueError: cannot resize an array that references or is referenced
by another array in this way. Use the resize function
We should update it for this new release.
Thanks, fixed!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Thanks, fixed!