Sha256: 25bb79cfc159ff76ca8a4d942fc884ed0c295c80809c448df06daa309bb1184a
Contents?: true
Size: 567 Bytes
Versions: 13
Compression:
Stored size: 567 Bytes
Contents
module Opener module KAF class WordForm def initialize(document, xml_node) @document = document @xml_node = xml_node end def id return @id ||= @xml_node.attr('wid') end def text return @text ||= @xml_node.text end def length return @length ||= @xml_node.attr('length').to_i end def offset return @offset ||= @xml_node.attr('offset').to_i end def paragraph return @paragraph ||= @xml_node.attr('para').to_i end end end end
Version data entries
13 entries across 13 versions & 1 rubygems