Fuzzy matching to reference table
<p>I am trying to match non-standard medical diagnosis description to ICD10 reference table description to get ICD10 code. The will be fuzzy matching. for example,</p>

<p>I would like to match "TRANSIENT ISCHEMIC ATTACK" to "Transient cerebral ischemic attack, unspecified" (ICD10 code G45.9). OR "INTRACTABLE NAUSEA, VOMITING" to "Nausea with vomiting, unspecified" (ICD10 code R11.2).</p>

<p>What would be the best way to do this type of fuzzy matching using R or python?</p>

<p>I looked at stringdist package in R for various 'string distance' measures with mixed success. I am also considering bag-of-word technique, but I don't know how to use it when using it in my situation. As I am comparing small strings than document of text.  </p>

<p>Thanks</p>