peterldowns / clickbait-classifier Goto Github PK
View Code? Open in Web Editor NEWSimple ML experiment to classify article titles as clickbait or news.
License: MIT License
Simple ML experiment to classify article titles as clickbait or news.
License: MIT License
after running:
$ python interactive.py
i'm getting this. How to fix?
Loading classifier (may take time to train.) Traceback (most recent call last): File "interactive.py", line 7, in <module> import classifier File "/vagrant/tese/svm/peterldowns-clickbait-classifier/classifier.py", line 21, in <module> import nltk File "/usr/local/lib/python2.7/dist-packages/nltk/__init__.py", line 117, in <module> from nltk.align import * File "/usr/local/lib/python2.7/dist-packages/nltk/align/__init__.py", line 15, in <module> from nltk.align.ibm1 import IBMModel1 File "/usr/local/lib/python2.7/dist-packages/nltk/align/ibm1.py", line 18, in <module> from nltk.corpus import comtrans File "/usr/local/lib/python2.7/dist-packages/nltk/corpus/__init__.py", line 66, in <module> from nltk.corpus.reader import * File "/usr/local/lib/python2.7/dist-packages/nltk/corpus/reader/__init__.py", line 59, in <module> from nltk.corpus.reader.tagged import * File "/usr/local/lib/python2.7/dist-packages/nltk/corpus/reader/tagged.py", line 17, in <module> from nltk.tag import str2tuple, map_tag File "/usr/local/lib/python2.7/dist-packages/nltk/tag/__init__.py", line 65, in <module> from nltk.tag.sequential import (SequentialBackoffTagger, ContextTagger, File "/usr/local/lib/python2.7/dist-packages/nltk/tag/sequential.py", line 25, in <module> from nltk.classify.naivebayes import NaiveBayesClassifier File "/usr/local/lib/python2.7/dist-packages/nltk/classify/__init__.py", line 93, in <module> from nltk.classify.scikitlearn import SklearnClassifier File "/usr/local/lib/python2.7/dist-packages/nltk/classify/scikitlearn.py", line 41, in <module> from sklearn.feature_extraction import DictVectorizer File "/usr/local/lib/python2.7/dist-packages/sklearn/feature_extraction/__init__.py", line 7, in <module> from .dict_vectorizer import DictVectorizer File "/usr/local/lib/python2.7/dist-packages/sklearn/feature_extraction/dict_vectorizer.py", line 14, in <module> from ..utils import atleast2d_or_csr, tosequence File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/__init__.py", line 10, in <module> from .murmurhash import murmurhash3_32 File "numpy.pxd", line 155, in init sklearn.utils.murmurhash (sklearn/utils/murmurhash.c:5029) ValueError: numpy.dtype has the wrong size, try recompiling
Really neat project! I'm looking into building a browser extension Clickbait "dereferencer", something like the Stop Clickbait Facebook account, which summarizes baited answers. At this point there seem to be numerous extensions that block Clickbait outright, but I'd rather go on the offensive ๐
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.