- spaCy Tutorial
- spaCy - Home
- spaCy - Introduction
- spaCy - Getting Started
- spaCy - Models and Languages
- spaCy - Architecture
- spaCy - Command Line Helpers
- spaCy - Top-level Functions
- spaCy - Visualization Function
- spaCy - Utility Functions
- spaCy - Compatibility Functions
- spaCy - Containers
- Doc Class ContextManager and Property
- spaCy - Container Token Class
- spaCy - Token Properties
- spaCy - Container Span Class
- spaCy - Span Class Properties
- spaCy - Container Lexeme Class
- Training Neural Network Model
- Updating Neural Network Model
- spaCy Useful Resources
- spaCy - Quick Guide
- spaCy - Useful Resources
- spaCy - Discussion
spaCy - Util.get_package_path
As the name implies, this utility function is used to get the path of an installed spacy package. It is mainly used to resolve the location of spacy model packages.
Argument
The table below explains its argument −
NAME | TYPE | DESCRIPTION |
---|---|---|
package_name | Unicode | It is the name of the installed package. |
Example
An example of util.get_package_path() function is as follows:
import spacy spacy.util.get_package_path("en_core_web_sm")
Output
When you run the code, you will see the following output −
WindowsPath('C:/Users/Leekha/Anaconda3/lib/site-packages/en_core_web_sm')
spacy_util_get_data_path.htm
Advertisements
To Continue Learning Please Login
Login with Google