Articles → NLP → Introduction To Natural Language Processing And Tokens In Spacy

Introduction To Natural Language Processing And Tokens In Spacy






What Is Natural Language Processing?





Tokenization In NLP





Example Of Tokenization


import spacy

nlp = spacy.load("en_core_web_sm")
doc = nlp(u"This is a sentence.")  # each word is token

for token in doc:
    print(token.text)



Output


Picture showing the output of tokens in spacy



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, July 16, 2020

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250