- 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 - Span.remove_extension Classmethod
As the name implies, this class method will remove a previously registered extension on the Span class.
Example
An example of Span.remove_extension class method is as follows −
import spacy nlp_model = spacy.load("en_core_web_sm") from spacy.tokens import Span Span.set_extension('is_city', default=False, force = True) Removed_ext = Span.remove_extension('is_city') Span.has_extension('is_city')
Output
Upon execution, you will receive the following output −
False
spacy_container_span_class.htm
Advertisements