opener-coreference 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee05da1ff5a222b40be551446c926533db97d26e
4
- data.tar.gz: 527b3e3e9e00e4fc6b3e25ab4730dfe6e1a350fc
3
+ metadata.gz: d8914b858b1e940818f49580d9549a56d2fb5038
4
+ data.tar.gz: 591861395373ccd5c8c89fe60987f1e39e590d37
5
5
  SHA512:
6
- metadata.gz: 6e81370c6d5fce240446d7850cadba70263d9bda5a6b5d37082ad48fd35a194563ba35c66f6423a02475f9086f365ae4ec6ac707df37422979a30922b58eef45
7
- data.tar.gz: 13a70c127790d1b267e234e0df65772086b6d931852f764f05169454462efe6f44d7367ebae4327833d69fde50b84193f69533fbdd3f82a6ee8e5c03dfe5dfb3
6
+ metadata.gz: 057324123c05acbae7df72fccf790b89d9ca771ac5a777b1903434d8228fab7ac25f1d6bdb40b1b5e82d6745040d669154be89e330ee23b1425fd47343e07f22
7
+ data.tar.gz: f2d93404190aa2ab147025610bc5c964212f9090887f586498a8776d09880340b01d5828fc8be3b288732bc946b71277519bda514be736d56d2e542afe595244
data/README.md CHANGED
@@ -1,28 +1,166 @@
1
- # Opener::Coreference
1
+ Coreference
2
+ -----------
2
3
 
3
- TODO: Write a gem description
4
+ This Gem provides coreference resolution for various languages (en, es, it, nl, de, fr).
4
5
 
5
- ## Installation
6
+ The CorefGraph-en module provides an implementation of the Multi-Sieve Pass system for for Coreference Resolution system originally proposed by the Stanford NLP Group (Raghunathan et al., 2010; Lee et al., 2011) and (Lee et al., 2013). This system proposes a number of deterministic passes, ranging from high precision to higher recall, each dealing with a different manner in which coreference manifests itself in running text.
6
7
 
7
- Add this line to your application's Gemfile:
8
+ Although more sieves are available, in order to facilitate the integration of the coreference system for the 6 languages of OpeNER we have included here 4 sieves: Exact String Matching, Precise Constructs, Strict Head Match and Pronoun Match (the sieve nomenclature follows Lee et al (2013)). Furthermore, as it has been reported, this sieves are responsible for most of the performance in the Stanford system.
8
9
 
9
- gem 'opener-coreference'
10
+ The implementation is a result of a collaboration between the IXA NLP (http://ixa.si.ehu.es) and LinguaMedia Groups (http://linguamedia.deusto.es).
10
11
 
11
- And then execute:
12
+ ### Confused by some terminology?
12
13
 
13
- $ bundle
14
+ This software is part of a larger collection of natural language processing
15
+ tools known as "the OpeNER project". You can find more information about the
16
+ project at (the OpeNER portal)[http://opener-project.github.io]. There you can
17
+ also find references to terms like KAF (an XML standard to represent linguistic
18
+ annotations in texts), component, cores, scenario's and pipelines.
14
19
 
15
- Or install it yourself as:
20
+ Quick Use Example
21
+ -----------------
16
22
 
17
- $ gem install opener-coreference
23
+ Installing the coreference can be done by executing:
18
24
 
19
- ## Usage
25
+ gem install opener-coreference
20
26
 
21
- TODO: Write usage instructions here
27
+ Please bare in mind that all components in OpeNER take KAF as an input and
28
+ output KAF by default.
22
29
 
23
- ## Contributing
30
+ ### Command line interface
24
31
 
25
- 1. Fork it
32
+ You should now be able to call the coreference as a regular shell
33
+ command: by its name. Once installed the gem normalyl sits in your path so you can call it directly from anywhere.
34
+
35
+ This aplication reads a text from standard input in order to identify the language.
36
+
37
+ cat some_kind_of_kaf_file.kaf | coreference
38
+
39
+ This will output:
40
+
41
+ ```xml
42
+ <coref coid="co5">
43
+ <!--Her father-->
44
+ <span>
45
+ <target id="t45"/>
46
+ <target id="t46"/>
47
+ </span>
48
+ <!--him-->
49
+ <span>
50
+ <target id="t58"/>
51
+ </span>
52
+ <!--his-->
53
+ <span>
54
+ <target id="t54"/>
55
+ </span>
56
+ </coref>
57
+ ```
58
+
59
+ ### Webservices
60
+
61
+ You can launch a language identification webservice by executing:
62
+
63
+ coreference-server
64
+
65
+ This will launch a mini webserver with the webservice. It defaults to port 9292,
66
+ so you can access it at <http://localhost:9292>.
67
+
68
+ To launch it on a different port provide the `-p [port-number]` option like
69
+ this:
70
+
71
+ coreference-server -p 1234
72
+
73
+ It then launches at <http://localhost:1234>
74
+
75
+ Documentation on the Webservice is provided by surfing to the urls provided
76
+ above. For more information on how to launch a webservice run the command with
77
+ the ```-h``` option.
78
+
79
+
80
+ ### Daemon
81
+
82
+ Last but not least the coreference comes shipped with a daemon that
83
+ can read jobs (and write) jobs to and from Amazon SQS queues. For more
84
+ information type:
85
+
86
+ coreference-daemon -h
87
+
88
+
89
+ Description of dependencies
90
+ ---------------------------
91
+
92
+ This component runs best if you run it in an environment suited for OpeNER
93
+ components. You can find an installation guide and helper tools in the (OpeNER
94
+ installer)[https://github.com/opener-project/opener-installer] and (an
95
+ installation guide on the Opener
96
+ Website)[http://opener-project.github.io/getting-started/how-to/local-installation.html]
97
+
98
+ At least you need the following system setup:
99
+
100
+ ### Depenencies for normal use:
101
+
102
+ * Ruby (MRI) 1.9.3 or newer
103
+ * Python 2.6
104
+
105
+ Adapting CorefGraph-en to your language
106
+ ---------------------------------------
107
+
108
+ There are a number of changes needed to be made to make CorefGraph works for
109
+ other languages. Although we have try to keep the language dependent features
110
+ to a minimum, you will still need to create some dictionaries for your own
111
+ language and make some very minor changes in the code. Here is the list of very
112
+ file in the Corefgraph module that needs to be changed. Every change except
113
+ one (see below) to be done in the **$project/core/corefgraph/resources** directory:
114
+
115
+ * dictionaries/$lang\_determiners.py
116
+ * dictionaries/$lang\_pronouns.py
117
+ * dictionaries/$lang\_verbs.py
118
+ * dictionaries/$lang\_stopwords.py
119
+ * dictionaries/$lang\_temporals.py
120
+
121
+ * tagset/$TAGSETNAME\_pos.py
122
+ * tagset/$TAGSETNAME\_constituent.py
123
+
124
+ * files/animate/$lang.animate.txt
125
+ * files/animate/$lang.inanimate.txt
126
+
127
+ * files/demonym/$lang.txt
128
+
129
+ * files/gender/$lang.male.unigrams.txt
130
+ * files/gender/$lang.female.unigrams.txt
131
+ * files/gender/$lang.neutral.unigrams.txt
132
+ * files/gender/$lang.namegender.combine.txt
133
+ * files/gender/$lang.gender.data
134
+
135
+ * files/number/$lang.plural.unigrams.txt
136
+ * files/number/$lang.singular.unigrams.txt
137
+
138
+
139
+ The Core
140
+ --------
141
+
142
+ The component is a fat wrapper around the actual language technology core. You
143
+ can find the core technolies in the following repositories:
144
+
145
+ * (Coreference-base)[https://github.com/opener-project/coreference-base]
146
+
147
+ Where to go from here
148
+ ---------------------
149
+
150
+ * Check (the project websitere)[http://opener-project.github.io]
151
+ * (Checkout the webservice)[http://opener.olery.com/coreference]
152
+
153
+ Report problem/Get help
154
+ -----------------------
155
+
156
+ If you encounter problems, please email support@opener-project.eu or leave an
157
+ issue in the (issue tracker)[https://github.com/opener-project/coreference/issues].
158
+
159
+
160
+ Contributing
161
+ ------------
162
+
163
+ 1. Fork it ( http://github.com/opener-project/coreference/fork )
26
164
  2. Create your feature branch (`git checkout -b my-new-feature`)
27
165
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
166
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class Coreference
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -21,6 +21,7 @@ Gem::Specification.new do |gem|
21
21
 
22
22
  gem.add_dependency 'sinatra', '~> 1.4'
23
23
  gem.add_dependency 'httpclient'
24
+ gem.add_dependency 'nokogiri'
24
25
  gem.add_dependency 'opener-coreference-base'
25
26
  gem.add_dependency 'opener-webservice'
26
27
 
metadata CHANGED
@@ -1,87 +1,101 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-coreference
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-19 00:00:00.000000000 Z
11
+ date: 2014-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
15
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.4'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
- - - "~>"
22
+ - - ~>
25
23
  - !ruby/object:Gem::Version
26
24
  version: '1.4'
25
+ prerelease: false
26
+ type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: httpclient
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
- - - ">="
36
+ - - '>='
32
37
  - !ruby/object:Gem::Version
33
38
  version: '0'
34
- type: :runtime
35
39
  prerelease: false
40
+ type: :runtime
41
+ - !ruby/object:Gem::Dependency
42
+ name: nokogiri
36
43
  version_requirements: !ruby/object:Gem::Requirement
37
44
  requirements:
38
- - - ">="
45
+ - - '>='
39
46
  - !ruby/object:Gem::Version
40
47
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: opener-coreference-base
43
48
  requirement: !ruby/object:Gem::Requirement
44
49
  requirements:
45
- - - ">="
50
+ - - '>='
46
51
  - !ruby/object:Gem::Version
47
52
  version: '0'
48
- type: :runtime
49
53
  prerelease: false
54
+ type: :runtime
55
+ - !ruby/object:Gem::Dependency
56
+ name: opener-coreference-base
50
57
  version_requirements: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ">="
59
+ - - '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: opener-webservice
57
62
  requirement: !ruby/object:Gem::Requirement
58
63
  requirements:
59
- - - ">="
64
+ - - '>='
60
65
  - !ruby/object:Gem::Version
61
66
  version: '0'
62
- type: :runtime
63
67
  prerelease: false
68
+ type: :runtime
69
+ - !ruby/object:Gem::Dependency
70
+ name: opener-webservice
64
71
  version_requirements: !ruby/object:Gem::Requirement
65
72
  requirements:
66
- - - ">="
73
+ - - '>='
67
74
  - !ruby/object:Gem::Version
68
75
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: rake
71
76
  requirement: !ruby/object:Gem::Requirement
72
77
  requirements:
73
- - - ">="
78
+ - - '>='
74
79
  - !ruby/object:Gem::Version
75
80
  version: '0'
76
- type: :development
77
81
  prerelease: false
82
+ type: :runtime
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
78
85
  version_requirements: !ruby/object:Gem::Requirement
79
86
  requirements:
80
- - - ">="
87
+ - - '>='
81
88
  - !ruby/object:Gem::Version
82
89
  version: '0'
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ prerelease: false
96
+ type: :development
83
97
  description: Gem that wraps the coreference code
84
- email:
98
+ email:
85
99
  executables:
86
100
  - coreference
87
101
  - coreference-server
@@ -99,27 +113,27 @@ files:
99
113
  - lib/opener/coreference/version.rb
100
114
  - lib/opener/coreference/views/index.erb
101
115
  - opener-coreference.gemspec
102
- homepage:
116
+ homepage:
103
117
  licenses: []
104
118
  metadata: {}
105
- post_install_message:
119
+ post_install_message:
106
120
  rdoc_options: []
107
121
  require_paths:
108
122
  - lib
109
123
  required_ruby_version: !ruby/object:Gem::Requirement
110
124
  requirements:
111
- - - ">="
125
+ - - '>='
112
126
  - !ruby/object:Gem::Version
113
127
  version: 1.9.2
114
128
  required_rubygems_version: !ruby/object:Gem::Requirement
115
129
  requirements:
116
- - - ">="
130
+ - - '>='
117
131
  - !ruby/object:Gem::Version
118
132
  version: '0'
119
133
  requirements: []
120
- rubyforge_project:
134
+ rubyforge_project:
121
135
  rubygems_version: 2.2.2
122
- signing_key:
136
+ signing_key:
123
137
  specification_version: 4
124
138
  summary: Gem that wraps the coreference code
125
139
  test_files: []