Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sbl/ner
Named Entity Recognition for golang via MITIE
https://github.com/sbl/ner
Last synced: 2 days ago
JSON representation
Named Entity Recognition for golang via MITIE
- Host: GitHub
- URL: https://github.com/sbl/ner
- Owner: sbl
- License: mit
- Created: 2015-11-30T16:46:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T14:45:03.000Z (about 6 years ago)
- Last Synced: 2024-06-20T00:44:50.033Z (7 months ago)
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 32
- Watchers: 3
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NER
[![GoDoc](https://godoc.org/github.com/sbl/ner?status.svg)](https://godoc.org/github.com/sbl/ner)
[![Build Status](https://travis-ci.org/sbl/ner.svg?branch=travis)](https://travis-ci.org/sbl/ner)Named Entity Recognition for golang via the [MITIE (MIT Information
Extraction)](https://github.com/mit-nlp/MITIE) library.### Installation
- Install the MITIE library and header files. This does vary by platform. On a
mac the easiest way would be `brew install mitie`. You'd have build from
source on a linux system.
- The go bindings will fail if the MITIE header files and dynamic library are
not found.
- `go get github.com/sbl/ner`### Usage
See `_example/main.go` for a simple usage example. Training files in your
language of choice are required to be able to detect entities in text. See
https://github.com/mit-nlp/MITIE#initial-setup for reference.```
// In a nutshell
ext, err := ner.NewExtractor(path)
defer ext.Free()
if err != nil {
return
}tokens := ner.Tokenize(txt)
es, err := ext.Extract(tokens)
if err != nil {
return
}
```