Class: Vicary::Conformance::Gate
- Inherits:
-
Struct
- Object
- Struct
- Vicary::Conformance::Gate
- Defined in:
- lib/vicary/conformance.rb
Overview
bars_by_corpus overrides bar per corpus id. Only over_fire_prose
carries one: it is the sole gate whose bar describes the prose rather
than the detector, and ASAP-AES's 0.61 against PERSUADE's 8.15 is what one
corpus naming real entities and another naming @PERSON tokens costs.
bar remains the fallback, and is the tighter of the two.
Instance Attribute Summary collapse
-
#bar ⇒ Object
Returns the value of attribute bar.
-
#bars_by_corpus ⇒ Object
Returns the value of attribute bars_by_corpus.
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#op ⇒ Object
Returns the value of attribute op.
-
#requires ⇒ Object
Returns the value of attribute requires.
-
#unit ⇒ Object
Returns the value of attribute unit.
-
#why ⇒ Object
Returns the value of attribute why.
Instance Method Summary collapse
-
#bar_for(corpus_id) ⇒ Object
The bar this gate holds
corpus_idto — its override, else its default.
Instance Attribute Details
#bar ⇒ Object
Returns the value of attribute bar
41 42 43 |
# File 'lib/vicary/conformance.rb', line 41 def @bar end |
#bars_by_corpus ⇒ Object
Returns the value of attribute bars_by_corpus
41 42 43 |
# File 'lib/vicary/conformance.rb', line 41 def @bars_by_corpus end |
#id ⇒ Object
Returns the value of attribute id
41 42 43 |
# File 'lib/vicary/conformance.rb', line 41 def id @id end |
#label ⇒ Object
Returns the value of attribute label
41 42 43 |
# File 'lib/vicary/conformance.rb', line 41 def label @label end |
#op ⇒ Object
Returns the value of attribute op
41 42 43 |
# File 'lib/vicary/conformance.rb', line 41 def op @op end |
#requires ⇒ Object
Returns the value of attribute requires
41 42 43 |
# File 'lib/vicary/conformance.rb', line 41 def requires @requires end |
#unit ⇒ Object
Returns the value of attribute unit
41 42 43 |
# File 'lib/vicary/conformance.rb', line 41 def unit @unit end |
#why ⇒ Object
Returns the value of attribute why
41 42 43 |
# File 'lib/vicary/conformance.rb', line 41 def why @why end |
Instance Method Details
#bar_for(corpus_id) ⇒ Object
The bar this gate holds corpus_id to — its override, else its default.
44 45 46 47 48 |
# File 'lib/vicary/conformance.rb', line 44 def (corpus_id) return if corpus_id.nil? ( || {}).fetch(corpus_id, ) end |