opener-ned 2.3.2 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/core/target/ehu-ned-1.0.jar +0 -0
- data/lib/opener/ned.rb +8 -6
- data/lib/opener/ned/cli.rb +4 -0
- data/lib/opener/ned/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09f9b6ffd9cc7898e271c3c7c3a555798e261107
|
4
|
+
data.tar.gz: ae16fc7df8452b5585aa20f73eda8c5cfca3174f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a4f028aa1f9b75c78f8aa5414d5322fdac50452c192f6dffcd22a31a89827eb0bd6c51cb2cc42a7addacbe7f94701f6005c3fee8fdf7c6293c5210e562d0b2a
|
7
|
+
data.tar.gz: 1671a9ef77c20f1a8dea11e0ef4c1c03ecac70648abb3b34e180b4a62b7dc1624b1b18fd1bced94d0e1c7bd6a842387c93bcfaa791acbdfcde383acfae9e52b1
|
data/core/target/ehu-ned-1.0.jar
CHANGED
Binary file
|
data/lib/opener/ned.rb
CHANGED
@@ -41,7 +41,8 @@ module Opener
|
|
41
41
|
# @return [Hash]
|
42
42
|
#
|
43
43
|
DEFAULT_OPTIONS = {
|
44
|
-
:args
|
44
|
+
:args => [],
|
45
|
+
:logging => false
|
45
46
|
}.freeze
|
46
47
|
|
47
48
|
##
|
@@ -49,10 +50,9 @@ module Opener
|
|
49
50
|
#
|
50
51
|
# @option options [Array] :args Arbitrary arguments to pass to the
|
51
52
|
# underlying kernel.
|
52
|
-
#
|
53
|
-
# @option options [
|
54
|
-
#
|
55
|
-
# on this value.
|
53
|
+
#
|
54
|
+
# @option options [TrueClass|FalseClass] :logging When set to `true`
|
55
|
+
# logging is enabled. This is disabled by default.
|
56
56
|
#
|
57
57
|
def initialize(options = {})
|
58
58
|
@options = DEFAULT_OPTIONS.merge(options)
|
@@ -71,7 +71,9 @@ module Opener
|
|
71
71
|
document = KAFDocument.create_from_stream(reader)
|
72
72
|
annotator = Java::ehu.ned.Annotate.new
|
73
73
|
|
74
|
-
|
74
|
+
annotator.disableLogging unless options[:logging]
|
75
|
+
|
76
|
+
endpoint = options.fetch(:endpoint, uri_for_language(language))
|
75
77
|
|
76
78
|
annotator.disambiguateNEsToKAF(
|
77
79
|
document,
|
data/lib/opener/ned/cli.rb
CHANGED
data/lib/opener/ned/version.rb
CHANGED