Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindNamesJSON ¶
FindNamesJSON takes a text and returns scientific names found in the text, as well as tokens
func UniqueNameStrings ¶ added in v0.6.0
UniqueNameStrings takes a list of names, and returns a list of unique name-strings
Types ¶
type Meta ¶
type Meta struct { // Date represents time when output was generated. Date time.Time `json:"date"` // Language of the document Language string `json:"language"` // TotalTokens is a number of 'normalized' words in the text TotalTokens int `json:"total_words"` // TotalNameCandidates is a number of words that might be a start of // a scientific name TotalNameCandidates int `json:"total_candidates"` // TotalNames is a number of scientific names found TotalNames int `json:"total_names"` // CurrentName (optional) is the index of the names array that designates a // "position of a cursor". It is used by programs like gntagger that allow // to work on the list of found names interactively. CurrentName int `json:"current_index,omitempty"` }
Meta contains meta-information of name-finding result.
type Name ¶
type Name struct { Type string `json:"type"` Verbatim string `json:"verbatim"` Name string `json:"name"` Odds float64 `json:"odds,omitempty"` OddsDetails token.OddsDetails `json:"odds_details,omitempty"` OffsetStart int `json:"start"` OffsetEnd int `json:"end"` Annotation string `json:"annotation"` Verification verifier.Verification `json:"verification,omitempty"` }
Name represents one found name.
type OddsDatum ¶
OddsDatum is a simplified version of a name, that stores boolean decision (Name/NotName), and corresponding odds of the name.
type Output ¶
Output type is the result of name-finding.
func CollectOutput ¶
CollectOutput takes tagged tokens and assembles gnfinder output out of them.
Directories ¶
Path | Synopsis |
---|---|
package dict contains dictionaries for finding scientific names
|
package dict contains dictionaries for finding scientific names |
scripts
|
|
Package token deals with breaking a text into tokens.
|
Package token deals with breaking a text into tokens. |
Package util contains useful shared functions
|
Package util contains useful shared functions |
Click to show internal directories.
Click to hide internal directories.