abstractor 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWMyMmU4Y2Q1ZWVjMDk1YjY1MzQ2MmI4OGMwNjQ2ZGNlNTY1MGQ0Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2MxOThhYzIzYmY1YTBkNTE4OWYwMmE5YmI5MGQ3NjA1YmJhYzYwMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjMxNzBhNjU5MDBiN2I1NDZkNjVkZTcwMDc5ZWVlYTZhNDIxODUyY2E0YzQ1
|
10
|
+
YjM0YmNhNTQxYWRlNGMxZTczY2Q5N2M4NjlmYzliMTUxYTA1MjE0ZGM5NjI4
|
11
|
+
Mjk0ZDEyNDFkZmQyMDI1MzM2MjI1ZTc4OWRmNjVhMDZiYTU0NGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGY0ZTMzZThhNGI3MDdhMTAwN2QyZGE1YmQxYzEyNmRiZmRlMzE0MDNiNGY3
|
14
|
+
NjIyODNhNzg2ZTkyYzI5MzIzYzhkMjQ3NDFiMTFmM2ZjMzk5M2QwMmE5MmE0
|
15
|
+
YzQyMGU2ZGRmMGYwZWMzYzQ0ZTQ0MWQ4ZWM1ZTQ3MzBmOGRlNzc=
|
@@ -46,7 +46,7 @@
|
|
46
46
|
= image_tag('abstractor/page.png', :id => "abstraction_text_link_#{abstraction_source.id}")
|
47
47
|
%br
|
48
48
|
%div{ :id => "abstraction_text_#{abstraction_source.id}", :class => 'tooltip'}
|
49
|
-
= abstractor_abstraction.about.send(from_method)
|
49
|
+
= simple_format(abstractor_abstraction.about.send(from_method))
|
50
50
|
.column-4
|
51
51
|
= f.submit 'Save', :class => 'button positive'
|
52
52
|
= link_to 'Cancel', abstractor_abstraction, :class => 'button negative', :remote => true
|
data/lib/abstractor/version.rb
CHANGED
@@ -57,12 +57,21 @@ module Abstractor
|
|
57
57
|
unless options["install-stanford-core-nlp"]
|
58
58
|
puts "Running rake abstractor:setup:stanford_core_nlp"
|
59
59
|
puts 'Please be patient...this could take a while.'
|
60
|
-
|
60
|
+
`rake abstractor:setup:stanford_core_nlp`
|
61
61
|
|
62
62
|
insert_into_file("#{Rails.root}/config/environments/development.rb", :after => /::Application.configure do\n/) do
|
63
63
|
' StanfordCoreNLP.use :english
|
64
|
-
StanfordCoreNLP.
|
65
|
-
StanfordCoreNLP.
|
64
|
+
StanfordCoreNLP.model_files = {}
|
65
|
+
StanfordCoreNLP.jar_path = "#{Rails.root}/lib/stanford-corenlp-full-2014-01-04/"
|
66
|
+
StanfordCoreNLP.model_path = "#{Rails.root}/lib/stanford-corenlp-full-2014-01-04/"
|
67
|
+
StanfordCoreNLP.default_jars = [
|
68
|
+
"joda-time.jar",
|
69
|
+
"xom.jar",
|
70
|
+
"stanford-corenlp-3.3.1.jar",
|
71
|
+
"stanford-corenlp-3.3.1-models.jar",
|
72
|
+
"jollyday.jar",
|
73
|
+
"bridge.jar"
|
74
|
+
]
|
66
75
|
'
|
67
76
|
end
|
68
77
|
end
|
@@ -10,18 +10,21 @@ namespace :abstractor do
|
|
10
10
|
|
11
11
|
desc "Setup Stanford CoreNLP library in lib/stanford-core-nlp directory"
|
12
12
|
task :stanford_core_nlp => :environment do
|
13
|
-
directory = "#{Rails.root}/lib/stanford-core-nlp/"
|
14
|
-
Dir.mkdir(directory) unless File.exists?(directory)
|
15
13
|
puts 'Please be patient...This could take a while.'
|
16
|
-
file = "#{Rails.root}/lib/stanford-
|
14
|
+
file = "#{Rails.root}/lib/stanford-corenlp-full-2014-01-04.zip"
|
17
15
|
open(file, 'wb') do |fo|
|
18
|
-
fo.print open('http://
|
16
|
+
fo.print open('http://nlp.stanford.edu/software/stanford-corenlp-full-2014-01-04.zip').read
|
19
17
|
end
|
20
18
|
|
21
|
-
file = "#{Rails.root}/lib/stanford-
|
22
|
-
destination = "#{Rails.root}/lib/
|
19
|
+
file = "#{Rails.root}/lib/stanford-corenlp-full-2014-01-04.zip"
|
20
|
+
destination = "#{Rails.root}/lib/"
|
23
21
|
puts 'Unzipping...'
|
24
22
|
unzip_file(file, destination)
|
23
|
+
|
24
|
+
file = "#{Rails.root}/lib/stanford-corenlp-full-2014-01-04/bridge.jar"
|
25
|
+
open(file, 'wb') do |fo|
|
26
|
+
fo.print open('https://github.com/louismullie/stanford-core-nlp/blob/master/bin/bridge.jar').read
|
27
|
+
end
|
25
28
|
end
|
26
29
|
end
|
27
30
|
|
@@ -35,4 +38,4 @@ namespace :abstractor do
|
|
35
38
|
}
|
36
39
|
}
|
37
40
|
end
|
38
|
-
end
|
41
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abstractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Gurley, Yulia Bushmanova
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|