Skip to content

Commit

Permalink
Merge pull request #225 from frreiss/branch-market
Browse files Browse the repository at this point in the history
MINOR: Address review comments from previous PR
  • Loading branch information
frreiss committed Jul 9, 2021
2 parents 25cb2fa + de3c655 commit f11d264
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ fi
# April 2021.
conda install -y -c conda-forge jupyterlab
conda install -y -c conda-forge/label/main nodejs
conda install -y -c conda-forge jupyterlab-git

################################################################################
# Install packages with pip
Expand Down
5 changes: 1 addition & 4 deletions tutorials/market/PyData_Demo_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -2070,7 +2067,7 @@
],
"source": [
"# Filter down to just the columns we're interested in\n",
"subjects = quotes[[\"subject.text\"]].copy().reset_index(drop=True)\n",
"subjects = quotes[[\"subject.text\"]].reset_index(drop=True)\n",
"subjects"
]
},
Expand Down
2 changes: 1 addition & 1 deletion tutorials/market/PyData_Demo_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
" \n",
" # Extract instances of subjects that made statements\n",
" quotes_df = semantic_roles_df[semantic_roles_df[\"action.normalized\"] == \"say\"]\n",
" subjects_df = quotes_df[[\"subject.text\"]].copy().reset_index(drop=True)\n",
" subjects_df = quotes_df[[\"subject.text\"]].reset_index(drop=True)\n",
" \n",
" # Retrieve the full document text from the entity mentions output.\n",
" doc_text = entity_mentions_df[\"span\"].array.document_text\n",
Expand Down

0 comments on commit f11d264

Please sign in to comment.