ark_tweet_nlp 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2273d1a45dee85eff3167b046864980368dcdfec
4
- data.tar.gz: 282731b01b1a0d8af91cf7db609bd508c42f458a
3
+ metadata.gz: a7770db546eca3745ade8e7d9c4e0ef6a56b898f
4
+ data.tar.gz: f35fe7a07eceb1aa68a7360485d388ed2c917160
5
5
  SHA512:
6
- metadata.gz: 1d1958a7830e7d190bcc5b155fd7b1201028fe7462e42bf369389e4d1da9e5057e2a7f3ee30ac86ffe22478802ff69d005fd5e748f724ebabc53b9d4f4901d5f
7
- data.tar.gz: 059f1b2cc906ccb3dde4ea360e44d85176edb890e1cc334577952c2a458fd23955637e9b6ef710415c6cdeffa37d51b22513a49b6bbae3bba89274220ddf4be2
6
+ metadata.gz: 0382f0c867b940d8e34f0330a283466ff4b548983ed50aef0dbd8757c548d3e3f0d5ebe6f511442fc75ccfc3ec33eb80fcaaee03c2802637b890f91a7710ecdd
7
+ data.tar.gz: 387a9bed122c4615971068de053ffe82a0679309c11b86ebea56e2b1c6b36c6cc51c6153b1ea8497017f7bac1eaa83b8d59beba90e24c4cc4b43b818b6ed0a76
File without changes
@@ -58,7 +58,7 @@ module ArkTweetNlp
58
58
  end
59
59
 
60
60
  def Parser.run_tagger text
61
- `echo '#{text}' | #{TAGGER_PATH}`
61
+ `echo "#{text}" | #{TAGGER_PATH}`
62
62
  end
63
63
 
64
64
  def Parser.convert_line line
@@ -1,3 +1,3 @@
1
1
  module ArkTweetNlp
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -12,6 +12,18 @@ describe ArkTweetNlp::Parser do
12
12
  'is' => :V,
13
13
  'awesome' => :A }])
14
14
  end
15
+ it "suports urls" do
16
+ expect(ArkTweetNlp::Parser.find_tags("I think I haven't had a segmentation fault in years http://t.co/COjaaFj6Ib")).to eq( [{"I"=>:O,
17
+ "think"=>:V,
18
+ "haven't"=>:V,
19
+ "had"=>:V,
20
+ "a"=>:D,
21
+ "segmentation"=>:N,
22
+ "fault"=>:N,
23
+ "in"=>:P,
24
+ "years"=>:N,
25
+ "http://t.co/COjaaFj6Ib"=>:U}])
26
+ end
15
27
  it "tags multiple tweets per line" do
16
28
  expect(ArkTweetNlp::Parser.find_tags("faceboooooooook is awesome\nfaceboooooooook is awesome")).to eq([{'faceboooooooook' => :^,'is' => :V,'awesome' => :A},{'faceboooooooook' => :^,'is' => :V,'awesome' => :A} ])
17
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ark_tweet_nlp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernardo