Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A PHP library for getting a lemma from a given word, and getting a list of words that map to a lemma.

License

NotificationsYou must be signed in to change notification settings

writecrow/lemmatizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circle CI

A PHP library for getting a lemma from a given word, and getting a list of wordsthat map to a lemma. This does NOT support part of speech specification.

Source data

This lemma dictionary is largely based onWordNet, a project maintained at Princeton University.

Demo

See the lemmatizer in action athttps://lemmatizer.markfullmer.com/

Usage in an application

The includedindex.php file contains an interactive demo.

Make your code aware of the Lemmatizer class via your favorite method(e.g.,use writecrow\Lemmatizer\Lemmatizer;)

Then pass a word into one of the two methods

print Lemmatizer::getLemma('leaves');// Will print 'leaf'print Lemmatizer::getWordsFromLemma('leaf');// Will print 'leaves,leafing,leafed,leafs'

Testing

Unit Tests can be run (aftercomposer install) by executingvendor/bin/phpunit

About

A PHP library for getting a lemma from a given word, and getting a list of words that map to a lemma.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp