tao_rdfizer 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tao_rdfizer/tao_rdfizer.rb +8 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa880e0cce2aae4ec41d6e3c2de0a5cafa8b53a9
|
4
|
+
data.tar.gz: 91b43e74c2cdd085ed5ba9c50c269987a0ca6516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9c83a025384fcb45bc15543183a2bab00b3b2c185280c5c7d3a2e88ef0f2fef2783c21894fea5d0b7464e7dc1d2dff957324ace72d5767f82cb6db8677dbff5
|
7
|
+
data.tar.gz: 95a19fc8ca13d66cc154b7968f75e9256d69970d0ead660b8271a7156e548903df5217a6d97d6ab8081151d9a83e059753ba4bad430e4458e332a89141ba0e8e
|
@@ -73,11 +73,14 @@ class TAO::RDFizer
|
|
73
73
|
unless @mode == :annotations
|
74
74
|
# collect spans
|
75
75
|
_spans = _denotations.map{|d| d[:span]}
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
end
|
76
|
+
|
77
|
+
# # collect virtual spans
|
78
|
+
# position = 0
|
79
|
+
# annotations[:text].scan(/[^\W]*\W/).each do |tok|
|
80
|
+
# _spans << {:begin => position, :end => position + tok.index(/\W/)}
|
81
|
+
# position += tok.length
|
82
|
+
# end
|
83
|
+
|
81
84
|
_spans.uniq!
|
82
85
|
|
83
86
|
# add_infomation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tao_rdfizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jin-Dong Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: It uses TAO (text annotation ontology) for representation of annotations
|
14
14
|
to text.
|
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
41
|
version: '0'
|
42
42
|
requirements: []
|
43
43
|
rubyforge_project:
|
44
|
-
rubygems_version: 2.
|
44
|
+
rubygems_version: 2.6.11
|
45
45
|
signing_key:
|
46
46
|
specification_version: 4
|
47
47
|
summary: A RDF statement generator for annotations in the PubAnnotation JSON format.
|