Method: Ve::Word#initialize
- Defined in:
- lib/word.rb
#initialize(word, lemma, part_of_speech, tokens, extra = {}, info = {}) ⇒ Word
TODO: More elegance
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/word.rb', line 7 def initialize(word, lemma, part_of_speech, tokens, extra = {}, info = {}) @word = word.dup @lemma = lemma.dup @part_of_speech = part_of_speech @tokens = tokens # TODO: I don't like this, it's too unstructured @extra = extra @info = info end |