mordecai3
mordecai3 copied to clipboard
Passing pre-initialized spaCy `nlp` object to `Geoparser` initialization causes error
There's an option to load the nlp object first, then pass it to Geoparser when that object gets initialized. However, it doesn't check that the ._.tensor attribute is loaded on the nlp object. Since it's not likely that people would think to do that (including me!) you can get an opaque error.
Either:
- remove option to pass in
nlpobject - check if the
nlpobject has the specialtensorattribute registered, and if not, try to add it.