Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Description: # Jargon Distance
Jason Portenoy 2018
Implement the jargon distance measure from <a href=”https://doi.org/10.15195/v1.a15” target=”_blank”>Vilhena et al. “Finding Cultural Holes: How Structure and Culture Diverge in Networks of Scholarly Communication.” (2014)</a>
### Installation
Install from PyPI:
pip install jargon-distance
### Usage
Initialize a JargonDistance instance with a term_counts dict and (optionally) a group_map dict. term_counts is a mapping of document -> term counter (Counter object).
` from jargon_distance import JargonDistance j = JargonDistance(term_counts) `
Then, calculate the jargon distances:
` j.calculate_jargon_distance() j.write_to_file('jargon_distance.csv') `
The jargon_distance.analysis module can be used to visualize the jargon distance calculations. For example, below is a dendrogram showing the jargon distances between the text (unigrams) of different works of literature (from the [demo.ipynb](demo.ipynb) notebook).

See [demo.ipynb](demo.ipynb) for a more detailed example.
Platform: UNKNOWN Description-Content-Type: text/markdown
Metadata
Release files for jargon-distance 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jargon-distance-0.1.5.tar.gz | 9.2 kB | Without provenance | Details for jargon-distance-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jargon_distance-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for jargon_distance-0.1.5-py3-none-any.whl |
Total release size: 19.4 kB
Release files / jargon-distance-0.1.5.tar.gz
| Download URL | jargon-distance-0.1.5.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76ca491b3d71d9b216890be0104c7d4c4233d44dec18afe9992c7c6916063243
|
|
BLAKE2b-256 checksum How to use checksums |
d94b4df2418dff7885f5c6c2108315557206b441430086ce0963ca9802edbabc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / jargon_distance-0.1.5-py3-none-any.whl
| Download URL | jargon_distance-0.1.5-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11bee98b1cdd38f20a0aaa9035eb6f0b03322ce9c37dd1fe7199351c5cf8361e
|
|
BLAKE2b-256 checksum How to use checksums |
fe47bd2cde4307f5a885b3a831056c1d99e9500a06a6d5a4ce4b4fc232d1818d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for jargon-distance 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.