Code Monkey home page Code Monkey logo

jalajthanaki / nlpython Goto Github PK

View Code? Open in Web Editor NEW
317.0 22.0 206.0 134.57 MB

This repository contains the code related to Natural Language Processing using python scripting language. All the codes are related to my book entitled "Python Natural Language Processing"

License: MIT License

HTML 11.26% Python 3.60% Jupyter Notebook 85.15%
natural-language-processing python-scripting-language deep-learning text-mining parsing part-of-speech feature-engineering feature-extraction feature-selection python2

nlpython's Introduction

All the codes are related to my book entitled "Python Natural Language Processing".

This repository contains the code related to Natural Language Processing using python scripting language.

Details of the book:

  1. Introduction
  2. Practical understanding of corpus and data set
  3. Understanding Structure of Sentences
  4. Preprocessing
  5. Feature Engineering and NLP Algorithms
  6. Advance Feature Engineering and NLP Algorithms
  7. Rule-Based System for NLP
  8. Machine Learning for NLP Problems
  9. Deep Learning for NLU and NLG Problems
  10. Appendix A
  11. Appendix B
  12. Appendix C

NLPython

Join the chat at https://gitter.im/NLPython/Lobby You can join this gitter room for further discusstion.

nlpython's People

Contributors

gitter-badger avatar jalajthanaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nlpython's Issues

Error in wordsteam.py

Dear, jalajthanaki

These days, I tried to study NLP using your book 'Python Natural Language Processing' in Korea.
I have some problem in Ch3, wordsteam.py.
I tried to solve it through internet searching such as stackoverflow for long time.
(Actually I am a beginner in Python and NLP)
But, I can't solve it. So, finally I think I need your help if you can.
When I run this code, wordsteam.py, I get this below result.
You know how can I fix it?


(base) C:\Users\kyong\NLP\Ch3>python wordsteam.py

Derivational Morphemes
happi
unkind

Inflectional Morphemes
dog
expect

Some examples
unexpect
disagr
disagre
agreement
quirki
histor
canon

Derivational Morphemes using polyglot library
Traceback (most recent call last):
File "wordsteam.py", line 56, in
polyglot_stem()
File "wordsteam.py", line 43, in polyglot_stem
print("{:<20}{}".format(w, w.morphemes))
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\decorators.py", line 20, in get
value = obj.dict[self.func.name] = self.func(obj)
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\text.py", line 269, in morphemes
words, score = self.morpheme_analyzer.viterbi_segment(self.string)
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\decorators.py", line 20, in get
value = obj.dict[self.func.name] = self.func(obj)
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\text.py", line 265, in morpheme_analyzer
return load_morfessor_model(lang=self.language)
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\decorators.py", line 30, in memoizer
cache[key] = obj(*args, **kwargs)
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\load.py", line 128, in load_morfessor_model
p = locate_resource(src_dir, lang)
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\load.py", line 47, in locate_resource
if downloader.status(package_id) != downloader.INSTALLED:
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\downloader.py", line 737, in status
info = self._info_or_id(info_or_id)
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\downloader.py", line 507, in _info_or_id
return self.info(info_or_id)
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\downloader.py", line 929, in info
self._update_index() # If package is not found, most probably we did not
File "C:\Users\kyong\anaconda3\lib\site-packages\polyglot\downloader.py", line 831, in _update_index
data = urlopen(index_url).read()
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 640, in http_response
response = self.parent.error(
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 563, in error
result = self._call_chain(*args)
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 640, in http_response
response = self.parent.error(
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 569, in error
return self._call_chain(*args)
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Users\kyong\anaconda3\lib\urllib\request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.