Sign inSign up

gnames/netineti

By gnames

•Updated about 10 years ago

Scientific Name Finder in texts

Image
0

1.9K

gnames/netineti repository overview

⁠NetiNeti -- Scientific Names Discovery Tool

Gitter

⁠Setting up VirtualEnv (Linux)

  • install virtualenv (easy_install virtualenv or pip install virtualenv)
  • use the neti_env.py as the environment bootstrap (python neti_env.py ~/virtualenvs/neti)
  • this creates a local environment for the netineti project with all the dependencies installed
  • dependencies => pyyaml, nltk, nose, scikitlearn
  • source ~/virtualenvs/neti/bin/activate
  • use netineti

⁠Dependencies

  • nltk >= 2.09b3. Run nltk.download() to get neccessary corpus. Just download all the data and packages if you don't know which one to choose.

⁠Description

Neti-Neti scientific name finder. Input: Any text preferably in English Output: A list of Scientific Names in the text

To run it: (Add a config file named as neti_http_config.cfg in the folder config)

$ python neti_http_server.py

To use webservice:

$ ruby webservices/ruby/taxon_finder_web_service.rb

API: (use your server name instead of localhost:4567)

http://localhost:4567/find?type=url&input=http://www.bacterio.cict.fr/d/desulfotomaculum.html

or

http://localhost:4567/find?type=text&input=%22Mus%20musculus%22

⁠Files

FilesDescriptions
README.mdthis file
src/data/black_list.txt"black list" for pre filtering, common words to decrease number of false positives
src/data/white_list.txtbig training list, run by default
src/data/no_names.txttraining text w/o scientific names for negative examples
src/data/names_in_context.txttraining list of names and these names in a context of a sentence.
src/data/test.txtAmerican Seashells book (with scientific names) for testing purposes
src/neti_neti.pyMachine Learning based approach to find scientific names
src/neti_neti_helper.pymiscellaneous helper functions
src/neti_neti_trainer.pyScientific Name classifier -- given a name-like string it accepts or rejects it as a scientific name

⁠Usage

⁠Docker
docker run -d -p 0.0.0.0:6384:6384 --name netineti gnames/netineti

Using from (python) server:

  from netineti import *

  # for long training set, about 20 min on slow machine
  nnt = NetiNetiTrain()
  # you can use other training text if you supply it as an argument:
  # nnt = NetiNetiTrain("species_train.txt")

  nn = NetiNeti(nnt)

⁠Example Urls to try:

⁠New Species

http://www.sciencedaily.com/news/plants_animals/new_species/⁠

http://www.livescience.com/environment/top-10-new-species-1.html⁠

http://www.sciencedaily.com/releases/2010/04/100407104032.htm⁠

http://species.asu.edu/2009_species05⁠

⁠BHL BOOKS

http://ia311319.us.archive.org/3/items/americanseashell00abbo/americanseashell00abbo_djvu.txt⁠

http://ia341016.us.archive.org/3/items/britishinsectsge00westuoft/britishinsectsge00westuoft_djvu.txt⁠

Note: offsets do not work in this version.

Tag summary

Content type

Image

Digest

Size

280.6 MB

Last updated

about 10 years ago

docker pull gnames/netineti