skyeng / php-lemmatizer Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi, I am working on a PHP lemmatizer as well for an NLP project. Perhaps we should combine knowledge/effort. You seem to have a good start. Mine is really basic, but generally doing the job of producing real words.
Andrew Ferlitsch - [email protected]
https://github.com/andrewferlitsch/Quisse/blob/master/nlp.php
I was testing this and I found out that "wives" was not translating to "wife" because "wives" is defined in the noun list and the verb list. "wives" is not a verb so I removed it from that list on my copy and it now works.
I would normally submit a PR to fix this for you but I'm extremely backed up on work right now so I dont have spare time. Its a quick fix at least.
I was expecting $lemmatizer->getLemmas('1')
to return same 1
or error, but instead it gives ["floreant.", "floreat"]
Probably should check if it's number and then don't try to fetch it from word list...
In composer.json
this line
"php": "^5.6"
won't allow a PHP 7 install. Perhaps
"php": ">=5.6"
would do the trick, as I don't see anything that would stop it working in PHP 7.
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.