Comments (4)
got it working with spacy 3.
from ewiser.
@LifeIsStrange Here you go. It's a simple trick for spaCy 3 requirements. @mbevila It'd be great if we also modified the code in disambiguate.py. By the way, is there a way to see sense keys?
from ewiser.
@mirfan899 what fixed the issue?
from ewiser.
import spacy
from ewiser.spacy.disambiguate import Disambiguator
from spacy.language import Language
nlp = spacy.load("en_core_web_sm", disable=['parser', 'ner'])
@Language.factory('wsd')
def wsd_engine(nlp, name):
return Disambiguator('ewiser/ewiser.semcor+wngt.pt', lang="en")
nlp.add_pipe('wsd', last=True)
doc = nlp("I want the peach cobbler.")
for w in doc:
if w._.offset:
print(w.text, w.lemma_, w.pos_, w._.offset, w._.synset.definition())
from ewiser.
Related Issues (15)
- code HOT 1
- Memory Issue while running model as REST service HOT 8
- ModuleNotFoundError: No module named 'ewiser.spacy' HOT 2
- Loading checkpoints HOT 2
- Installation issue with torch-scatter HOT 3
- Terminate called after throwing an instance of 'std::bad_alloc' HOT 1
- What do you mean by WordNet offset? HOT 3
- multilingual datasets and model HOT 4
- Multilingual language mapper is not publicly shared HOT 1
- Spacy plugin HOT 1
- Spacy plugin broken by change in Spacy 3.0 HOT 4
- Babelnet 4.0.1 Dependency HOT 2
- Installation issue HOT 2
- Notebooks? HOT 1
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 ewiser.