Giter VIP home page Giter VIP logo

tweentiment's People

Contributors

anushaml avatar masonwan avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

tweentiment's Issues

Data collector pops exception

Exception on Line 27 of WordWeight.java.

Detailed output

happy weight: 0.80654895
jsonTxt:  {"mood":"negative","text":"sad","prob":0.920984729039663}
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.sentiment.weight.WordWeight.getWordWeight(WordWeight.java:27)
    at com.sentiment.file.SentimentFileImpl.getWeight(SentimentFileImpl.java:60)
    at com.sentiment.test.FileMain.main(FileMain.java:33)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 15 more
ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183):  [../../../src/share/back/util.c:838]

Two JSON libraries

It seems that the data collators uses two different JSON libraries, which are Json-lib and Gson. Would you explain it, @mlanusha ?

Very slow performance on emulator: unsuitable for demo on Emulator

The app used to be fast on my machine before integration. After integration with classifier, the app has become very slow and takes forever to load on emulator, in some cases it won't even load any tweet. It is NOT suitable for demo unless we do the demo using my phone.

Sentiment140Connector

Add a Sentiment140 API connector in order to evaluate our classifier.

This should only be worked on when prototype is done.

Support for Username search lost due to incorrect refactoring of urlBuilder

The method MainActivity::urlBuilder() would format the URL based on search types such as search 'Tweets', 'Username' and 'hashtag'. This was supported in my Android client before integrating classifier. The method is still there but current implementation of TwitterSearchUrlBuilder doesn't support this.

Please restore this feature so that UI becomes consistent with the Use cases we mentioned in our report and presentation.

For reference: see earlier version of Android client before integration.

TwitterConnector

Add a Twitter connector class which wraps the Twitter Stream API and grabs new tweets.

Issues:

  • OAuth flow needs UI support.
  • The response doesn't return.
  • The transferred data is too large.
  • The end of a single Tweet object is not obvious.

Migrate all code to Maven

This is necessary so that our won't have large jar libraries in this repository.

Remove all jar files and update .gitignore.

Enhance classifier

Use different methods or monitor those words which are able to reverse the sentiment value.

Content of words.json

should the content of /res/words.json file remained unchanged all the time? it always shows 26 rows as its content. I am investigating the sentiment results accuracy and came across it.

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.