- 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_data_path
This function is used to get path to the data directory where spaCy looks for models. The default path is spacy/data. The output of this function would be a Data Path or none.
Argument
The table below explains its argument −
NAME | TYPE | DESCRIPTION |
---|---|---|
require_exists | bool | It will return path if it exists, otherwise it will return None. |
Example
An example for util.get_data_path() function is stated below −
import spacy spacy.util.get_data_path()
Output
WindowsPath('C:/Users/Leekha/Anaconda3/lib/site-packages/spacy/data')
spacy_util_get_data_path.htm
Advertisements
To Continue Learning Please Login
Login with Google