diff --git a/lib/datasets/wikipedia-kyoto-japanese-english.rb b/lib/datasets/wikipedia-kyoto-japanese-english.rb index 0b1f2c1..7d909ac 100644 --- a/lib/datasets/wikipedia-kyoto-japanese-english.rb +++ b/lib/datasets/wikipedia-kyoto-japanese-english.rb @@ -139,7 +139,7 @@ def initialize(block) @sentence = nil @text_container_stack = [] @element_stack = [] - @text_stack = [""] + @text_stack = [+""] end def tag_start(name, attributes) @@ -220,7 +220,7 @@ def text(data) private def push_stacks(name, attributes) @element_stack.push({name: name, attributes: attributes}) - @text_stack.push("") + @text_stack.push(+"") end def pop_stacks