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 lemmatizer implemented in Go

License

NotificationsYou must be signed in to change notification settings

aaaton/golem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is a dictionary based lemmatizer written in go.

Since v4 all dictionaries need to be gotten individually.

go get github.com/aaaton/golem/v4

What?

Alemmatizer is a tool that finds the base form of words.

LangInputOutput
Englishaligningalign
Swedishsprungitspringa
Frenchabattaientabattre

It's based on the dictionaries found onmichmech/lemmatization-lists, which are available under theOpen Database License. This project would not be feasible without them.

Languages

At the moment golem supports English, Swedish, French, Spanish, Italian & German, but adding another language should be no more trouble than getting the dictionary for that language. Some of which are already available on lexiconista. Please let me know if there is something you would like to see in here, or fork the project and create a pull request.

English

go get github.com/aaaton/golem/v4/dicts/en

Swedish

go get github.com/aaaton/golem/v4/dicts/sv

French

go get github.com/aaaton/golem/v4/dicts/fr

German

go get github.com/aaaton/golem/v4/dicts/de

Spanish

go get github.com/aaaton/golem/v4/dicts/es

Italian

go get github.com/aaaton/golem/v4/dicts/it

Basic usage

package mainimport ("github.com/aaaton/golem/v4""github.com/aaaton/golem/v4/dicts/en")funcmain() {// the language packages are available under golem/dicts// "en" is for englishlemmatizer,err:=golem.New(en.New())iferr!=nil {panic(err)}word:=lemmatizer.Lemma("Abducting")ifword!="abduct" {panic("The output is not what is expected!")}}

Contributors

  • axamon
  • charlesgiroux
  • glaslos

[8]ページ先頭

©2009-2025 Movatter.jp