Skip to main content

#Use Example usage for np_picker:

from phrase_pickers.np_picker import \*

nlp = spacy.load("en_core_web_sm")

print(get_np_indices(nlp('We produce oil and natural gas.')))
print(get_np_indices(nlp('I like green and red cars.')))
print(get_np_indices(nlp('I like Starbucks coffee.')))```

Example usage for vp_picker:
```import spacy
from phrase_pickers.vp_picker import \*

nlp = spacy.load("en_core_web_sm")

print(get_vp_indices(nlp("We will be offering general clothes after we get approval.")))
print(get_vp_indices(nlp("We make transportation and fracturing pipelines.")))
print(get_vp_indices(nlp("We provide repair services.")))
print(get_vp_indices(nlp("We are a car manufacturer.")))
print(get_vp_indices(nlp("We have not experienced any significant shortages of raw materials, components or finished parts and normally do not carry inventories of raw materials or finished parts in excess of those reasonably required to meet our production and shipping schedules.")))```

#Packaging Packaging for this module is tricky, because it requires a spacy model (e.g. en_core_web_sm) to work properly. To create a new release & push package to PyPI:

  1. Change the version number in setup() in setup.py
  2. Delete any old .whl or .tar.gz files in dist folder
  3. In your dev environment, run python setup.py clean --all sdist bdist_wheel
  4. Test upload to TestPyPI: python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
  5. In a clean, new environment, verify that package downloaded from TestPyPI is working: pip install --extra-index-url https://testpypi.python.org/pypi pn-phrase-pickers
  6. Upload to PyPI with twine.

Release files for phrase-pickers 0.2.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phrase-pickers 0.2.9
File Size Uploaded
phrase_pickers-0.2.9.tar.gz 155.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for phrase-pickers 0.2.9
File Interpreter ABI Platform
phrase_pickers-0.2.9-py3-none-any.whl Python 3 none any Details

Total release size: 309.7 kB

Release files / phrase_pickers-0.2.9.tar.gz

Download URL phrase_pickers-0.2.9.tar.gz
Size 155.0 kB
Tags Source
SHA-256 checksum
How to use checksums
662fc3b9d8bde4568a0e5f12f36bf769fdfa953d9b9a19f516186d18c54a67b5
BLAKE2b-256 checksum
How to use checksums
672bf07ad72d6593b9db5fd5653298170c1bdc1aedfcf28b426d9471fd28ab8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.6.4

Release files / phrase_pickers-0.2.9-py3-none-any.whl

Download URL phrase_pickers-0.2.9-py3-none-any.whl
Size 154.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7b611df64eec70b644247f042b78c6d66f832fb4f8b647cd2e4e249de4351ae
BLAKE2b-256 checksum
How to use checksums
8b110bac75f864b73d5e635ae5135d268fe3fcce600f6d80f7ca8078a92bbe23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.6.4

Release history Release notifications | RSS feed

This release

0.2.9 This release

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page