I'm using Python. Here's the question!
text = '''Manchester City won the Under-18 Premier League Cup for a second successive season after beating Stoke City 6-0 at Academy Stadium.
Stoke had knocked out 2017/18 winners Chelsea to reach the final for the first time but went behind to Samuel Edozie's deflected 39th-minute opener.
Man City then hit five goals in 15 second-half minutes.
Liam Delap netted a stunning solo goal before James Mcatee and captain Cole Palmer, pictured above lifting the Trophy, both struck braces.'''
The text variable above contains English characters. I want to capture only nouns in the text variable. So we crawl noun data from an English dictionary and crawl it into a database, but other than this, is there an API or Python library that easily contains noun information?
test = Initialize English sentences as above
eng_list = test.split(" ")
for word in eng_list:
If word == noun:
print ("This word is a noun")
Can we simply tell if it's a noun or not in this way?
python nlp
I'm not sure because I haven't
I think it's possible because you can specify the parts.
You need to do a morpheme analysis.
Many use nltk as an English morpheme analysis module for Python.
If it's Korean, we use konlpy a lot, and the actual morpheme analysis engine uses a variety.
Look at the document below and follow it one by one.
https://datascienceschool.net/view-notebook/8895b16a141749a9bb381007d52721c1/
How about using the API provided by the dictionary?
https://developer.oxforddictionaries.com/
© 2024 OneMinuteCode. All rights reserved.