Comments (2)
Oh, I forgot to mention, before that I got this error, which I fixed the following way:
src/helpers/entity_linker_loader.py
pipeline = ['tagger', 'parser', 'ner', 'entity_linker']
for pipe_name in pipeline:
# pipe = model.create_pipe(pipe_name)
model.add_pipe(pipe_name)
Error (truncated):
ValueError: [E966] `nlp.add_pipe` now takes the string name of the registered component factory, not a callable component. Expected string, but got <spacy.pipeline.tagger.Tagger object at 0x2b30698b0> (name: 'None').
- If you created your component with `nlp.create_pipe('name')`: remove nlp.create_pipe and call `nlp.add_pipe('name')` instead.
- If you passed in a component like `TextCategorizer()`: call `nlp.add_pipe` with the string name instead, e.g. `nlp.add_pipe('textcat')`.
- If you're using a custom component: Add the decorator `@Language.component` (for function components) or `@Language.factory` (for class components / factories) to your custom component and assign it a name, e.g. `@Language.component('your_name')`. You can then run `nlp.add_pipe('your_name')` to add it to the pipeline.
from elevant.
Thanks for reporting this. This should be a model version issues. I believe the models were trained with spaCy 2 still.
We had not tested the spaCy linker recently, since frankly the results were not very convincing.
I'll try to retrain the model but this was also done by a colleague a few years ago, the code is still based on spaCy 2 and there seem to have been plenty of changes in spaCy 3 that affect this code. I'll let you know if I make any progress.
from elevant.
Related Issues (14)
- Error while running evaluate_linking_results.py on new results file HOT 2
- Experiment working, but some parsing errors in the document display in GUI HOT 2
- Accidental experiment title cannot be expunged HOT 3
- GENRE using deprecated numpy attribute HOT 5
- Marking coref mentions in benchmark dataset HOT 4
- Article results not being displayed HOT 2
- Candidate set HOT 1
- Any plan of adding popular EL benchmarks HOT 3
- Error installing neuralcoref during docker build: Variables cannot be declared with 'cpdef'. Use 'cdef' instead. HOT 3
- Dependency conflict between radboud-el and xrenner HOT 4
- make download_all: alias_to_qids.db: truncated gzip input HOT 2
- Benchmark conversion from NIF format producing incorrect results HOT 2
- Experiment with REL failed on new benchmark dataset HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elevant.