Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File "pipeline.py", line 9, import config ImportError: No module named config #19

Closed
vivekamin opened this issue Sep 26, 2017 · 4 comments

Comments

@vivekamin
Copy link

I have followed steps. Not able to find config.py

@vivekamin
Copy link
Author

AttributeError: 'PorterStemmer' object has no attribute 'stem_word'
Getting this error now.

raceback (most recent call last):
File "pipeline.py", line 10, in
import repdocs
File "/home/avien/Documents/SML_dataset/dblp/pipeline/repdocs.py", line 10, in
import doctovec
File "/home/avien/Documents/SML_dataset/dblp/pipeline/doctovec.py", line 55, in
stem_word = PorterStemmer().stem_word
AttributeError: 'PorterStemmer' object has no attribute 'stem_word'

@RonnieGandhi
Copy link

RonnieGandhi commented Oct 10, 2018

use rather :

try:
# This is a more efficient implementation of the Porter Stemmer,
# available on PyPi.
from stemming.porter2 import stem
except ImportError:
# Fall back to the slower stemmer available from NLTK
try:
from nltk import PorterStemmer
stem_word = PorterStemmer().stem_word
except ImportError:
# You're out of luck; in practice, we should never get here because the
# import from nltk.tokenize above should throw an ImportError first.
# This is here in case someone decides to remove that.
print 'No suitable Porter Stemmer could be found.'
sys.exit(NO_PORTER_STEMMER_ERROR)

and where stem_word is used replace it with stem function!

@suziieett
Copy link

AttributeError: 'PorterStemmer' object has no attribute 'stem_word'
Getting this error now.

raceback (most recent call last):
File "pipeline.py", line 10, in
import repdocs
File "/home/avien/Documents/SML_dataset/dblp/pipeline/repdocs.py", line 10, in
import doctovec
File "/home/avien/Documents/SML_dataset/dblp/pipeline/doctovec.py", line 55, in
stem_word = PorterStemmer().stem_word
AttributeError: 'PorterStemmer' object has no attribute 'stem_word'

Are you able to solve this issue ??
I am facing the same issue.

@vivekamin
Copy link
Author

vivekamin commented Feb 19, 2019

AttributeError: 'PorterStemmer' object has no attribute 'stem_word'
Getting this error now.
raceback (most recent call last):
File "pipeline.py", line 10, in
import repdocs
File "/home/avien/Documents/SML_dataset/dblp/pipeline/repdocs.py", line 10, in
import doctovec
File "/home/avien/Documents/SML_dataset/dblp/pipeline/doctovec.py", line 55, in
stem_word = PorterStemmer().stem_word
AttributeError: 'PorterStemmer' object has no attribute 'stem_word'

Are you able to solve this issue ??
I am facing the same issue.

Nope! I coded the required formatting conversion.

@macks22 macks22 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants