{"id":21073668,"url":"https://github.com/chouffe/senti-tweet","last_synced_at":"2026-07-28T09:37:31.465Z","repository":{"id":8466335,"uuid":"10064732","full_name":"Chouffe/senti-tweet","owner":"Chouffe","description":"Tweet Sentiment Analyzer coded in Java and Python","archived":false,"fork":false,"pushed_at":"2013-05-15T18:09:33.000Z","size":2636,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T03:22:23.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chouffe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-14T20:55:13.000Z","updated_at":"2014-10-25T23:44:59.000Z","dependencies_parsed_at":"2022-09-05T12:30:26.627Z","dependency_job_id":null,"html_url":"https://github.com/Chouffe/senti-tweet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chouffe/senti-tweet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouffe%2Fsenti-tweet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouffe%2Fsenti-tweet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouffe%2Fsenti-tweet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouffe%2Fsenti-tweet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chouffe","download_url":"https://codeload.github.com/Chouffe/senti-tweet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouffe%2Fsenti-tweet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279161036,"owners_count":26116855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T19:01:33.209Z","updated_at":"2025-10-16T05:59:11.177Z","avatar_url":"https://github.com/Chouffe.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"rep-man\n=======\n\nOnline Reputation Management\n\nDownload twitter4j\n=======\n\nDownload twitter4j-3.0.3.zip from http://twitter4j.org/en/index.html and unzip\nthe jar files twitter4j-{core,async,stream, media-support}3.0.3.jar into the root directory\nof this git project. I am not sure that all the jar files are needed (probably just the core\nthat is needed as of now), however it does not hurt and will make improving the project easier\nto have them all.\n\nTwitter4j is the only java interface mentioned on twitter.com as seems stable enough. Plus it\nprovides a REALLY good abstraction level that is very welcome.\n\n\nCompile \u0026 Run\n=======\n\nTo compile use\n\u003e make\n\nPLEASE NOTE: for this program to run it will need to use OAuth to the twitter servers. I have created\nan application on twitter.com for us. I will try to invite you if its possible. For now you can\nauthenticate using the twitter4j.properties.kalle file by renaming it to twitter4j.properties. This \nwill authenticate using my twitter account, however, the application is set to read-only so it should\nbe safe for you to use.\n\nServer Side\n======\n\nTo be able to run the server, one has to download additional python packages.\nIt works with a postgreSQL database that one should import before running the\nserver (look at the file dump.db)\n\nStart by installing the Machine Learning package: sklearn\n(http://scikit-learn.org/stable/install.html)\nThen the drivers for the postgreSQL are included into the psycopg2 module\n(http://initd.org/psycopg/download/)\n\nSet Up the Database\n======\n\nOpen the file machineLearning/setup-db.sql and copy and paste the SQL commands\ninto psgql\nThe data is located into lexicon.csv\nThe table structure used is into setup-dn.sql\n\nHow to run the server\n======\n\nThe server service is implemented into the file server.py\nTo run it use\n\u003e python server.py\n\nTools\n======\n\nTo train a classifier (SVM), one can use the script train.py\nTo run it use\n\u003e python machineLearning/train.py\n\nSome arguments can be added to decide how many positive, negative, neutral\ninstances the model has to take into consideration\n\nTrain the model with 10 positive tweets\n\u003e train.py -p 10\n\nTrain the model with 20 negative tweets\n\u003e train.py -n 20\n\nTrain the model with 100 neutral tweets\n\u003e train.py -e 10\n\nSave the classifier in the file\n\u003e train.py -f classifier.txt\n\nTo have a look at all the parameters available, please look at the train.py\nscript file.\n\nTo test the performance of a set of classifiers, use:\n\u003e python machineLearning/perf.py\n\nTo train the 6 basic classifiers use:\n\u003e machineLearning/trainer.sh\n\nNotice\n=======\nGood results are obtained with RBF as kernel function and the following\ncommand:\n\n\u003e train.py -p 400 -n 400 -e 200\n\nPerformance = 64.30 %\n\n\nTroubleshooting\n=======\n\nFirstly change the info inside machineLearning/database.properties to the info\nthat corresponds to the local database.\n\nIf the program complains about not providing a password change in the file\n/etc/postgresql/\\\u003cversion_number\\\u003e/main/pg\\_hba.conf to use the METHOD trust on\nlocal users. (I had to change users from localhost to trust as well as local.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchouffe%2Fsenti-tweet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchouffe%2Fsenti-tweet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchouffe%2Fsenti-tweet/lists"}