Class: NLPBackpack::Chunker::TagPattern
- Inherits:
-
Object
- Object
- NLPBackpack::Chunker::TagPattern
- Defined in:
- lib/nlp_backpack/chunker/tag_pattern.rb
Instance Attribute Summary collapse
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(pattern) ⇒ TagPattern
constructor
Example inputs: <DT>? <JJ.*>*.
Constructor Details
#initialize(pattern) ⇒ TagPattern
Example inputs: <DT>? <JJ.*>*
11 12 13 |
# File 'lib/nlp_backpack/chunker/tag_pattern.rb', line 11 def initialize(pattern) (pattern) end |
Instance Attribute Details
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
6 7 8 |
# File 'lib/nlp_backpack/chunker/tag_pattern.rb', line 6 def conditions @conditions end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
6 7 8 |
# File 'lib/nlp_backpack/chunker/tag_pattern.rb', line 6 def tag @tag end |