STAY WITH US

[Hindi]NLP 14# Tokenization Part-3 |NLP|Python 3|Natural Language Processing|2019

[Hindi]NLP 14# Tokenization Part-3 |NLP|Python 3|Natural Language Processing|2019


Code:

# -*- coding: utf-8 -*-
"""NLP_Ex8.ipynb

Automatically generated by Colaboratory.

"""

import spacy

nlp = spacy.load("en_core_web_sm")

from spacy import displacy

doc1 = nlp(u"Google to build a Gujrat factory for $60 million.")

displacy.render(doc1, style='dep', jupyter=True, options={'distance':60})

doc2= nlp(u"Over the last quater Apple sold nearly 20 thousand ipods for a profit of $6 million.")

displacy.render(doc2, style='ent', jupyter=True)

doc3 = nlp(u'My name is Vishwajeet Singh Rana')

displacy.serve(doc3, style='dep')

YouTube:



Recommended Book: 


Post a Comment

0 Comments