Comments (4)
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'
from dblp.
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!
from dblp.
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.
from dblp.
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.
from dblp.
Related Issues (20)
- Add AMiner data retrieval script HOT 1
- How to run this on the Aminer dataset? HOT 21
- NFO: Task RemoveUniqueVenues__99914b932b died unexpectedly ERROR.... HOT 2
- BuildAllGraphData task does not exist in build_graphs.py HOT 1
- python filtering.py FilterAllCSVRecordsToYearRange --start 1990 --end 2000 --local-scheduler does not work as guided HOT 2
- How to change AMiner-Author2Paper.txt to AMiner-Author2Paper.tsv ? HOT 12
- Add complete() mechanism to BuildDataset
- Failed scheduling due to utils.py 'basestring' is not defined? HOT 2
- Author <id> to <name> mapping HOT 2
- paper.csv is too large to save in my computer HOT 1
- Repdocs Module Documentation
- RuntimeError: Unfulfilled dependency at run time: HOT 2
- config is not recognized while executing the code HOT 5
- Thoroughly document each output file.
- Refactor `convert` module to use luigi HOT 1
- Unit tests for each v1.0 Task
- Build co-authorship network
- Perform author name disambiguation to produce new mapping HOT 2
- Add graphml writer that includes term attributes on nodes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dblp.