Skip to content

Commit

Permalink
Merge pull request #229 from frreiss/branch-0_1
Browse files Browse the repository at this point in the history
Release process for version 0.1
  • Loading branch information
frreiss authored Jul 13, 2021
2 parents 03e6fa3 + 69d75c9 commit 3fb3d3a
Show file tree
Hide file tree
Showing 13 changed files with 10,839 additions and 1,860 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ $ conda activate myenv

To run tests, navigate to the root of your local copy and run:
```
pytest
pytest text_extensions_for_pandas
```

To build pip and source code packages:
Expand Down
5 changes: 5 additions & 0 deletions config/dev_reqs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ ipywidgets
ibm-watson
twine

# The following libraries are currently only used in our example notebooks
# but may also be called from related regression tests in the future.
nltk
ray[default]


2 changes: 0 additions & 2 deletions config/jupyter_reqs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ nodejs
ipywidgets
matplotlib

ray

2,343 changes: 2,160 additions & 183 deletions notebooks/Analyze_Model_Outputs.ipynb

Large diffs are not rendered by default.

2,392 changes: 2,194 additions & 198 deletions notebooks/Analyze_Text.ipynb

Large diffs are not rendered by default.

2,929 changes: 2,449 additions & 480 deletions notebooks/Integrate_NLP_Libraries.ipynb

Large diffs are not rendered by default.

101 changes: 58 additions & 43 deletions notebooks/Text_Extensions_for_Pandas_Overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4601,11 +4601,40 @@
" <td>King Arthur</td>\n",
" </tr>\n",
"\n",
" </tbody>\n",
" </table>\n",
" <p style='\n",
" padding: 1em;\n",
" line-height: calc(var(--jp-content-line-height, 1.6) * 1.6);\n",
" '>\n",
"\n",
" In AD 932, \n",
"\n",
" <span class='mark btn-primary' style='padding:0.4em;border-radius:0.35em;background-color: #a0c4ff;color:black;'>King Arthur</span>\n",
" and his squire, Patsy, travel throughout Britain searching for men to join the Knights of the Round Table. Along the way, he recruits Sir Bedevere the Wise, Sir Lancelot the Brave, Sir Galahad the Pure, Sir Robin the Not-Quite-So-Brave-as-Sir-Lancelot, and Sir Not-Appearing-in-this-Film, along with their squires and Robin&#39;s troubadours.\n",
" </p>\n",
" </div>\n",
"\n",
" <div class='document'>\n",
" <table style='\n",
" table-layout: auto;\n",
" overflow: hidden;\n",
" width: 100%;\n",
" border-collapse: collapse;\n",
" '>\n",
" <thead style='font-variant-caps: all-petite-caps;'>\n",
" <th></th>\n",
" <th>begin</th>\n",
" <th>end</th>\n",
" <th style='text-align:right;width:100%'>context</th>\n",
" </tr></thead>\n",
" <tbody>\n",
"\n",
" <tr>\n",
" <td><b>1</b></td>\n",
" <td><b>0</b></td>\n",
" <td>0</td>\n",
" <td>15</td>\n",
" <td>In AD 932, King</td>\n",
" <td>Second document</td>\n",
" </tr>\n",
"\n",
" </tbody>\n",
Expand All @@ -4615,30 +4644,10 @@
" line-height: calc(var(--jp-content-line-height, 1.6) * 1.6);\n",
" '>\n",
"\n",
" In AD 932, \n",
"\n",
" <span class='mark btn-primary' style='padding:0.4em;border-radius:0.35em;background-color: #a0c4ff;color:black;'>King Arthur</span>\n",
"\n",
"\n",
" <span class='mark btn-primary' style='padding:0.4em;border-radius:0.35em;background-color: #a0c4ff;color:black;'>Second document</span>\n",
"\n",
" <span class='mark btn-info complex-set' style='\n",
" padding:0.4em;\n",
" border-radius:0.35em;\n",
" background:linear-gradient(to right, #a0c4ff, #ffadad);\n",
" color: black;\n",
" '>In AD 932, King Arthur\n",
" <span class='mark-tag' style='\n",
" font-weight: bolder;\n",
" font-size: 0.8em;\n",
" font-variant: small-caps;\n",
" font-variant-caps: small-caps;\n",
" font-variant-caps: all-small-caps;\n",
" margin-left: 8px;\n",
" text-transform: uppercase;\n",
" color: black;\n",
" '>Set</span>\n",
" </span>\n",
" and his squire, Patsy, travel throughout Britain searching for men to join the Knights of the Round Table. Along the way, he recruits Sir Bedevere the Wise, Sir Lancelot the Brave, Sir Galahad the Pure, Sir Robin the Not-Quite-So-Brave-as-Sir-Lancelot, and Sir Not-Appearing-in-this-Film, along with their squires and Robin&#39;s troubadours.\n",
" </p>\n",
" </div>\n",
"\n",
Expand All @@ -4651,11 +4660,17 @@
" const documents = []\n",
"\n",
" {\n",
" const doc_spans = Span.arrayFromSpanArray([[11,22],[0,15]])\n",
" const doc_spans = Span.arrayFromSpanArray([[11,22]])\n",
" const doc_text = 'In AD 932, King Arthur and his squire, Patsy, travel throughout Britain searching for men to join the Knights of the Round Table. Along the way, he recruits Sir Bedevere the Wise, Sir Lancelot the Brave, Sir Galahad the Pure, Sir Robin the Not-Quite-So-Brave-as-Sir-Lancelot, and Sir Not-Appearing-in-this-Film, along with their squires and Robin\\'s troubadours.'\n",
" documents.push({doc_text: doc_text, doc_spans: doc_spans})\n",
" }\n",
"\n",
" {\n",
" const doc_spans = Span.arrayFromSpanArray([[0,15]])\n",
" const doc_text = 'Second document'\n",
" documents.push({doc_text: doc_text, doc_spans: doc_spans})\n",
" }\n",
"\n",
" const instance = new window.SpanArray.SpanArray(documents, true, script_context)\n",
" instance.render()\n",
" }\n",
Expand Down Expand Up @@ -5057,7 +5072,7 @@
" [4, 5],\n",
" [6, 7],\n",
" [8, 9]]),\n",
" <text_extensions_for_pandas.array.tensor.TensorDtype at 0x7fb59860c3a0>)"
" <text_extensions_for_pandas.array.tensor.TensorDtype at 0x7f9ae00cadc0>)"
]
},
"execution_count": 22,
Expand Down Expand Up @@ -5438,17 +5453,17 @@
" <tr>\n",
" <th>0</th>\n",
" <td>[0, 2): 'In'</td>\n",
" <td>[1, 0, 0, 0]</td>\n",
" <td>[0, 0, 0, 1]</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>[3, 5): 'AD'</td>\n",
" <td>[0, 1, 0, 0]</td>\n",
" <td>[0, 0, 0, 1]</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>[6, 9): '932'</td>\n",
" <td>[1, 0, 0, 0]</td>\n",
" <td>[0, 1, 0, 0]</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
Expand All @@ -5458,19 +5473,19 @@
" <tr>\n",
" <th>4</th>\n",
" <td>[16, 22): 'Arthur'</td>\n",
" <td>[0, 0, 1, 0]</td>\n",
" <td>[0, 1, 0, 0]</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" span features\n",
"0 [0, 2): 'In' [1, 0, 0, 0]\n",
"1 [3, 5): 'AD' [0, 1, 0, 0]\n",
"2 [6, 9): '932' [1, 0, 0, 0]\n",
"0 [0, 2): 'In' [0, 0, 0, 1]\n",
"1 [3, 5): 'AD' [0, 0, 0, 1]\n",
"2 [6, 9): '932' [0, 1, 0, 0]\n",
"3 [11, 15): 'King' [1, 0, 0, 0]\n",
"4 [16, 22): 'Arthur' [0, 0, 1, 0]"
"4 [16, 22): 'Arthur' [0, 1, 0, 0]"
]
},
"execution_count": 32,
Expand Down Expand Up @@ -5530,17 +5545,17 @@
" <tr>\n",
" <th>0</th>\n",
" <td>[0, 2): 'In'</td>\n",
" <td>[1, 0, 0, 0]</td>\n",
" <td>[0, 0, 0, 1]</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>[3, 5): 'AD'</td>\n",
" <td>[0, 1, 0, 0]</td>\n",
" <td>[0, 0, 0, 1]</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>[6, 9): '932'</td>\n",
" <td>[1, 0, 0, 0]</td>\n",
" <td>[0, 1, 0, 0]</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
Expand All @@ -5550,19 +5565,19 @@
" <tr>\n",
" <th>4</th>\n",
" <td>[16, 22): 'Arthur'</td>\n",
" <td>[0, 0, 1, 0]</td>\n",
" <td>[0, 1, 0, 0]</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" span features\n",
"0 [0, 2): 'In' [1, 0, 0, 0]\n",
"1 [3, 5): 'AD' [0, 1, 0, 0]\n",
"2 [6, 9): '932' [1, 0, 0, 0]\n",
"0 [0, 2): 'In' [0, 0, 0, 1]\n",
"1 [3, 5): 'AD' [0, 0, 0, 1]\n",
"2 [6, 9): '932' [0, 1, 0, 0]\n",
"3 [11, 15): 'King' [1, 0, 0, 0]\n",
"4 [16, 22): 'Arthur' [0, 0, 1, 0]"
"4 [16, 22): 'Arthur' [0, 1, 0, 0]"
]
},
"execution_count": 34,
Expand Down Expand Up @@ -5613,9 +5628,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "pd",
"display_name": "Python 3",
"language": "python",
"name": "pd"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@

setuptools.setup(
name="text_extensions_for_pandas",
version="0.1b4",
version="0.1",
author="IBM",
author_email="frreiss@example.com",
author_email="frreiss@us.ibm.com",
description="Natural language processing support for Pandas dataframes.",
long_description=long_description,
long_description_content_type="text/markdown",
# Note that this URL is where the project *will* be, not where it currently is.
url="https://github.com/CODAIT/text-extensions-for-pandas",
install_requires=requirements,
packages=setuptools.find_packages(),
Expand Down
Loading

0 comments on commit 3fb3d3a

Please sign in to comment.