Class: DoseAmountListTagger
- Inherits:
-
ListTagger
- Object
- Tagger
- ListTagger
- DoseAmountListTagger
- Defined in:
- lib/list_taggers/dose_amount_list_tagger.rb
Overview
Copyright 2015 The MITRE Corporation. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and zlimitations under the License.”
Instance Method Summary collapse
-
#initialize ⇒ DoseAmountListTagger
constructor
A new instance of DoseAmountListTagger.
Methods inherited from ListTagger
Methods inherited from Tagger
#normalize, #parse_main, #parse_text
Constructor Details
#initialize ⇒ DoseAmountListTagger
Returns a new instance of DoseAmountListTagger.
18 19 20 21 |
# File 'lib/list_taggers/dose_amount_list_tagger.rb', line 18 def initialize @name = 'doseamount' @list = [/(low|high)-? ?doses?/i] end |