Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Extractors/Gender/GenderRegExtractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ def __init__(self, rawTextFileName, intermediateXMLFileName):
def findEntity(self):
extract_gender_m = []
extract_gender_f = []
extract_gender_m = re.search(r'.(\bmale\b)',self.Text,re.IGNORECASE)
extract_gender_f = re.search(r'.(\bfemale\b)',self.Text,re.IGNORECASE)
gender = ""
gender_offset = ""

extract_gender_m = re.search(r'.(\bmale\b|\bman\b|he|his|him)',self.Text,re.IGNORECASE)
extract_gender_f = re.search(r'.(\bfemale\b|\bwoman\b|she|her|hers)',self.Text,re.IGNORECASE)

if not extract_gender_f:
if not extract_gender_m:
gender = "UNK"
Expand Down
1 change: 1 addition & 0 deletions Extractors/Weight/WeightNltkExtractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def findEntity(self):
for tags in final_tags:
if any(word in tags for word in weight_keyword_list):
extract_weight_weightCode = tags #format: '71;50:52 year;53:57'
break #assuming that the demographics (weight) of the patient is always at the beginning of the narrative

if not extract_weight_weightCode:
weight = "UNK"
Expand Down
2 changes: 1 addition & 1 deletion Postprocessing/Intermediate4/fda008_Intermediate.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Postprocessing/Intermediate4/fda009_Intermediate.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Postprocessing/Intermediate4/fda010_Intermediate.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Postprocessing/Intermediate4/gen034_Intermediate.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Postprocessing/Intermediate4/gen043_Intermediate.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Postprocessing/Intermediate4/gen046_Intermediate.xml

Large diffs are not rendered by default.

86 changes: 86 additions & 0 deletions Resources/Concept.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@


# 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
#
# http://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
# limitations under the License.

from collections import namedtuple

FIELD_NAMES_MMI = ('index', 'mm', 'score', 'preferred_name', 'cui', 'semtypes',
'trigger', 'location', 'pos_info', 'tree_codes')

FIELD_NAMES_AA = ('index', 'aa', 'short_form', 'long_form', 'num_tokens_short_form',
'num_chars_short_form', 'num_tokens_long_form',
'num_chars_long_form')#, 'pos_info')

FIELD_NAMES_UA = ('index', 'ua', 'short_form', 'long_form', 'num_tokens_short_form',
'num_chars_short_form', 'num_tokens_long_form',
'num_chars_long_form', 'pos_info')

class ConceptMMI(namedtuple('Concept', FIELD_NAMES_MMI)):
def __repr__(self):
items = [(field, getattr(self, field, None)) for field in FIELD_NAMES_MMI]
fields = ['%s=%r' % (k, v) for k, v in items if v is not None]
return '%s(%s)' % (self.__class__.__name__, ', '.join(fields))

def as_mmi(self):
return '|'.join([get(field) for field in FIELD_NAMES_MMI])

@classmethod
def from_mmi(this_class, line):
fields = line.split('|')
return this_class(**dict(zip(FIELD_NAMES_MMI, fields)))

class ConceptAA(namedtuple('Concept', FIELD_NAMES_AA)):
def __repr__(self):
items = [(field, getattr(self, field, None)) for field in FIELD_NAMES_AA]
fields = ['%s=%r' % (k, v) for k, v in items if v is not None]
return '%s(%s)' % (self.__class__.__name__, ', '.join(fields))

def as_mmi(self):
return '|'.join([get(field) for field in FIELD_NAMES_AA])

@classmethod
def from_mmi(this_class, line):
fields = line.split('|')
return this_class(**dict(zip(FIELD_NAMES_AA, fields)))

class ConceptUA(namedtuple('Concept', FIELD_NAMES_UA)):
def __repr__(self):
items = [(field, getattr(self, field, None)) for field in FIELD_NAMES_UA]
fields = ['%s=%r' % (k, v) for k, v in items if v is not None]
return '%s(%s)' % (self.__class__.__name__, ', '.join(fields))

def as_mmi(self):
return '|'.join([get(field) for field in FIELD_NAMES_UA])

@classmethod
def from_mmi(this_class, line):
fields = line.split('|')
return this_class(**dict(zip(FIELD_NAMES_UA, fields)))

class Corpus(list):
@classmethod
def load(this_class, stream):
stream = iter(stream)
corpus = this_class()
for line in stream:
fields = line.split('|')
if fields[1] == 'MMI':
corpus.append(ConceptMMI.from_mmi(line))
elif fields[1] == 'AA':
corpus.append(ConceptAA.from_mmi(line))
else:
corpus.append(ConceptUA.from_mmi(line))

return corpus


2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/fda001_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<WT_COD end="" start="" />
</WT_SET>
<SEX end="" start="" />
</DEMOGRAPHICS>
<SEX end="49" extractor="GenderRegExtrator" start="45">F</SEX></DEMOGRAPHICS>
<DRUG_FILE>

<INSTANCE id="" primary="" timePeriod="">
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/fda007_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
<AGE end="154" extractor="AgeRegExtrator" start="152">54</AGE><AGE_COD end="159" extractor="AgeRegExtrator" start="155">YR</AGE_COD></AGE_SET>
<AGE end="154" extractor="AgeRegExtrator" start="152">54</AGE><AGE_COD end="159" extractor="AgeRegExtrator" start="155">YR</AGE_COD><AGE end="154" extractor="AgeNltkExtrator" start="152">54</AGE><AGE_COD end="159" extractor="AgeNltkExtrator" start="155">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
4 changes: 2 additions & 2 deletions Test_Suite/Eval_Env/semifinal/fda008_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="/home/vsocrates/My_Documents/fda_textmining/FDA-Textmining/Test_Suite/Test_Cases/fda008">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda008">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
<AGE end="3508" extractor="AgeRegExtrator" start="3507">5</AGE><AGE_COD end="3514" extractor="AgeRegExtrator" start="3509">YR</AGE_COD></AGE_SET>
<AGE end="3508" extractor="AgeRegExtrator" start="3507">5</AGE><AGE_COD end="3514" extractor="AgeRegExtrator" start="3509">YR</AGE_COD><AGE end="3508" extractor="AgeNltkExtrator" start="3507">5</AGE><AGE_COD end="3514" extractor="AgeNltkExtrator" start="3509">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
4 changes: 2 additions & 2 deletions Test_Suite/Eval_Env/semifinal/fda008_EVENT_DT_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="/home/vsocrates/My_Documents/fda_textmining/FDA-Textmining/Test_Suite/Test_Cases/fda008">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda008">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down Expand Up @@ -42,4 +42,4 @@
</INSTANCE>
</INDICATION_FILE>
<COMMENT>This section is for freeform comments from the annotator regarding any particular test case.</COMMENT>
<EVENT_DT end="1835" extractor="AERecognitionEventDateExtractor" start="1823">unspecified date</EVENT_DT><EVENT_DT end="1303" extractor="SuspectRecognitionEventDateExtractor" start="1286">unspecified date</EVENT_DT><EVENT_DT end="19" extractor="NaiveEventDateExtractory" start="8">16-Apr-2015</EVENT_DT></ANNOTATIONS>
<EVENT_DT end="1801" extractor="AERecognitionEventDateExtractor" start="1793">unspecified date</EVENT_DT><EVENT_DT end="1264" extractor="SuspectRecognitionEventDateExtractor" start="1259">unspecified date</EVENT_DT><EVENT_DT end="19" extractor="NaiveEventDateExtractory" start="8">16-Apr-2015</EVENT_DT></ANNOTATIONS>
4 changes: 2 additions & 2 deletions Test_Suite/Eval_Env/semifinal/fda008_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="/home/vsocrates/My_Documents/fda_textmining/FDA-Textmining/Test_Suite/Test_Cases/fda008">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda008">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand All @@ -10,7 +10,7 @@
<WT_COD end="" start="" />
</WT_SET>
<SEX end="" start="" />
<SEX end="234" extractor="GenderRegExtrator" start="227">F</SEX></DEMOGRAPHICS>
<SEX end="180" extractor="GenderRegExtrator" start="176">F</SEX></DEMOGRAPHICS>
<DRUG_FILE>

<INSTANCE id="" primary="" timePeriod="">
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/fda008_WT_SET_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="/home/vsocrates/My_Documents/fda_textmining/FDA-Textmining/Test_Suite/Test_Cases/fda008">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda008">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/fda009_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/fda009">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda009">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
4 changes: 2 additions & 2 deletions Test_Suite/Eval_Env/semifinal/fda009_EVENT_DT_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/fda009">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda009">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down Expand Up @@ -42,4 +42,4 @@
</INSTANCE>
</INDICATION_FILE>
<COMMENT>This section is for freeform comments from the annotator regarding any particular test case.</COMMENT>
<EVENT_DT end="1262" extractor="SuspectRecognitionEventDateExtractor" start="1250">unknown date</EVENT_DT><EVENT_DT end="562" extractor="NaiveEventDateExtractory" start="550">unknown date</EVENT_DT></ANNOTATIONS>
<EVENT_DT end="1249" extractor="SuspectRecognitionEventDateExtractor" start="1234">unknown date</EVENT_DT><EVENT_DT end="562" extractor="NaiveEventDateExtractory" start="550">unknown date</EVENT_DT></ANNOTATIONS>
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/fda009_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/fda009">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda009">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/fda009_WT_SET_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/fda009">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda009">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/fda010_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/fda010">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda010">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/fda010">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda010">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/fda010_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/fda010">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda010">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/fda010_WT_SET_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/fda010">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/fda010">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen011_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/gen011">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/gen011">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/gen011">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/gen011">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
4 changes: 2 additions & 2 deletions Test_Suite/Eval_Env/semifinal/gen011_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/gen011">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/gen011">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand All @@ -10,7 +10,7 @@
<WT_COD end="" start="" />
</WT_SET>
<SEX end="" start="" />
</DEMOGRAPHICS>
<SEX end="677" extractor="GenderRegExtrator" start="673">F</SEX></DEMOGRAPHICS>
<DRUG_FILE>

<INSTANCE id="" primary="" timePeriod="">
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen011_WT_SET_Semifinal.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ANNOTATIONS annotator="Project MEFA Program" textSource="Test_Suite/Test_Cases/gen011">
<ANNOTATIONS annotator="Project MEFA Program" textSource="/work/swunnava/git-repos/TSIntegration1/FDA-Textmining/Test_Suite/Test_Cases/gen011">
<EVENT_DT end="" start="" />
<DEMOGRAPHICS>
<AGE_SET>
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen012_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<WT_COD end="" start="" />
</WT_SET>
<SEX end="" start="" />
</DEMOGRAPHICS>
<SEX end="809" extractor="GenderRegExtrator" start="805">F</SEX></DEMOGRAPHICS>
<DRUG_FILE>

<INSTANCE id="" primary="" timePeriod="">
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen013_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
<AGE end="14" extractor="AgeRegExtrator" start="12">47</AGE><AGE_COD end="19" extractor="AgeRegExtrator" start="15">YR</AGE_COD></AGE_SET>
<AGE end="14" extractor="AgeRegExtrator" start="12">47</AGE><AGE_COD end="19" extractor="AgeRegExtrator" start="15">YR</AGE_COD><AGE end="14" extractor="AgeNltkExtrator" start="12">47</AGE><AGE_COD end="19" extractor="AgeNltkExtrator" start="15">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen013_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<WT_COD end="" start="" />
</WT_SET>
<SEX end="" start="" />
<SEX end="34" extractor="GenderRegExtrator" start="29">M</SEX></DEMOGRAPHICS>
<SEX end="1985" extractor="GenderRegExtrator" start="1981">F</SEX></DEMOGRAPHICS>
<DRUG_FILE>

<INSTANCE id="" primary="" timePeriod="">
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen014_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
<AGE end="263" extractor="AgeRegExtrator" start="261">65</AGE><AGE_COD end="268" extractor="AgeRegExtrator" start="264">YR</AGE_COD></AGE_SET>
<AGE end="263" extractor="AgeRegExtrator" start="261">65</AGE><AGE_COD end="268" extractor="AgeRegExtrator" start="264">YR</AGE_COD><AGE end="263" extractor="AgeNltkExtrator" start="261">65</AGE><AGE_COD end="268" extractor="AgeNltkExtrator" start="264">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen014_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<WT_COD end="" start="" />
</WT_SET>
<SEX end="" start="" />
<SEX end="283" extractor="GenderRegExtrator" start="278">M</SEX></DEMOGRAPHICS>
<SEX end="1608" extractor="GenderRegExtrator" start="1604">F</SEX></DEMOGRAPHICS>
<DRUG_FILE>

<INSTANCE id="" primary="" timePeriod="">
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen015_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
<AGE end="83" extractor="AgeRegExtrator" start="81">65</AGE><AGE_COD end="88" extractor="AgeRegExtrator" start="84">YR</AGE_COD></AGE_SET>
<AGE end="83" extractor="AgeRegExtrator" start="81">65</AGE><AGE_COD end="88" extractor="AgeRegExtrator" start="84">YR</AGE_COD><AGE end="83" extractor="AgeNltkExtrator" start="81">65</AGE><AGE_COD end="88" extractor="AgeNltkExtrator" start="84">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen015_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<WT_COD end="" start="" />
</WT_SET>
<SEX end="" start="" />
</DEMOGRAPHICS>
<SEX end="406" extractor="GenderRegExtrator" start="402">F</SEX></DEMOGRAPHICS>
<DRUG_FILE>

<INSTANCE id="" primary="" timePeriod="">
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen016_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
<AGE end="83" extractor="AgeRegExtrator" start="81">56</AGE><AGE_COD end="88" extractor="AgeRegExtrator" start="84">YR</AGE_COD></AGE_SET>
<AGE end="83" extractor="AgeRegExtrator" start="81">56</AGE><AGE_COD end="88" extractor="AgeRegExtrator" start="84">YR</AGE_COD><AGE end="233" extractor="AgeNltkExtrator" start="231">56</AGE><AGE_COD end="238" extractor="AgeNltkExtrator" start="234">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen016_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<WT_COD end="" start="" />
</WT_SET>
<SEX end="" start="" />
</DEMOGRAPHICS>
<SEX end="248" extractor="GenderRegExtrator" start="242">F</SEX></DEMOGRAPHICS>
<DRUG_FILE>

<INSTANCE id="" primary="" timePeriod="">
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen019_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
<AGE end="12" extractor="AgeRegExtrator" start="10">27</AGE><AGE_COD end="17" extractor="AgeRegExtrator" start="13">YR</AGE_COD></AGE_SET>
<AGE end="12" extractor="AgeRegExtrator" start="10">27</AGE><AGE_COD end="17" extractor="AgeRegExtrator" start="13">YR</AGE_COD><AGE end="12" extractor="AgeNltkExtrator" start="10">27</AGE><AGE_COD end="17" extractor="AgeNltkExtrator" start="13">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen021_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
<AGE end="12" extractor="AgeRegExtrator" start="10">75</AGE><AGE_COD end="15" extractor="AgeRegExtrator" start="13">YR</AGE_COD></AGE_SET>
<AGE end="12" extractor="AgeRegExtrator" start="10">75</AGE><AGE_COD end="15" extractor="AgeRegExtrator" start="13">YR</AGE_COD><AGE end="12" extractor="AgeNltkExtrator" start="10">75</AGE><AGE_COD end="15" extractor="AgeNltkExtrator" start="13">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen023_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
<AGE end="12" extractor="AgeRegExtrator" start="10">95</AGE><AGE_COD end="17" extractor="AgeRegExtrator" start="13">YR</AGE_COD></AGE_SET>
<AGE end="12" extractor="AgeRegExtrator" start="10">95</AGE><AGE_COD end="17" extractor="AgeRegExtrator" start="13">YR</AGE_COD><AGE end="12" extractor="AgeNltkExtrator" start="10">95</AGE><AGE_COD end="17" extractor="AgeNltkExtrator" start="13">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen025_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
<AGE end="18" extractor="AgeRegExtrator" start="16">67</AGE><AGE_COD end="27" extractor="AgeRegExtrator" start="19">YR</AGE_COD></AGE_SET>
<AGE end="18" extractor="AgeRegExtrator" start="16">67</AGE><AGE_COD end="27" extractor="AgeRegExtrator" start="19">YR</AGE_COD><AGE end="18" extractor="AgeNltkExtrator" start="16">67</AGE><AGE_COD end="23" extractor="AgeNltkExtrator" start="19">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen025_SEX_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<WT_COD end="" start="" />
</WT_SET>
<SEX end="" start="" />
</DEMOGRAPHICS>
<SEX end="33" extractor="GenderRegExtrator" start="27">F</SEX></DEMOGRAPHICS>
<DRUG_FILE>

<INSTANCE id="" primary="" timePeriod="">
Expand Down
2 changes: 1 addition & 1 deletion Test_Suite/Eval_Env/semifinal/gen026_AGE_SET_Semifinal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AGE_SET>
<AGE end="" start="" />
<AGE_COD end="" start="" />
</AGE_SET>
<AGE end="26" extractor="AgeNltkExtrator" start="24">60</AGE><AGE_COD end="32" extractor="AgeNltkExtrator" start="28">YR</AGE_COD></AGE_SET>
<WT_SET>
<WT end="" start="" />
<WT_COD end="" start="" />
Expand Down
Loading