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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 637f23fe16d647e9041131360de3ffd39319c504
4
- data.tar.gz: ca68ec84d04a2b0689d4f3dff85a9dd8a0a8f874
3
+ metadata.gz: fcfb6964248bf88b3e4051ba9ea6351882612785
4
+ data.tar.gz: e15ffdef69db9b88ff8bdcf4e327a3b6966663ca
5
5
  SHA512:
6
- metadata.gz: 2430d567ed7dc55a0cea23ffbd0781dfd147afb7576a3593bc71cbef49779c74b737c5d73f88e67101294a42ad5f629f34f9c8a0974e1d34ce7399faded2a21d
7
- data.tar.gz: 2caaec9e11213317445b23651cfc64272d35208f6bd256a62a053b01f24750536564b043a9e695672fcf97c2825944e49f3ec83a5b7ddd385e9c5a3c65e30658
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
@@ -14,7 +14,7 @@ module VnTagger
14
14
 
15
15
  def uncached_words
16
16
  xml_document.xpath('//w').map do |element|
17
- Word.new(element.attr('pos'), element.child.text)
17
+ Word.new(element.attr('pos'), element.text)
18
18
  end
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module VnTagger
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -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.0
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: 2014-12-30 00:00:00.000000000 Z
11
+ date: 2015-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler