Comments (7)
Hi @dipaweshpawarsn,
Do you also get that error when using the TfIdf model?
f.
from pke.
I will have to check that as I tried it 3 months ago
from pke.
Hi @dipaweshpawarsn,
Do you also get that error when using the TfIdf model?
f.
No I have not tried it.
from pke.
I am not able to reproduce your issue on my computer. Can you try to update your pke
install and re-try?
Thanks,
from pke.
I am able to reproduce this issue in an Ubuntu-18.04 Docker Container with Python 3.6. It works on the host though, which is also 18.04 with python 3.6
from pke.
The fix is to run the following:
apt-get install locales
locale-gen en_US.UTF-8
update-locale LC_ALL= en_US.UTF-8 LANG= en_US.UTF-8
export PYTHONIOENCODING=utf8
Not sure whether all lines are necessary.
from pke.
I fixed the same bug as follows.
File: pke/util.py
Function: load_document_frequency_file(input_file, delimiter='\t'):
Lines: 51 ~ 53
Fixed code: (adding encoding="utf8" when open the file)
# open the input file
with gzip.open(input_file, 'rt', encoding="utf8") if input_file.endswith('.gz') else \
codecs.open(input_file, 'rt', encoding="utf8") as f:
# read the csv file
df_reader = csv.reader(f, delimiter=delimiter)
from pke.
Related Issues (20)
- Langcode "ge" does not work with spacy HOT 2
- max_length parameter error with the latest version HOT 1
- Keyword dataset HOT 1
- How to manipulate length of key-phrases? HOT 3
- AttributeError: module 'scipy.sparse' has no attribute 'coo_array' HOT 1
- Throws zero division error HOT 3
- sklearn is deprecated, breaks PKE HOT 1
- error while installing pke HOT 1
- SnowballStemmer and Spacy-model use different langcodes HOT 1
- Error: module 'scipy.sparse' has no attribute 'coo_array' HOT 1
- KP-Miner: why candidate_df is 1 for n-grams except unigram? HOT 1
- Error in PositionRank: tuple index out of range HOT 1
- Error in TopicalPageRank: 'numpy.ndarray' object has no attribute 'index' HOT 3
- Does not support Chinese? HOT 1
- PositionRank algorithm fails with networkx version 3.0: IndexError in `candidate_weighting()` method HOT 1
- LookupError: Can't find any language named 'hinglish' HOT 1
- Memory leak in TopicRank HOT 5
- hinglish key error HOT 1
- extractor.load_document (Spacy) limitation of 1000000 characters
- TfIdf still state of the art?
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 pke.