Class: NLPBackpack::Chunker::TagPattern

Inherits:
Object
  • Object
show all
Defined in:
lib/nlp_backpack/chunker/tag_pattern.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  extract_tag_and_options(pattern)
end

Instance Attribute Details

#conditionsObject (readonly)

Returns the value of attribute conditions.



6
7
8
# File 'lib/nlp_backpack/chunker/tag_pattern.rb', line 6

def conditions
  @conditions
end

#tagObject (readonly)

Returns the value of attribute tag.



6
7
8
# File 'lib/nlp_backpack/chunker/tag_pattern.rb', line 6

def tag
  @tag
end