Skip to content

Commit

Permalink
Finally fixed contraction issue
Browse files Browse the repository at this point in the history
  • Loading branch information
glott committed Jan 28, 2025
1 parent b057045 commit 5505554
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions vATISLoad.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "f7f9d0c4",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -49,7 +49,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "1ecde934-b987-4d90-b6e3-747f44f2cc31",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -403,7 +403,7 @@
" for c, v in contractions.items():\n",
" if not c.isdigit():\n",
" datis = re.sub(r'(?<!@)\\b' + c + r'\\b,', v + ',', datis)\n",
" datis = re.sub(r'(?<!@)\\b' + c + r'\\b.', v + '.', datis)\n",
" datis = re.sub(r'(?<!@)\\b' + c + r'\\b\\.', v + '.', datis)\n",
" datis = re.sub(r'(?<!@)\\b' + c + r'\\b ', v + ' ', datis)\n",
" datis = re.sub(r'(?<!@)\\b' + c + r'\\b;', v + ';', datis)\n",
"\n",
Expand Down Expand Up @@ -488,23 +488,10 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "23bb9010-141d-4d8b-9c4e-353e86eea176",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"KTPA_A is now loaded.\n",
"KTPA_D is now loaded.\n",
"KPBI is now loaded.\n",
"KMIA_A is now loaded.\n",
"KMIA_D is now loaded.\n",
"KFLL is now loaded.\n"
]
}
],
"outputs": [],
"source": [
"if RUN_UPDATE:\n",
" update_vATISLoad()\n",
Expand Down

0 comments on commit 5505554

Please sign in to comment.