Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.2.2
-
None
-
None
-
Important
Description
when parsing a sentence including a family member, the family member not detected if it does not appear as the first word in the sentence.
so in "dad ha diabetes" the subject is found to be a family member
but in "his dad has diabetes" the subject is the patient himself.
looks related to the SubjectAttributeClassifier class
in function isFamilyTerm(Annotation arg)
need to change the matches statement so that the family keyword may appear not as a first word:
.matches(".(father|dad|mother|mom|bro|sis|sib|cousin|aunt|uncle|grandm|grandp|grandf|" "wife|spouse|husband|child|offspring|progeny|son|daughter|nephew|niece|kin|family).");