- spaCy - Discussion
- spaCy - Useful Resources
- spaCy - Quick Guide
- Updating Neural Network Model
- Training Neural Network Model
- spaCy - Container Lexeme Class
- spaCy - Span Class Properties
- spaCy - Container Span Class
- spaCy - Token Properties
- spaCy - Container Token Class
- Doc Class ContextManager and Property
- spaCy - Containers
- spaCy - Compatibility Functions
- spaCy - Utility Functions
- spaCy - Visualization Function
- spaCy - Top-level Functions
- spaCy - Command Line Helpers
- spaCy - Architecture
- spaCy - Models and Languages
- spaCy - Getting Started
- spaCy - Introduction
- spaCy - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
spaCy - Utipty Functions
We can find some small collection of spaCy’s utipty functions in spacy/util.py. Let us understand those functions and their usage.
The utipty functions are psted below in a table with their descriptions.
Sr.No. | Utipty Function & Description |
---|---|
1 | To get path to the data directory. |
2 | To set custom path to the data directory. |
3 | To import and load a Language class. |
4 | To set a custom Language class. |
5 | To find whether a Language class is already loaded or not. |
6 | This function will load a model. |
7 | This function will load a model from a data directory path. |
8 | It is a helper function which is used in the load() method of a model package. |
9 | To get a model’s meta.json from a directory path. |
10 | This function will update, vapdate, and overwrite tokenizer expectations. |
11 | To check whether we are running the spacy from a Jupyter notebook. |
12 | To get the path of an installed spacy package. |
13 | To vapdate model packages. |
14 | This function will compile a sequence of prefix rules into a regex object. |
15 | This function will compile a sequence of suffix rules into a regex object. |
16 | This function will compile a sequence of infix rules into a regex object. |
17 | This function will yield an infinite series of compounding values. |
18 | This function will yield an infinite series of pnearly decaying values. |
19 | To shuffle an iterator. |
20 | To filter a sequence of span objects and to remove the duppcates. |