summarizr 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -17
- data/lib/summarizr/version.rb +1 -1
- data/summarizr-0.2.0.gem +0 -0
- data/summarizr.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00748bd6ac47e74dbccf6fc9891fb9a05306da73
|
|
4
|
+
data.tar.gz: 5cb397be15e258cf991d0b78f9df2894b0e923b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 729bf763cd340339743abfa3c68366f998496aab3796aec43cf97c540d79851c8452f75da5b9e0331edc730c1701482f7394f4ac6e0e266bd9a4f269156bdfd6
|
|
7
|
+
data.tar.gz: 9a8492366768bf2d75cdd378712d06a778779c272c5d2b4de096bbd2221b5d830d92f3473729b0b39765198fdb9fa83479b8466d7803809ef1cdb9b7903ed0d2
|
data/README.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# Summarizr
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An old project revisited, finally seems to be working properly.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Summarizr reads through source text and builds a list of the most-used words, which it designates as keywords. It then returns an edited version of the article containing only the sections that make the most use of these keywords. This tends to produce better results the heavier the source text is in proper nouns; it is designed to be used with news media articles but can be adapted for other purposes as well.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
```ruby
|
|
9
|
+
Summarizr.summarize(long_article_as_string) #=> summarized_version
|
|
10
|
+
|
|
11
|
+
```
|
|
6
12
|
|
|
7
13
|
## Installation
|
|
8
14
|
|
|
@@ -20,21 +26,6 @@ Or install it yourself as:
|
|
|
20
26
|
|
|
21
27
|
$ gem install summarizr
|
|
22
28
|
|
|
23
|
-
## Usage
|
|
24
|
-
|
|
25
|
-
TODO: Write usage instructions here
|
|
26
|
-
|
|
27
|
-
## Development
|
|
28
|
-
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
-
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
|
-
|
|
33
|
-
## Contributing
|
|
34
|
-
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/summarizr.
|
|
36
|
-
|
|
37
|
-
|
|
38
29
|
## License
|
|
39
30
|
|
|
40
31
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/summarizr/version.rb
CHANGED
data/summarizr-0.2.0.gem
ADDED
|
Binary file
|
data/summarizr.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Intelligently summarize long blocks of text and articles}
|
|
13
13
|
spec.description = %q{Identifies the most important sections of an article based on the presence of article-specific keywords.}
|
|
14
|
-
spec.homepage = ""
|
|
14
|
+
spec.homepage = "https://github.com/nathanielltaylor/Summarizr"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: summarizr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- nathanielltaylor
|
|
@@ -56,8 +56,9 @@ files:
|
|
|
56
56
|
- bin/setup
|
|
57
57
|
- lib/summarizr.rb
|
|
58
58
|
- lib/summarizr/version.rb
|
|
59
|
+
- summarizr-0.2.0.gem
|
|
59
60
|
- summarizr.gemspec
|
|
60
|
-
homepage:
|
|
61
|
+
homepage: https://github.com/nathanielltaylor/Summarizr
|
|
61
62
|
licenses:
|
|
62
63
|
- MIT
|
|
63
64
|
metadata:
|