letuananh / lelesk Goto Github PK
View Code? Open in Web Editor NEWA fast Python 3 Word-Sense Disambiguation package (WSD) using the extended LESK algorithm
Home Page: https://letuananh.github.io/lelesk/
License: MIT License
A fast Python 3 Word-Sense Disambiguation package (WSD) using the extended LESK algorithm
Home Page: https://letuananh.github.io/lelesk/
License: MIT License
Hello and thank you for making your code available to the public.
A couple of questions:
Is there info or documentation and use examples for methods and classes to be import from inside an iPython shell or from within Python code ? (The alternative would be to dig into your code directly.) Concretely I am interested in using 'lelesk' in a way similar to 'lesk', i.e. propose ambiguous terms and context sentence and return the most likely synset.
I installed yawlib
as well as db files in ~/wordnet, checked that yawlib is operational (python -m yawlib lemma research
), but python -m lelesk wsd "I go to the bank to get money"
produces segmentation fault from within a Python v 3.7.1 virtual environment. Any idea why that could be ? ... my VENV is set up with `pyenv for what it's worth.
The install procedure is not clear. It looks like lelesk is installed with NLTK? I installed nltk and after that I got
$ python3 lelesk/wsdtk.py -W car -x 'the car is on the road'
Traceback (most recent call last):
File "lelesk/wsdtk.py", line 60, in <module>
from .main import LeLeskWSD, LeskCache
ModuleNotFoundError: No module named '__main__.main'; '__main__' is not a package
leme:lelesk ar$ pwd
/Users/ar/work/lelesk
Not clear how to install this package. Can you elaborate the instructions?
Can you make to be importable in python script?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.