opener-coreference-base 2.0.3 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +13 -0
- data/core/corefgraph/__init__.pyo +0 -0
- data/core/corefgraph/features/__init__.pyo +0 -0
- data/core/corefgraph/features/animacy.pyo +0 -0
- data/core/corefgraph/features/gender.pyo +0 -0
- data/core/corefgraph/features/grendel.pyo +0 -0
- data/core/corefgraph/features/number.pyo +0 -0
- data/core/corefgraph/features/speakerExtractor.pyo +0 -0
- data/core/corefgraph/features/utils.pyo +0 -0
- data/core/corefgraph/graph/__init__.pyo +0 -0
- data/core/corefgraph/graph/graph_builder.pyo +0 -0
- data/core/corefgraph/graph/kafx.py +3 -2
- data/core/corefgraph/graph/kafx.pyo +0 -0
- data/core/corefgraph/graph/xutils.pyo +0 -0
- data/core/corefgraph/multisieve/__init__.pyo +0 -0
- data/core/corefgraph/multisieve/core.pyo +0 -0
- data/core/corefgraph/multisieve/mentionSelection.pyo +0 -0
- data/core/corefgraph/multisieve/sieves/__init__.pyo +0 -0
- data/core/corefgraph/multisieve/sieves/base.pyo +0 -0
- data/core/corefgraph/multisieve/sieves/extraPreciseConstruct.pyo +0 -0
- data/core/corefgraph/multisieve/sieves/preciseConstruct.pyo +0 -0
- data/core/corefgraph/multisieve/sieves/pronoumMatch.pyo +0 -0
- data/core/corefgraph/multisieve/sieves/speakertMatch.pyo +0 -0
- data/core/corefgraph/multisieve/sieves/strictHeadMatching.pyo +0 -0
- data/core/corefgraph/multisieve/sieves/stringMatch.pyo +0 -0
- data/core/corefgraph/output/__init__.pyo +0 -0
- data/core/corefgraph/output/basewriter.pyo +0 -0
- data/core/corefgraph/output/kafwritter.pyo +0 -0
- data/core/corefgraph/output/progressbar.pyo +0 -0
- data/core/corefgraph/process/__init__.pyo +0 -0
- data/core/corefgraph/properties/__init__.pyo +0 -0
- data/core/corefgraph/properties/properties_en.pyo +0 -0
- data/core/corefgraph/resources/__init__.pyo +0 -0
- data/core/corefgraph/resources/demonym/__init__.pyo +0 -0
- data/core/corefgraph/resources/dictionaries/__init__.pyo +0 -0
- data/core/corefgraph/resources/dictionaries/en_determiners.pyo +0 -0
- data/core/corefgraph/resources/dictionaries/en_pronouns.pyo +0 -0
- data/core/corefgraph/resources/dictionaries/en_stopwords.pyo +0 -0
- data/core/corefgraph/resources/dictionaries/en_temporals.pyo +0 -0
- data/core/corefgraph/resources/dictionaries/en_verbs.pyo +0 -0
- data/core/corefgraph/resources/lambdas.pyo +0 -0
- data/core/corefgraph/resources/tagset/__init__.pyo +0 -0
- data/core/corefgraph/resources/tagset/alpino_pos.py +12 -12
- data/core/corefgraph/resources/tagset/conll_ner.pyo +0 -0
- data/core/corefgraph/resources/tagset/penntreebank_constituent.pyo +0 -0
- data/core/corefgraph/resources/tagset/penntreebank_pos.pyo +0 -0
- data/core/corefgraph/resources/tagset/stanford_dep.pyo +0 -0
- data/core/corefgraph/resources/tree.pyo +0 -0
- data/core/corefgraph/text_processor.pyo +0 -0
- data/core/vendor/dictconfig/__init__.pyo +0 -0
- data/core/vendor/dictconfig/dictconfig.pyo +0 -0
- data/core/vendor/pykaf/__init__.pyo +0 -0
- data/lib/opener/coreferences/base/version.rb +1 -1
- data/lib/opener/coreferences/base.rb +4 -4
- data/opener-coreference-base.gemspec +2 -0
- metadata +54 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d82ab55ffb5b85595bbb392d03b595c68d350892
|
4
|
+
data.tar.gz: c66c8fbfc34313bc2f9d93b60aaf4530eb25666f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5518ef3db93c7b19e2d638f05dbf3ae9ef87dafb5da56cf76f9a100aefc4c360d35ab7f68b146dfc3e30e9aeca742363b4655284f87a1ba6cb1a27726892d5a8
|
7
|
+
data.tar.gz: 09ebc9a10fb8e325580ae382f7371ca911bdb59ed5f42d2cebd2cd09c49001957913d9c905f8fa3755f84b60dc824136464d99659b260356450710b6595d39ff
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright 2014 OpeNER Project Consortium
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -845,8 +845,9 @@ class SyntacticTreeUtils():
|
|
845
845
|
np_pre_coordination = True
|
846
846
|
else:
|
847
847
|
children_pos = children.get("pos")
|
848
|
-
if
|
849
|
-
|
848
|
+
if children_pos != None:
|
849
|
+
if pos_tags.conjunction(children_pos) and np_pre_coordination:
|
850
|
+
coordination = True
|
850
851
|
return False
|
851
852
|
|
852
853
|
# Mention sub tree : maneja los casos con and
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -3,25 +3,25 @@ __author__ = 'Josu Bermudez <josu.bermudez@deusto.es>'
|
|
3
3
|
|
4
4
|
from ..lambdas import equality_checker, list_checker, fail
|
5
5
|
|
6
|
-
_personal_pronoun = "
|
7
|
-
_possessive_pronoun = "
|
8
|
-
_wh_pronoun = "
|
9
|
-
_wh_possessive_pronoun = "
|
6
|
+
_personal_pronoun = "Pron" #"PRP"
|
7
|
+
_possessive_pronoun = "Det" #"PRP$"
|
8
|
+
_wh_pronoun = "Pron"
|
9
|
+
_wh_possessive_pronoun = "Det"
|
10
10
|
_wh_determiner = fail
|
11
11
|
_wh_adverb = fail
|
12
12
|
_verbs_list= ("VB",)
|
13
13
|
_modal = fail
|
14
|
-
_noun = "
|
15
|
-
_noun_plural = "
|
14
|
+
_noun = "Noun"
|
15
|
+
_noun_plural = "Noun"
|
16
16
|
_interjection = fail
|
17
|
-
_proper_noun = "
|
18
|
-
_proper_noun_plural = "
|
17
|
+
_proper_noun = "Name"
|
18
|
+
_proper_noun_plural = "Name"
|
19
19
|
|
20
|
-
_adjective = "
|
21
|
-
_adjective_comparative = "
|
22
|
-
_adjective_superlative = "
|
20
|
+
_adjective = "Adj"
|
21
|
+
_adjective_comparative = "Adj"
|
22
|
+
_adjective_superlative = "Adj"
|
23
23
|
|
24
|
-
_conjunctions = ("
|
24
|
+
_conjunctions = ("Vg",)
|
25
25
|
|
26
26
|
|
27
27
|
# Usable functions
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -30,7 +30,7 @@ module Opener
|
|
30
30
|
# underlying Java code.
|
31
31
|
#
|
32
32
|
def initialize(options = {})
|
33
|
-
|
33
|
+
|
34
34
|
@args = options.delete(:args) || []
|
35
35
|
@options = options
|
36
36
|
end
|
@@ -41,7 +41,7 @@ module Opener
|
|
41
41
|
# @return [String]
|
42
42
|
#
|
43
43
|
def command
|
44
|
-
return "#{adjust_python_path} python -E -
|
44
|
+
return "#{adjust_python_path} python -E -m #{kernel} #{args.join(' ')}"
|
45
45
|
end
|
46
46
|
|
47
47
|
##
|
@@ -84,7 +84,7 @@ module Opener
|
|
84
84
|
site_packages = File.join(core_dir, 'site-packages')
|
85
85
|
"env PYTHONPATH=#{site_packages}:$PYTHONPATH"
|
86
86
|
end
|
87
|
-
|
87
|
+
|
88
88
|
def capture(input)
|
89
89
|
Open3.popen3(*command.split(" ")) {|i, o, e, t|
|
90
90
|
out_reader = Thread.new { o.read }
|
@@ -108,7 +108,7 @@ module Opener
|
|
108
108
|
def kernel
|
109
109
|
return 'corefgraph.process.file'
|
110
110
|
end
|
111
|
-
|
111
|
+
|
112
112
|
##
|
113
113
|
# @return the language from the KAF
|
114
114
|
#
|
@@ -8,6 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.description = gem.summary
|
9
9
|
gem.has_rdoc = 'yard'
|
10
10
|
gem.extensions = ['ext/hack/Rakefile']
|
11
|
+
gem.license = 'Apache 2.0'
|
11
12
|
|
12
13
|
gem.required_ruby_version = '>= 1.9.2'
|
13
14
|
|
@@ -19,6 +20,7 @@ Gem::Specification.new do |gem|
|
|
19
20
|
'*.gemspec',
|
20
21
|
'*_requirements.txt',
|
21
22
|
'README.md',
|
23
|
+
'LICENSE.txt',
|
22
24
|
'task/*'
|
23
25
|
]).select { |file| File.file?(file) }
|
24
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-coreference-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- development@olery.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -93,6 +93,7 @@ extensions:
|
|
93
93
|
- ext/hack/Rakefile
|
94
94
|
extra_rdoc_files: []
|
95
95
|
files:
|
96
|
+
- LICENSE.txt
|
96
97
|
- README.md
|
97
98
|
- bin/coreference-de
|
98
99
|
- bin/coreference-en
|
@@ -101,60 +102,98 @@ files:
|
|
101
102
|
- bin/coreference-it
|
102
103
|
- bin/coreference-nl
|
103
104
|
- core/corefgraph/__init__.py
|
105
|
+
- core/corefgraph/__init__.pyo
|
104
106
|
- core/corefgraph/features/__init__.py
|
107
|
+
- core/corefgraph/features/__init__.pyo
|
105
108
|
- core/corefgraph/features/animacy.py
|
109
|
+
- core/corefgraph/features/animacy.pyo
|
106
110
|
- core/corefgraph/features/gender.py
|
111
|
+
- core/corefgraph/features/gender.pyo
|
107
112
|
- core/corefgraph/features/grendel.py
|
113
|
+
- core/corefgraph/features/grendel.pyo
|
108
114
|
- core/corefgraph/features/number.py
|
115
|
+
- core/corefgraph/features/number.pyo
|
109
116
|
- core/corefgraph/features/speakerExtractor.py
|
117
|
+
- core/corefgraph/features/speakerExtractor.pyo
|
110
118
|
- core/corefgraph/features/utils.py
|
119
|
+
- core/corefgraph/features/utils.pyo
|
111
120
|
- core/corefgraph/graph/__init__.py
|
121
|
+
- core/corefgraph/graph/__init__.pyo
|
112
122
|
- core/corefgraph/graph/graph_builder.py
|
123
|
+
- core/corefgraph/graph/graph_builder.pyo
|
113
124
|
- core/corefgraph/graph/kafx.py
|
125
|
+
- core/corefgraph/graph/kafx.pyo
|
114
126
|
- core/corefgraph/graph/xutils.py
|
127
|
+
- core/corefgraph/graph/xutils.pyo
|
115
128
|
- core/corefgraph/multisieve/__init__.py
|
129
|
+
- core/corefgraph/multisieve/__init__.pyo
|
116
130
|
- core/corefgraph/multisieve/core.py
|
131
|
+
- core/corefgraph/multisieve/core.pyo
|
117
132
|
- core/corefgraph/multisieve/mentionSelection.py
|
133
|
+
- core/corefgraph/multisieve/mentionSelection.pyo
|
118
134
|
- core/corefgraph/multisieve/sieves/__init__.py
|
135
|
+
- core/corefgraph/multisieve/sieves/__init__.pyo
|
119
136
|
- core/corefgraph/multisieve/sieves/base.py
|
137
|
+
- core/corefgraph/multisieve/sieves/base.pyo
|
120
138
|
- core/corefgraph/multisieve/sieves/extraPreciseConstruct.py
|
139
|
+
- core/corefgraph/multisieve/sieves/extraPreciseConstruct.pyo
|
121
140
|
- core/corefgraph/multisieve/sieves/preciseConstruct.py
|
141
|
+
- core/corefgraph/multisieve/sieves/preciseConstruct.pyo
|
122
142
|
- core/corefgraph/multisieve/sieves/pronoumMatch.py
|
143
|
+
- core/corefgraph/multisieve/sieves/pronoumMatch.pyo
|
123
144
|
- core/corefgraph/multisieve/sieves/speakertMatch.py
|
145
|
+
- core/corefgraph/multisieve/sieves/speakertMatch.pyo
|
124
146
|
- core/corefgraph/multisieve/sieves/strictHeadMatching.py
|
147
|
+
- core/corefgraph/multisieve/sieves/strictHeadMatching.pyo
|
125
148
|
- core/corefgraph/multisieve/sieves/stringMatch.py
|
149
|
+
- core/corefgraph/multisieve/sieves/stringMatch.pyo
|
126
150
|
- core/corefgraph/output/__init__.py
|
151
|
+
- core/corefgraph/output/__init__.pyo
|
127
152
|
- core/corefgraph/output/basewriter.py
|
153
|
+
- core/corefgraph/output/basewriter.pyo
|
128
154
|
- core/corefgraph/output/conllwriter.py
|
129
155
|
- core/corefgraph/output/kafwritter.py
|
156
|
+
- core/corefgraph/output/kafwritter.pyo
|
130
157
|
- core/corefgraph/output/nafwritter.py
|
131
158
|
- core/corefgraph/output/progressbar.py
|
159
|
+
- core/corefgraph/output/progressbar.pyo
|
132
160
|
- core/corefgraph/process/__init__.py
|
161
|
+
- core/corefgraph/process/__init__.pyo
|
133
162
|
- core/corefgraph/process/corpus.py
|
134
163
|
- core/corefgraph/process/file.py
|
135
164
|
- core/corefgraph/properties/__init__.py
|
165
|
+
- core/corefgraph/properties/__init__.pyo
|
136
166
|
- core/corefgraph/properties/logging.conf
|
137
167
|
- core/corefgraph/properties/properties_de.py
|
138
168
|
- core/corefgraph/properties/properties_en.py
|
169
|
+
- core/corefgraph/properties/properties_en.pyo
|
139
170
|
- core/corefgraph/properties/properties_es.py
|
140
171
|
- core/corefgraph/properties/properties_fr.py
|
141
172
|
- core/corefgraph/properties/properties_it.py
|
142
173
|
- core/corefgraph/properties/properties_nl.py
|
143
174
|
- core/corefgraph/resources/__init__.py
|
175
|
+
- core/corefgraph/resources/__init__.pyo
|
144
176
|
- core/corefgraph/resources/demonym/Demonyn_extractor.py
|
145
177
|
- core/corefgraph/resources/demonym/__init__.py
|
178
|
+
- core/corefgraph/resources/demonym/__init__.pyo
|
146
179
|
- core/corefgraph/resources/demonymWikiExtractor.py
|
147
180
|
- core/corefgraph/resources/dictionaries/__init__.py
|
181
|
+
- core/corefgraph/resources/dictionaries/__init__.pyo
|
148
182
|
- core/corefgraph/resources/dictionaries/de_determiners.py
|
149
183
|
- core/corefgraph/resources/dictionaries/de_pronouns.py
|
150
184
|
- core/corefgraph/resources/dictionaries/de_stopwords.py
|
151
185
|
- core/corefgraph/resources/dictionaries/de_temporals.py
|
152
186
|
- core/corefgraph/resources/dictionaries/de_verbs.py
|
153
187
|
- core/corefgraph/resources/dictionaries/en_determiners.py
|
188
|
+
- core/corefgraph/resources/dictionaries/en_determiners.pyo
|
154
189
|
- core/corefgraph/resources/dictionaries/en_pronouns.py
|
190
|
+
- core/corefgraph/resources/dictionaries/en_pronouns.pyo
|
155
191
|
- core/corefgraph/resources/dictionaries/en_stopwords.py
|
192
|
+
- core/corefgraph/resources/dictionaries/en_stopwords.pyo
|
156
193
|
- core/corefgraph/resources/dictionaries/en_temporals.py
|
194
|
+
- core/corefgraph/resources/dictionaries/en_temporals.pyo
|
157
195
|
- core/corefgraph/resources/dictionaries/en_verbs.py
|
196
|
+
- core/corefgraph/resources/dictionaries/en_verbs.pyo
|
158
197
|
- core/corefgraph/resources/dictionaries/es_determiners.py
|
159
198
|
- core/corefgraph/resources/dictionaries/es_pronouns.py
|
160
199
|
- core/corefgraph/resources/dictionaries/es_stopwords.py
|
@@ -247,12 +286,15 @@ files:
|
|
247
286
|
- core/corefgraph/resources/files/number/nl.plural.unigrams.txt
|
248
287
|
- core/corefgraph/resources/files/number/nl.singular.unigrams.txt
|
249
288
|
- core/corefgraph/resources/lambdas.py
|
289
|
+
- core/corefgraph/resources/lambdas.pyo
|
250
290
|
- core/corefgraph/resources/tagset/__init__.py
|
291
|
+
- core/corefgraph/resources/tagset/__init__.pyo
|
251
292
|
- core/corefgraph/resources/tagset/alpino_constituent.py
|
252
293
|
- core/corefgraph/resources/tagset/alpino_pos.py
|
253
294
|
- core/corefgraph/resources/tagset/ancora_constituent.py
|
254
295
|
- core/corefgraph/resources/tagset/ancora_pos.py
|
255
296
|
- core/corefgraph/resources/tagset/conll_ner.py
|
297
|
+
- core/corefgraph/resources/tagset/conll_ner.pyo
|
256
298
|
- core/corefgraph/resources/tagset/default_dep.py
|
257
299
|
- core/corefgraph/resources/tagset/default_ner.py
|
258
300
|
- core/corefgraph/resources/tagset/french_constituent.py
|
@@ -260,18 +302,26 @@ files:
|
|
260
302
|
- core/corefgraph/resources/tagset/negra_constituent.py
|
261
303
|
- core/corefgraph/resources/tagset/negra_pos.py
|
262
304
|
- core/corefgraph/resources/tagset/penntreebank_constituent.py
|
305
|
+
- core/corefgraph/resources/tagset/penntreebank_constituent.pyo
|
263
306
|
- core/corefgraph/resources/tagset/penntreebank_pos.py
|
307
|
+
- core/corefgraph/resources/tagset/penntreebank_pos.pyo
|
264
308
|
- core/corefgraph/resources/tagset/stanford_dep.py
|
309
|
+
- core/corefgraph/resources/tagset/stanford_dep.pyo
|
265
310
|
- core/corefgraph/resources/tagset/tutpenn_constituent.py
|
266
311
|
- core/corefgraph/resources/tagset/tutpenn_pos.py
|
267
312
|
- core/corefgraph/resources/tree.py
|
313
|
+
- core/corefgraph/resources/tree.pyo
|
268
314
|
- core/corefgraph/test/__init__.py
|
269
315
|
- core/corefgraph/test/test_sentenceCandidateExtractor_test.py
|
270
316
|
- core/corefgraph/text_processor.py
|
317
|
+
- core/corefgraph/text_processor.pyo
|
271
318
|
- core/vendor/dictconfig/__init__.py
|
319
|
+
- core/vendor/dictconfig/__init__.pyo
|
272
320
|
- core/vendor/dictconfig/dictconfig.py
|
321
|
+
- core/vendor/dictconfig/dictconfig.pyo
|
273
322
|
- core/vendor/pykaf/LICENSE.txt
|
274
323
|
- core/vendor/pykaf/__init__.py
|
324
|
+
- core/vendor/pykaf/__init__.pyo
|
275
325
|
- ext/hack/Rakefile
|
276
326
|
- lib/opener/coreferences/base.rb
|
277
327
|
- lib/opener/coreferences/base/version.rb
|
@@ -282,7 +332,8 @@ files:
|
|
282
332
|
- task/requirements.rake
|
283
333
|
- task/test.rake
|
284
334
|
homepage:
|
285
|
-
licenses:
|
335
|
+
licenses:
|
336
|
+
- Apache 2.0
|
286
337
|
metadata: {}
|
287
338
|
post_install_message:
|
288
339
|
rdoc_options: []
|