miguelvr / satiric-text-analysis Goto Github PK
View Code? Open in Web Editor NEWSatire detection in news articles
Satire detection in news articles
while compiling I face different errors such as File "run_baselines.py", line 111, in
use_tfidf=args.use_tfidf
File "/home/rowan/PycharmProjects/SatireTest/data/loading.py", line 33, in load_bow_data
docs_bow = bag_of_words(documents, vocabulary)
File "/home/rowan/PycharmProjects/SatireTest/data/features.py", line 95, in bag_of_words
for doc in documents_indices:
TypeError: 'int' object is not iterable
and Traceback (most recent call last):
File "run_baselines.py", line 111, in
use_tfidf=args.use_tfidf
File "/home/rowan/PycharmProjects/SatireTest/data/loading.py", line 16, in load_bow_data
documents = replace_numeric_tokens(documents)
File "/home/rowan/PycharmProjects/SatireTest/data/text_utils.py", line 44, in replace_numeric_tokens
return recursive_map(documents, replace_numeric)
File "/home/rowan/PycharmProjects/SatireTest/data/text_utils.py", line 96, in recursive_map
return f(l)
File "/home/rowan/PycharmProjects/SatireTest/data/text_utils.py", line 39, in replace_numeric
if re.match(r'[-+]?\d*.\d+|\d+|[-+]?\d*,\d+', token):
File "/home/rowan/anaconda3/lib/python3.7/re.py", line 173, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object
can you please check these errors?
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.