21han / nlp_qa_project Goto Github PK
View Code? Open in Web Editor NEWNatural Language Processing Question Answering Final Project
Home Page: http://demo.clab.cs.cmu.edu/NLP/
License: Other
Natural Language Processing Question Answering Final Project
Home Page: http://demo.clab.cs.cmu.edu/NLP/
License: Other
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'
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
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.