vn_tagger 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/vn_tagger/document.rb +1 -1
- data/lib/vn_tagger/version.rb +1 -1
- data/spec/vn_tagger/document_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcfb6964248bf88b3e4051ba9ea6351882612785
|
4
|
+
data.tar.gz: e15ffdef69db9b88ff8bdcf4e327a3b6966663ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25912f78e1559bcf0f61142db640a7dcab007483a0cf258d4f0134938541c08f74125b8ac682598630e14c8d1fc042f2197b1aec704818b1bc07b032a1470e01
|
7
|
+
data.tar.gz: 4b4296ce01cbaea6344a754887f8b8842e15ff233515eebe24d528a58b203b6861b1d288abc6b37a64c23c42580c2c01de5c1a9534776aebf531516a577cc073
|
data/README.md
CHANGED
@@ -22,8 +22,7 @@ document = VnTagger::Tagger.tag(text)
|
|
22
22
|
|
23
23
|
document.words.map { |word|
|
24
24
|
[word.text, word.position]
|
25
|
-
} # => [["Mourinho", "Np"], ["là", "V"], ["huấn luyện viên", "N"], ["của", "E"],
|
26
|
-
["Chelsea", "Np"]]
|
25
|
+
} # => [["Mourinho", "Np"], ["là", "V"], ["huấn luyện viên", "N"], ["của", "E"], ["Chelsea", "Np"]]
|
27
26
|
```
|
28
27
|
|
29
28
|
## Contributing
|
data/lib/vn_tagger/document.rb
CHANGED
data/lib/vn_tagger/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe VnTagger::Document do
|
4
|
-
let(:xml_text) { '<doc><s><w pos="Np">HLV</w></s></doc>' }
|
4
|
+
let(:xml_text) { '<doc><s><w pos="Np">HLV</w><w pos="CC"></w></s></doc>' }
|
5
5
|
let(:xml_document) { Nokogiri::XML(xml_text) }
|
6
6
|
let(:document) { described_class.new(xml_document) }
|
7
7
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vn_tagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hieu Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|