https://github.com/gnames/gner
Global Named Entity Recognition
https://github.com/gnames/gner
Last synced: 5 months ago
JSON representation
Global Named Entity Recognition
- Host: GitHub
- URL: https://github.com/gnames/gner
- Owner: gnames
- License: mit
- Created: 2020-10-23T15:17:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-02T20:50:32.000Z (over 1 year ago)
- Last Synced: 2024-12-02T21:34:59.709Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gner
[](https://doi.org/10.5281/zenodo.14262551)
Global Named Entity Recognition
This project provides libraries that a shared between different named entity
recongition (NER) projects. In the future it might also have a command line
application that combines functionality of several NER projects.
## Usage
```go
func Example() {
text := "one\vtwo Poma- \t\r\n tomus " +
"dash -\nstandalone " +
"Tora-\nBora\n\rthree 1778,\n"
res := token.Tokenize([]rune(text), func(t token.TokenNER) token.TokenNER { return t })
fmt.Println(res[0].Cleaned())
fmt.Println(res[2].Cleaned())
// Output:
// one
// Pomatomus
}
```