- 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 - Token._ _len_ _ Method
This method is used to calculate the number of Unicode characters in the token.
Example
An example of Token._ _len_ _ method is as follows −
import spacy nlp_model = spacy.load("en_core_web_sm") doc = nlp_model("This is TutorialsPoint.com.") token = doc[0] len(token)
Output
4
spacy_container_token_class.htm
Advertisements