Dependency tree for sentence structure and made notebook funcions importable wit new py file

This commit is contained in:
Henry Dowd
2025-11-21 11:56:34 +00:00
parent 7ad4068a55
commit c2e88b26ca
6 changed files with 592 additions and 20 deletions

View File

@@ -3,14 +3,14 @@
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-11-19T00:00:04.962487Z",
"start_time": "2025-11-19T00:00:04.958995Z"
"end_time": "2025-11-19T10:01:11.039074Z",
"start_time": "2025-11-19T10:01:09.613806Z"
}
},
"cell_type": "code",
"source": [
"import import_ipynb\n",
"from notebooks.01_data_exploration import *\n",
"#from notebooks.01_data_exploration import *\n",
"\n",
"def jaccard_similarity(sent1, sent2):\n",
" # make lowercase and split into words\n",
@@ -33,15 +33,16 @@
"id": "e60d024e969254a",
"outputs": [
{
"ename": "SyntaxError",
"evalue": "invalid decimal literal (2501033926.py, line 2)",
"output_type": "error",
"traceback": [
" \u001B[36mCell\u001B[39m\u001B[36m \u001B[39m\u001B[32mIn[8]\u001B[39m\u001B[32m, line 2\u001B[39m\n\u001B[31m \u001B[39m\u001B[31mfrom notebooks.01_data_exploration import *\u001B[39m\n ^\n\u001B[31mSyntaxError\u001B[39m\u001B[31m:\u001B[39m invalid decimal literal\n"
"name": "stdout",
"output_type": "stream",
"text": [
"'The cat sat on the mat.' vs 'The cat sat on the mat.': 1.000\n",
"'The cat sat on the mat.' vs 'On the mat sat the cat.': 0.429\n",
"'The cat sat on the mat.' vs 'The dog ran in the park': 0.111\n"
]
}
],
"execution_count": 8
"execution_count": 9
}
],
"metadata": {