How to Compare two sentences semantically? - android

I am trying to build an app for college so the students can have their exams on it
but I am having problem the article questions which I can't compare the answer of the student and the answer of the model answer to check if it was right or wrong
so can anyone help me with that or tell me where to start ?
I have read about a lot of algorithms but I don't know where to begin.
I have found codes and function but I don't know how to use them like the following link click here

I think, you should generate average vector for each answer. Then, you can compare this vectors with lots of method. It's easily, vectoral distance or cosine similarity can be used. Each words will have a vector by using Word2Vec. After you must calculate average vectors.
Maybe, you want to look this project about grading open-ended questions

Related

How to draw Line chart in monoandroid(xamarin) with shinobi chart library

I am using "shinobicontrols" (link given bellow) for my mono android application(xamarin).so, now i want to draw line chart for two data field one for "ask" price and one for "bid" price. so, any one can help me?
thanks in advance ....
http://www.shinobicontrols.com/android/shinobicharts/price-plans
The best place to ask for help relating to Shinobi Charts is their forums, there you will get help from people who are familiar with the libraries and the devs themselves.
It seems like you are just getting started, so the best place to begin would be the user guide, available here:
http://www.shinobicontrols.com/docs/ShinobiControls/ShinobiChartsAndroid/1.3.5/Premium/Normal/user-guide/index.html
This will take you through the steps needed to create and render a chart, there are also more detailed API documentation for the Xamarin bindings, for example for a Line Series (which is what it sounds like you are wanting to use):
http://www.shinobicontrols.com/docs/ShinobiControls/ShinobiChartsAndroid/1.3.5/Premium/MonoTouch/Com.ShinobiControls.Charts/LineSeries.html
Finally if you are still having problems feel free to post on the forums:
http://www.shinobicontrols.com/forum/shinobicontrols
Hope this helps, if you are still struggling just let us know what we can do to help.
Craig.
(Full disclosure: I work for ShinobiControls)

beginners guide to using the accelerometer?

I am planning out a game that I will be writing for android, and the accelerometer is something that I am not familiar with. Getting the tilt, and creating a vector for the player is a very important part of the game. I've read the documentation and various tutorials. Doing so was a little confusing b/c none of what I read relates to game programming. So I have a couple of questions:
How do I get a vector from a onSensorChange event?
How do I change this vector in a way that looks natural as the tilt lessens/advances?
There is many examples and tutorials will help u.
Link 1
Link 2
sample project
Link 3
i sure some of this u see it before, but hope it help u.
and these two i'm sure will help u to understand what onSensorChange exactly do:-
What happens when onSensorChanged() in called
Good Answer

String comparison

For my project, ppl can give an answer to a certain question they get. I perform userAnswer = etUserAnswer.getText().toString().toLowerCase(); on it and then compare it to a value that is stored in the SQL database.
But I was thinking that it is quite annoying for a user if the answer is just almost correct but if he has written 'kk' in a word instead of 'ck'. Therefor I am trying to create a system which checks if the answer is more or less correct and then returns the result of this. I searched the net but don't seem to find anything on this subject. I also don't know if such a system has a certain name in english?
Or.. maybe somebody knows a good tutorial or a good way to get started?
I guess you're looking for the string distance, for which you could e.g. use the Levenshtein Distance. For alternative metrics, see this question

Handwriting Recognition Application in Android

I'm working on a application for handwriting recognition,ie, the user draws their character into the screen,and then that particular alphabet is generated automatically.
The approach I'm taking(after a reading from here),is to first train the system. While training, I store the Path(android.graphics.Path) values. Thanks to this, this and this, I know how to serialize and store the Path values to a database during the training phase.
Now while comparing the values for comparison with what the user has drawn as a character, I can increase the accuracy by calculating the centroid and the number of strokes of every character,to differentiate between cases like b and d.
The problem I'm facing is :
The three a's written on the screen are all different, and will all generate a different Path value. How do I compare such characters?
Now,I know there are many such questions on SO regarding handwriting recognition. But since I have already taken up an approach, I don't think those questions would be relevant to me. But if anyone has better and easier solutions to handwriting recognition,can feel free to suggest. :-)

Graphics in Android?

I'm trying to make a simple graphic in my Android app. I don't know how to start. I searched for some examples,but I found them to difficult for me.
I have 2 arrays with values and I want to represent them on a graphic, on Ox one array, and on Oy the other one.
Can anyone give me some simple example ? Please..
I believe you mean making "charts" ("graphics is too broad a term).
Check this questions for chart libraries to do it: Is there a good charting library for Android?

Categories

Resources