pypi.org
Open in
urlscan Pro
2a04:4e42:200::223
Public Scan
URL:
https://pypi.org/project/stanza/
Submission: On December 12 via manual from US — Scanned from US
Submission: On December 12 via manual from US — Scanned from US
Form analysis
3 forms found in the DOM/search/
<form class="search-form search-form--primary" action="/search/" role="search">
<label for="search" class="sr-only">Search PyPI</label>
<input id="search" class="search-form__search" type="text" name="q" placeholder="Search projects" value="" autocomplete="off" autocapitalize="off" spellcheck="false" data-controller="search-focus"
data-action="keydown@window->search-focus#focusSearchField" data-search-focus-target="searchField">
<button type="submit" class="search-form__button">
<i class="fa fa-search" aria-hidden="true"></i>
<span class="sr-only">Search</span>
</button>
</form>
/search/
<form class="search-form search-form--fullwidth" action="/search/" role="search">
<label for="mobile-search" class="sr-only">Search PyPI</label>
<input id="mobile-search" class="search-form__search" type="text" name="q" placeholder="Search projects" value="" autocomplete="off" autocapitalize="off" spellcheck="false">
<button type="submit" class="search-form__button">
<i class="fa fa-search" aria-hidden="true"></i>
<span class="sr-only">Search</span>
</button>
</form>
/locale/
<form action="/locale/">
<ul>
<li>
<button class="language-switcher__selected" name="locale_id" value="en" type="submit"> English </button>
</li>
<li>
<button name="locale_id" value="es" type="submit"> español </button>
</li>
<li>
<button name="locale_id" value="fr" type="submit"> français </button>
</li>
<li>
<button name="locale_id" value="ja" type="submit"> 日本語 </button>
</li>
<li>
<button name="locale_id" value="pt_BR" type="submit"> português (Brasil) </button>
</li>
<li>
<button name="locale_id" value="uk" type="submit"> українська </button>
</li>
<li>
<button name="locale_id" value="el" type="submit"> Ελληνικά </button>
</li>
<li>
<button name="locale_id" value="de" type="submit"> Deutsch </button>
</li>
<li>
<button name="locale_id" value="zh_Hans" type="submit"> 中文 (简体) </button>
</li>
<li>
<button name="locale_id" value="zh_Hant" type="submit"> 中文 (繁體) </button>
</li>
<li>
<button name="locale_id" value="ru" type="submit"> русский </button>
</li>
<li>
<button name="locale_id" value="he" type="submit"> עברית </button>
</li>
<li>
<button name="locale_id" value="eo" type="submit"> Esperanto </button>
</li>
</ul>
</form>
Text Content
Skip to main content Switch to mobile version Warning Some features may not work without JavaScript. Please try enabling it if you encounter problems. Search PyPI Search * Help * Sponsors * Log in * Register Menu * Help * Sponsors * Log in * Register Search PyPI Search STANZA 1.9.2 pip install stanza Copy PIP instructions Latest version Released: Sep 12, 2024 A Python NLP Library for Many Human Languages, by the Stanford NLP Group NAVIGATION * Project description * Release history * Download files VERIFIED DETAILS These details have been verified by PyPI MAINTAINERS AngledLuffa futurulus jebolton manning qipeng vzhong yuhaozhang yuhuiz UNVERIFIED DETAILS These details have not been verified by PyPI PROJECT LINKS * Homepage META * License: Apache License 2.0 * Author: Stanford Natural Language Processing Group * Tags natural-language-processing, nlp, natural-language-understanding, stanford-nlp, deep-learning * Requires: Python >=3.8 CLASSIFIERS * Development Status * 4 - Beta * Intended Audience * Developers * Education * Information Technology * Science/Research * Programming Language * Python :: 3.8 * Python :: 3.9 * Python :: 3.10 * Python :: 3.11 * Python :: 3.12 * Topic * Scientific/Engineering * Scientific/Engineering :: Artificial Intelligence * Scientific/Engineering :: Information Analysis * Software Development * Software Development :: Libraries * Text Processing * Text Processing :: Linguistic JetBrains is a Contributing sponsor of the Python Software Foundation. PSF Sponsor · Served ethically * Project description * Project details * Release history * Download files PROJECT DESCRIPTION STANZA: A PYTHON NLP LIBRARY FOR MANY HUMAN LANGUAGES The Stanford NLP Group's official Python NLP library. It contains support for running various accurate natural language processing tools on 60+ languages and for accessing the Java Stanford CoreNLP software from Python. For detailed information please visit our official website. 🔥 A new collection of biomedical and clinical English model packages are now available, offering seamless experience for syntactic analysis and named entity recognition (NER) from biomedical literature text and clinical notes. For more information, check out our Biomedical models documentation page. REFERENCES If you use this library in your research, please kindly cite our ACL2020 Stanza system demo paper: @inproceedings{qi2020stanza, title={Stanza: A {Python} Natural Language Processing Toolkit for Many Human Languages}, author={Qi, Peng and Zhang, Yuhao and Zhang, Yuhui and Bolton, Jason and Manning, Christopher D.}, booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations", year={2020} } If you use our biomedical and clinical models, please also cite our Stanza Biomedical Models description paper: @article{zhang2021biomedical, author = {Zhang, Yuhao and Zhang, Yuhui and Qi, Peng and Manning, Christopher D and Langlotz, Curtis P}, title = {Biomedical and clinical {E}nglish model packages for the {S}tanza {P}ython {NLP} library}, journal = {Journal of the American Medical Informatics Association}, year = {2021}, month = {06}, issn = {1527-974X} } The PyTorch implementation of the neural pipeline in this repository is due to Peng Qi (@qipeng), Yuhao Zhang (@yuhaozhang), and Yuhui Zhang (@yuhui-zh15), with help from Jason Bolton (@j38), Tim Dozat (@tdozat) and John Bauer (@AngledLuffa). Maintenance of this repo is currently led by John Bauer. If you use the CoreNLP software through Stanza, please cite the CoreNLP software package and the respective modules as described here ("Citing Stanford CoreNLP in papers"). The CoreNLP client is mostly written by Arun Chaganty, and Jason Bolton spearheaded merging the two projects together. If you use the Semgrex or Ssurgeon part of CoreNLP, please cite our GURT paper on Semgrex and Ssurgeon: @inproceedings{bauer-etal-2023-semgrex, title = "Semgrex and Ssurgeon, Searching and Manipulating Dependency Graphs", author = "Bauer, John and Kiddon, Chlo{\'e} and Yeh, Eric and Shan, Alex and D. Manning, Christopher", booktitle = "Proceedings of the 21st International Workshop on Treebanks and Linguistic Theories (TLT, GURT/SyntaxFest 2023)", month = mar, year = "2023", address = "Washington, D.C.", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2023.tlt-1.7", pages = "67--73", abstract = "Searching dependency graphs and manipulating them can be a time consuming and challenging task to get right. We document Semgrex, a system for searching dependency graphs, and introduce Ssurgeon, a system for manipulating the output of Semgrex. The compact language used by these systems allows for easy command line or API processing of dependencies. Additionally, integration with publicly released toolkits in Java and Python allows for searching text relations and attributes over natural text.", } ISSUES AND USAGE Q&A To ask questions, report issues or request features 🤔, please use the GitHub Issue Tracker. Before creating a new issue, please make sure to search for existing issues that may solve your problem, or visit the Frequently Asked Questions (FAQ) page on our website. CONTRIBUTING TO STANZA We welcome community contributions to Stanza in the form of bugfixes 🛠️ and enhancements 💡! If you want to contribute, please first read our contribution guideline. INSTALLATION PIP Stanza supports Python 3.6 or later. We recommend that you install Stanza via pip, the Python package manager. To install, simply run: pip install stanza This should also help resolve all of the dependencies of Stanza, for instance PyTorch 1.3.0 or above. If you currently have a previous version of stanza installed, use: pip install stanza -U ANACONDA To install Stanza via Anaconda, use the following conda command: conda install -c stanfordnlp stanza Note that for now installing Stanza via Anaconda does not work for Python 3.10. For Python 3.10 please use pip installation. FROM SOURCE Alternatively, you can also install from source of this git repository, which will give you more flexibility in developing on top of Stanza. For this option, run git clone https://github.com/stanfordnlp/stanza.git cd stanza pip install -e . RUNNING STANZA GETTING STARTED WITH THE NEURAL PIPELINE To run your first Stanza pipeline, simply following these steps in your Python interactive interpreter: >>> import stanza >>> stanza.download('en') # This downloads the English models for the neural pipeline >>> nlp = stanza.Pipeline('en') # This sets up a default neural pipeline in English >>> doc = nlp("Barack Obama was born in Hawaii. He was elected president in 2008.") >>> doc.sentences[0].print_dependencies() If you encounter requests.exceptions.ConnectionError, please try to use a proxy: >>> import stanza >>> proxies = {'http': 'http://ip:port', 'https': 'http://ip:port'} >>> stanza.download('en', proxies=proxies) # This downloads the English models for the neural pipeline >>> nlp = stanza.Pipeline('en') # This sets up a default neural pipeline in English >>> doc = nlp("Barack Obama was born in Hawaii. He was elected president in 2008.") >>> doc.sentences[0].print_dependencies() The last command will print out the words in the first sentence in the input string (or Document, as it is represented in Stanza), as well as the indices for the word that governs it in the Universal Dependencies parse of that sentence (its "head"), along with the dependency relation between the words. The output should look like: ('Barack', '4', 'nsubj:pass') ('Obama', '1', 'flat') ('was', '4', 'aux:pass') ('born', '0', 'root') ('in', '6', 'case') ('Hawaii', '4', 'obl') ('.', '4', 'punct') See our getting started guide for more details. ACCESSING JAVA STANFORD CORENLP SOFTWARE Aside from the neural pipeline, this package also includes an official wrapper for accessing the Java Stanford CoreNLP software with Python code. There are a few initial setup steps. * Download Stanford CoreNLP and models for the language you wish to use * Put the model jars in the distribution folder * Tell the Python code where Stanford CoreNLP is located by setting the CORENLP_HOME environment variable (e.g., in *nix): export CORENLP_HOME=/path/to/stanford-corenlp-4.5.3 We provide comprehensive examples in our documentation that show how one can use CoreNLP through Stanza and extract various annotations from it. ONLINE COLAB NOTEBOOKS To get your started, we also provide interactive Jupyter notebooks in the demo folder. You can also open these notebooks and run them interactively on Google Colab. To view all available notebooks, follow these steps: * Go to the Google Colab website * Navigate to File -> Open notebook, and choose GitHub in the pop-up menu * Note that you do not need to give Colab access permission to your GitHub account * Type stanfordnlp/stanza in the search bar, and click enter TRAINED MODELS FOR THE NEURAL PIPELINE We currently provide models for all of the Universal Dependencies treebanks v2.8, as well as NER models for a few widely-spoken languages. You can find instructions for downloading and using these models here. BATCHING TO MAXIMIZE PIPELINE SPEED To maximize speed performance, it is essential to run the pipeline on batches of documents. Running a for loop on one sentence at a time will be very slow. The best approach at this time is to concatenate documents together, with each document separated by a blank line (i.e., two line breaks \n\n). The tokenizer will recognize blank lines as sentence breaks. We are actively working on improving multi-document processing. TRAINING YOUR OWN NEURAL PIPELINES All neural modules in this library can be trained with your own data. The tokenizer, the multi-word token (MWT) expander, the POS/morphological features tagger, the lemmatizer and the dependency parser require CoNLL-U formatted data, while the NER model requires the BIOES format. Currently, we do not support model training via the Pipeline interface. Therefore, to train your own models, you need to clone this git repository and run training from the source. For detailed step-by-step guidance on how to train and evaluate your own models, please visit our training documentation. LICENSE Stanza is released under the Apache License, Version 2.0. See the LICENSE file for more details. PROJECT DETAILS VERIFIED DETAILS These details have been verified by PyPI MAINTAINERS AngledLuffa futurulus jebolton manning qipeng vzhong yuhaozhang yuhuiz UNVERIFIED DETAILS These details have not been verified by PyPI PROJECT LINKS * Homepage META * License: Apache License 2.0 * Author: Stanford Natural Language Processing Group * Tags natural-language-processing, nlp, natural-language-understanding, stanford-nlp, deep-learning * Requires: Python >=3.8 CLASSIFIERS * Development Status * 4 - Beta * Intended Audience * Developers * Education * Information Technology * Science/Research * Programming Language * Python :: 3.8 * Python :: 3.9 * Python :: 3.10 * Python :: 3.11 * Python :: 3.12 * Topic * Scientific/Engineering * Scientific/Engineering :: Artificial Intelligence * Scientific/Engineering :: Information Analysis * Software Development * Software Development :: Libraries * Text Processing * Text Processing :: Linguistic RELEASE HISTORY RELEASE NOTIFICATIONS | RSS FEED This version 1.9.2 Sep 12, 2024 1.9.1 Sep 12, 2024 1.9.0 Sep 11, 2024 1.8.2 Apr 20, 2024 1.8.1 Feb 29, 2024 1.8.0 Feb 24, 2024 1.7.0 Dec 2, 2023 1.6.1 Oct 5, 2023 1.6.0 Oct 2, 2023 1.5.1 Sep 8, 2023 1.5.0 Mar 13, 2023 1.4.2 Sep 15, 2022 1.4.1 Sep 13, 2022 1.4.0 Apr 22, 2022 1.3.0 Oct 4, 2021 1.2.3 Aug 9, 2021 1.2.2 Jul 12, 2021 1.2.1 Jun 8, 2021 1.2 Jan 27, 2021 1.1.1 Aug 12, 2020 1.0.1 Apr 26, 2020 1.0.0 Mar 16, 2020 1.0.0rc0 pre-release Mar 13, 2020 0.3 May 21, 2017 DOWNLOAD FILES Download the file for your platform. If you're not sure which to choose, learn more about installing packages. SOURCE DISTRIBUTION stanza-1.9.2.tar.gz (862.8 kB view details) Uploaded Sep 12, 2024 Source BUILT DISTRIBUTION stanza-1.9.2-py3-none-any.whl (1.1 MB view details) Uploaded Sep 12, 2024 Python 3 FILE DETAILS Details for the file stanza-1.9.2.tar.gz. FILE METADATA * Download URL: stanza-1.9.2.tar.gz * Upload date: Sep 12, 2024 * Size: 862.8 kB * Tags: Source * Uploaded using Trusted Publishing? No * Uploaded via: twine/5.0.0 CPython/3.9.18 FILE HASHES Hashes for stanza-1.9.2.tar.gz Algorithm Hash digest SHA256 36a93f60bf470e6026122eacab291751ad401fe3279e2d022fffef5cb35903e5 Copy MD5 993143cc0edc97ceaf5f6083f703b6f9 Copy BLAKE2b-256 4b6ee9fffb9ee34c81d62f2409e27e9ad85185df65b11db26442a4cef046ff3b Copy See more details on using hashes here. FILE DETAILS Details for the file stanza-1.9.2-py3-none-any.whl. FILE METADATA * Download URL: stanza-1.9.2-py3-none-any.whl * Upload date: Sep 12, 2024 * Size: 1.1 MB * Tags: Python 3 * Uploaded using Trusted Publishing? No * Uploaded via: twine/5.0.0 CPython/3.9.18 FILE HASHES Hashes for stanza-1.9.2-py3-none-any.whl Algorithm Hash digest SHA256 d869c4bbd61c52422bd263ee72d6d225e2235b18b0b00b5eff3d86a14b210553 Copy MD5 62ccb576c692c55c013aa712596700dc Copy BLAKE2b-256 caa48e66af3775e87ef2369547c8ce95ae1baf2d2e5fca0ef2c0f38ec91ac001 Copy See more details on using hashes here. HELP * Installing packages * Uploading packages * User guide * Project name retention * FAQs ABOUT PYPI * PyPI Blog * Infrastructure dashboard * Statistics * Logos & trademarks * Our sponsors CONTRIBUTING TO PYPI * Bugs and feedback * Contribute on GitHub * Translate PyPI * Sponsor PyPI * Development credits USING PYPI * Code of conduct * Report security issue * Privacy Notice * Terms of Use * Acceptable Use Policy -------------------------------------------------------------------------------- Status: All Systems Operational Developed and maintained by the Python community, for the Python community. Donate today! "PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation. © 2024 Python Software Foundation Site map Switch to desktop version * English * español * français * 日本語 * português (Brasil) * українська * Ελληνικά * Deutsch * 中文 (简体) * 中文 (繁體) * русский * עברית * Esperanto Supported by AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Microsoft PSF Sponsor Pingdom Monitoring Sentry Error logging StatusPage Status page