Results 1 to 10 of 10
- 11-24-2011, 02:39 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 87
- Rep Power
- 0
Simple SQLite translation from Command Prompt
Hi all,
I'm hoping to get some help/suggestions with this. I have an SQLite database that contains 3 columns.
The 1st column is '_id'
The 2nd column 'SMS'
The 3rd Column is 'English'
Basically, I want to write a simple program that will translate an SMS text message a user can enter onto a command prompt into proper English. The user will enter a message and then the database will be queried and return a translated message just by matching and replacing any parts of the message it finds. My word database is comprehensive and contains roughly 1500 words.
E.g. A user can enter... "LOL I will CU L8R M8" and the program should return "Laughing out loud I Will see you later mate"
I am new to SQLite and have only worked with server-side databases before, mySQL etc and never to do a translation program. Is this going to be difficult to make? Am I right in thinking I would have to use the split function of a string class? I'm a bit lost on where to begin so any help is greatly appreciated. I was try to do all of this as an Android app but it seemed to be too complicated for my skills so I am trying to just keep it simple and do it from a command prompt before I expand and take it further.
Thanks,
Atia
- 11-25-2011, 01:39 AM #2
Member
- Join Date
- Nov 2010
- Posts
- 87
- Rep Power
- 0
Re: Simple SQLite translation from Command Prompt
Any ideas anyone?
- 11-25-2011, 01:42 AM #3
Re: Simple SQLite translation from Command Prompt
I have plenty of ideas. They usually involve food.
- 11-25-2011, 05:58 AM #4
Member
- Join Date
- Nov 2010
- Posts
- 87
- Rep Power
- 0
- 11-25-2011, 06:00 AM #5
Re: Simple SQLite translation from Command Prompt
If you ask a more specific question you might get more specific answers.
- 11-25-2011, 06:29 AM #6
Member
- Join Date
- Nov 2010
- Posts
- 87
- Rep Power
- 0
Re: Simple SQLite translation from Command Prompt
I thought I did?Am I right in thinking I would have to use the split function of a string class? I'm a bit lost on where to begin so any help is greatly appreciated
- 11-25-2011, 07:10 AM #7
Member
- Join Date
- Nov 2010
- Posts
- 87
- Rep Power
- 0
Re: Simple SQLite translation from Command Prompt
QUESTION...
Would it be easier for me to download the SQLite DLL and program from an environment such as Visual C++ for this task (I have only ever coded in Java)... or should I simply do everything from the command line shell?
Thanks
- 11-30-2011, 09:24 AM #8
Member
- Join Date
- Nov 2010
- Posts
- 87
- Rep Power
- 0
Re: Simple SQLite translation from Command Prompt
OK an update...
I am programming in eclipse with the JDBC driver... the driver is working etc as I have tested it yet I am still stuck as to what classes I will need (whether I need an adapter class etc.. will I end up having lots of classes or just a couple??)
I have been searching the net for a week for a similar design but there is just nothing out there for an SQLite/Java word for word translation program... HELP :)
- 11-30-2011, 09:53 AM #9
Member
- Join Date
- Nov 2010
- Posts
- 87
- Rep Power
- 0
Re: Simple SQLite translation from Command Prompt
Question: For this word for word conversion should I have the SMS column as the primary key or would Id be the primary key? Also what datatype should the SMS and English columns be? I currently have them as VARCHAR but what is the difference between this and 'TEXT'?
Thanks
- 11-30-2011, 01:18 PM #10
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Similar Threads
-
Running .jar in command prompt
By wonstatus in forum New To JavaReplies: 7Last Post: 07-17-2011, 11:35 PM -
Letting my program command the command prompt
By Smokey. in forum Threads and SynchronizationReplies: 4Last Post: 03-29-2011, 11:34 PM -
New Command prompt
By jmga9 in forum New To JavaReplies: 4Last Post: 11-10-2010, 01:53 AM -
how to get the values from command prompt
By tej in forum New To JavaReplies: 3Last Post: 05-02-2009, 08:32 AM -
help me!!!! about command prompt..
By kureikougaiji in forum New To JavaReplies: 2Last Post: 11-13-2008, 06:15 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks