Giter Club home page Giter Club logo

nlp_qa_project's People

Contributors

21han 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

Watchers

 avatar  avatar  avatar

nlp_qa_project's Issues

Error compiling

When I try to compile, it errors with the below message. I have ensure I have all decencies installed.

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/format_stack.py", line 33, in <module>
    generate_tokens = tokenize.generate_tokens
AttributeError: module 'tokenize' has no attribute 'generate_tokens'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./ask.py", line 1, in <module>
    from bin_questions import BinQuestion
  File "/{FILEPATH}/nlp_qa_project-master/bin_questions.py", line 1, in <module>
    from nltk.tree import Tree as Tree
  File "/usr/local/lib/python3.6/site-packages/nltk/__init__.py", line 143, in <module>
    from nltk.chunk import *
  File "/usr/local/lib/python3.6/site-packages/nltk/chunk/__init__.py", line 157, in <module>
    from nltk.chunk.api import ChunkParserI
  File "/usr/local/lib/python3.6/site-packages/nltk/chunk/api.py", line 13, in <module>
    from nltk.parse import ParserI
  File "/usr/local/lib/python3.6/site-packages/nltk/parse/__init__.py", line 100, in <module>
    from nltk.parse.transitionparser import TransitionParser
  File "/usr/local/lib/python3.6/site-packages/nltk/parse/transitionparser.py", line 22, in <module>
    from sklearn.datasets import load_svmlight_file
  File "/usr/local/lib/python3.6/site-packages/sklearn/__init__.py", line 64, in <module>
    from .base import clone
  File "/usr/local/lib/python3.6/site-packages/sklearn/base.py", line 13, in <module>
    from .utils.fixes import signature
  File "/usr/local/lib/python3.6/site-packages/sklearn/utils/__init__.py", line 14, in <module>
    from . import _joblib
  File "/usr/local/lib/python3.6/site-packages/sklearn/utils/_joblib.py", line 22, in <module>
    from ..externals import joblib
  File "/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/__init__.py", line 119, in <module>
    from .parallel import Parallel
  File "/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py", line 24, in <module>
    from .format_stack import format_outer_frames
  File "/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/format_stack.py", line 35, in <module>
    generate_tokens = tokenize.tokenize
AttributeError: module 'tokenize' has no attribute 'tokenize'
{DEVICE}:nlp_qa_project-master {USER}$ Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/__init__.py", line 16, in <module>
    from . import context
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/context.py", line 3, in <module>
    import threading
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 7, in <module>
    from traceback import format_exc as _format_exc
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/traceback.py", line 5, in <module>
    import linecache
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/linecache.py", line 11, in <module>
    import tokenize
  File "/{FILEPATH}/nlp_qa_project-master/tokenize.py", line 3, in <module>
    import nltk
  File "/usr/local/lib/python3.6/site-packages/nltk/__init__.py", line 129, in <module>
    from nltk.collocations import *
  File "/usr/local/lib/python3.6/site-packages/nltk/collocations.py", line 38, in <module>
    from nltk.util import ngrams
  File "/usr/local/lib/python3.6/site-packages/nltk/util.py", line 15, in <module>
    import pydoc
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pydoc.py", line 72, in <module>
    from traceback import format_exception_only
ImportError: cannot import name 'format_exception_only'

Error while running setup.sh

The following error has occured while running setup.sh.

--2020-08-14 15:46:48-- (try:20) http://nlp.stanford.edu/software/stanford-corenlp-full-2018-10-05.zip
Connecting to nlp.stanford.edu (nlp.stanford.edu)|171.64.67.140|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Giving up.

unzip: cannot find or open stanford-corenlp-full-2018-10-05.zip, stanford-corenlp-full-2018-10-05.zip.zip or stanford-corenlp-full-2018-10-05.zip.ZIP.
./setup.sh: line 16: cd: stanford-corenlp-full-2018-10-05/: No such file or directory
Error: Could not find or load main class edu.stanford.nlp.pipeline.StanfordCoreNLPServer
Caused by: java.lang.ClassNotFoundException: edu.stanford.nlp.pipeline.StanfordCoreNLPServer

error while running python ask.py

Traceback (most recent call last):
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/sklearn/externals/joblib/format_stack.py", line 33, in
generate_tokens = tokenize.generate_tokens
AttributeError: module 'tokenize' has no attribute 'generate_tokens'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "ask.py", line 1, in
from bin_questions import BinQuestion
File "/Users/vivekrao/QA_Model_Research/nlp_qa_project/bin_questions.py", line 1, in
from nltk.tree import Tree
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/nltk/init.py", line 143, in
from nltk.chunk import *
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/nltk/chunk/init.py", line 157, in
from nltk.chunk.api import ChunkParserI
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/nltk/chunk/api.py", line 13, in
from nltk.parse import ParserI
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/nltk/parse/init.py", line 100, in
from nltk.parse.transitionparser import TransitionParser
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/nltk/parse/transitionparser.py", line 22, in
from sklearn.datasets import load_svmlight_file
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/sklearn/init.py", line 64, in
from .base import clone
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/sklearn/base.py", line 13, in
from .utils.fixes import signature
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/sklearn/utils/init.py", line 14, in
from . import _joblib
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/sklearn/utils/_joblib.py", line 22, in
from ..externals import joblib
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/sklearn/externals/joblib/init.py", line 119, in
from .parallel import Parallel
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py", line 24, in
from .format_stack import format_outer_frames
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/sklearn/externals/joblib/format_stack.py", line 35, in
generate_tokens = tokenize.tokenize
AttributeError: module 'tokenize' has no attribute 'tokenize'
(virtual_env) Trinetra-Reddy-MacBook-Air:nlp_qa_project vivekrao$ Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/init.py", line 16, in
from . import context
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/context.py", line 3, in
import threading
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 7, in
from traceback import format_exc as _format_exc
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/traceback.py", line 5, in
import linecache
File "/Users/vivekrao/virtual_env/lib/python3.6/linecache.py", line 11, in
import tokenize
File "/Users/vivekrao/QA_Model_Research/nlp_qa_project/tokenize.py", line 1, in
import nltk
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/nltk/init.py", line 129, in
from nltk.collocations import *
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/nltk/collocations.py", line 38, in
from nltk.util import ngrams
File "/Users/vivekrao/virtual_env/lib/python3.6/site-packages/nltk/util.py", line 15, in
import pydoc
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pydoc.py", line 72, in
from traceback import format_exception_only
ImportError: cannot import name 'format_exception_only'

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.