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 +4 -4
- data/bin/ark-tweet-nlp-0.3.2.jar +0 -0
- data/lib/ark_tweet_nlp/parser.rb +1 -1
- data/lib/ark_tweet_nlp/version.rb +1 -1
- data/spec/parser_spec.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7770db546eca3745ade8e7d9c4e0ef6a56b898f
|
4
|
+
data.tar.gz: f35fe7a07eceb1aa68a7360485d388ed2c917160
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0382f0c867b940d8e34f0330a283466ff4b548983ed50aef0dbd8757c548d3e3f0d5ebe6f511442fc75ccfc3ec33eb80fcaaee03c2802637b890f91a7710ecdd
|
7
|
+
data.tar.gz: 387a9bed122c4615971068de053ffe82a0679309c11b86ebea56e2b1c6b36c6cc51c6153b1ea8497017f7bac1eaa83b8d59beba90e24c4cc4b43b818b6ed0a76
|
data/bin/ark-tweet-nlp-0.3.2.jar
CHANGED
File without changes
|
data/lib/ark_tweet_nlp/parser.rb
CHANGED
data/spec/parser_spec.rb
CHANGED
@@ -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
|
|