Skip to content

Python implementation of sentistrength algorithm

License

Notifications You must be signed in to change notification settings

ggeorgop99/mysentistrength

 
 

Repository files navigation

mysentistrength

Python implementation of sentistrength algorithm.

mysenti.py is the code, reviews.csv are the reviews (2800), stars.csv are the stars of every review, in folder finallexformysenti there are the lexicons and in folder dataset there are a .csv with results from crawlers (dirtyreviews), a .csv with those results cleared (reviewstars) and a .csv with results(finalgreekmysenti).

Inside folder skroutz_scraping and subfolder spiders there are the two crawlers, amazon_reviews.py and amazon_reviews22.py.

Run with command
scrapy runspider amazon_reviews_scraping/amazon_reviews_scraping/spiders/amazon_reviews.py -o links.csv
and
scrapy runspider amazon_reviews_scraping/amazon_reviews_scraping/spiders/amazon_reviews22.py -o dirtyreviews.csv
FROM THE FOLDER amazon_reviews_scraping

There is function clearfiles() inside mysenti.py that makes reviewstars.csv that is suitable for mysentistrength and function splitfiles() that makes reviews.csv and stars.csv. Note that if there is not a dirtyreviews.csv inside the folder, clearfiles() does not run.

About

Python implementation of sentistrength algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.3%
  • PureBasic 16.7%