Git Product home page Git Product logo

satiric-text-analysis's People

Stargazers

 avatar  avatar

Forkers

maazamjad

satiric-text-analysis's Issues

Errors while Compiling

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.