mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 13:47:13 +03:00
Address numpy 1.25 deprecations in test suite (#12684)
* Address upcoming numpy v1.25 deprecations in test suite
* Temporarily test most recent numpy prerelease in CI
* Revert "Temporarily test most recent numpy prerelease in CI"
This reverts commit d75a66e55e
.
This commit is contained in:
parent
6c2f601812
commit
0b190c5d42
|
@ -72,7 +72,7 @@ def entity_linker():
|
||||||
|
|
||||||
def create_kb(vocab):
|
def create_kb(vocab):
|
||||||
kb = InMemoryLookupKB(vocab, entity_vector_length=1)
|
kb = InMemoryLookupKB(vocab, entity_vector_length=1)
|
||||||
kb.add_entity("test", 0.0, zeros((1, 1), dtype="f"))
|
kb.add_entity("test", 0.0, zeros((1,), dtype="f"))
|
||||||
return kb
|
return kb
|
||||||
|
|
||||||
entity_linker = nlp.add_pipe("entity_linker")
|
entity_linker = nlp.add_pipe("entity_linker")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user