Skip to content

Commit

Permalink
match on 'declar'
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Oct 14, 2024
1 parent bc12bd7 commit 8c9d856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/infer_last_month.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4407,7 +4407,7 @@
"df[\"date\"] = df[\"speech_id\"].apply(lambda x: x.split(\"/\")[2][:10])\n",
"df[\"int_person_id\"] = df[\"person_id\"].apply(lambda x: x.split(\"/\")[-1] if x else \"\")\n",
"\n",
"must_contain = [\"declare\", \"interest\", \"register\"]\n",
"must_contain = [\"declar\", \"interest\", \"register\"]\n",
"\n",
"passes_text = df[\"matched_text\"].apply(\n",
" lambda text: any([word in text.lower() for word in must_contain])\n",
Expand Down

0 comments on commit 8c9d856

Please sign in to comment.