Module: LLT::Review::Common::Golden

Included in:
Alignment::Gold, Treebank::Gold
Defined in:
lib/llt/review/common/golden.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sentencesObject

Returns the value of attribute sentences.



4
5
6
# File 'lib/llt/review/common/golden.rb', line 4

def sentences
  @sentences
end

Instance Method Details

#cloneObject

Check Comparison#report to learn more



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/llt/review/common/golden.rb', line 7

def clone
  cloned = super
  # need to go to some lengths here, as Parsing::Result objects,
  # which hide behind @sentences, have important inst vars of
  # their own now and are not simply HashContainables
  parse_result = @sentences.clone;
  cloned.replace_with_clone(:sentences, :report)
  parse_result.container.merge!(cloned.sentences)
  cloned.sentences = parse_result
  cloned
end