twitter_ebooks 2.3.2 → 3.0.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.
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # encoding: utf-8
3
-
4
- require 'twitter_ebooks'
5
- require 'minitest/autorun'
6
- require 'benchmark'
7
-
8
- module Ebooks
9
- class TestKeywords < Minitest::Test
10
- corpus = NLP.normalize(File.read(ARGV[0]))
11
- puts "Finding and ranking keywords"
12
- puts Benchmark.measure {
13
- NLP.keywords(corpus).top(50).each do |keyword|
14
- puts "#{keyword.text} #{keyword.weight}"
15
- end
16
- }
17
- end
18
- end
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # encoding: utf-8
3
-
4
- require 'twitter_ebooks'
5
- require 'minitest/autorun'
6
-
7
- module Ebooks
8
- class TestTokenize < Minitest::Test
9
- corpus = NLP.normalize(File.read(TEST_CORPUS_PATH))
10
- sents = NLP.sentences(corpus).sample(10)
11
-
12
- NLP.sentences(corpus).sample(10).each do |sent|
13
- p sent
14
- p NLP.tokenize(sent)
15
- puts
16
- end
17
- end
18
- end