name-spotter 0.2.4 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,95 +0,0 @@
1
- = name-spotter
2
-
3
- Finds biodiversity scientific names in texts using TaxonFinder (by Patrick Leary) or NetiNeti (by Lakshmi Manohar Akella) libraries. This gem works with ruby >= 1.9.2
4
-
5
- == Requirements
6
-
7
- * Python 2.6/2.7 with NLTK module, http://www.nltk.org/
8
-
9
- == Installation
10
-
11
- * Install the gem
12
-
13
- gem install name-spotter
14
-
15
- * Install and run TaxonFinder in a new terminal window
16
-
17
- wget http://taxon-finder.googlecode.com/files/taxon-finder.tar.gz
18
- tar zxvf taxon-finder.tar.gz
19
- cd taxon-finder
20
- perl server.pl
21
-
22
- * Install and run NetiNeti in a new terminal window
23
-
24
- wget https://github.com/mbl-cli/NetiNeti/zipball/master
25
- unzip master
26
- cd cd mbl-cli-NetiNeti-*
27
-
28
- #or
29
-
30
- git clone git://github.com/mbl-cli/NetiNeti.git
31
- cd NetiNeti
32
-
33
- #then
34
-
35
- sudo easy_install virtualenv
36
- sudo easy_install tornado
37
- python neti_env.py virtualenvs/neti
38
- cp config/neti_http_config.cfg.example config/neti_http_config.cfg
39
- python neti_tornado_server.py
40
-
41
- == Usage
42
-
43
- Fist you have to download TaxonFinder and NetiNeti services.
44
-
45
- * TaxonFinder: http://code.google.com/p/taxon-finder/
46
- * NetiNeti: https://github.com/mbl-cli/NetiNeti
47
-
48
- If you are using localhost and default ports:
49
-
50
- require 'name-spotter'
51
-
52
- neti_client = NameSpotter::NetiNetiClient.new()
53
- tf_client = NameSpotter::TaxonFinderClient.new()
54
- neti_name_spotter = NameSpotter.new(neti_client)
55
- tf_name_spotter = NameSpotter.new(tf_client)
56
-
57
- neti_name_spotter.find(your_text)
58
- tf_name_spotter.find(your_text)
59
-
60
- If you have installed NetiNeti and TaxonFinder on a machine with non-default port:
61
-
62
- neti_client = NameSpotter::NetiNetiClient.new(host: "example.com", port: 5555)
63
- #or
64
- neti_client = NameSpotter::NetiNetiClient.new(host: "123.123.123.111", port: 5555)
65
-
66
- If you want to get results in JSON or XML formats
67
-
68
- neti_name_spotter.find(your_text, "json")
69
- neti_name_spotter.find(your_text, "xml")
70
-
71
- == Development
72
-
73
- To run tests start TaxonFinder and NetiNeti on your local machine with default configurations and run
74
-
75
- rake
76
-
77
-
78
-
79
- == Contributing to name-spotter
80
-
81
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
82
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
83
- * Fork the project
84
- * Start a feature/bugfix branch
85
- * Commit and push until you are happy with your contribution
86
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
87
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
88
-
89
- == Copyright
90
-
91
- Authors: Chuck Ha, Anthony Goddard, Dmitry Mozzherin
92
-
93
- Copyright (c) 2012 Marine Biological Laboratory. See LICENSE.txt for
94
- further details.
95
-
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.4
@@ -1,9 +0,0 @@
1
- Feature: something something
2
- In order to something something
3
- A user something something
4
- something something something
5
-
6
- Scenario: something something
7
- Given inspiration
8
- When I create a sweet new gem
9
- Then everyone should see how awesome I am
@@ -1,13 +0,0 @@
1
- require 'bundler'
2
- begin
3
- Bundler.setup(:default, :development)
4
- rescue Bundler::BundlerError => e
5
- $stderr.puts e.message
6
- $stderr.puts "Run `bundle install` to install missing gems"
7
- exit e.status_code
8
- end
9
-
10
- $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
11
- require 'name-spotter'
12
-
13
- require 'rspec/expectations'