----BEGIN CLASS---- [14:10] #startclass [14:10] ashwanig, don't know if we have anything generic for images [14:10] Roll Call [14:10] Robin Schubert [14:10] Anu Kumari Gupta [14:10] Ashwani Kumar Gupta [14:10] Bhavin Gandhi [14:10] pooja kumari singh [14:10] kumar vipin yadav [14:11] Gaurav Sitlani [14:14] Avik Mukherjee [14:14] Okay, so I would like to give a question today [14:14] Akshay Gaikwad [14:15] Devesh Verma [14:15] Build a dictionary, where parse the words and there meaning from a file [14:15] Yurii Pylypchuk [14:15] and write a command line tool, to ask the user for a word for which output the meaning of the word [14:16] also, if the word is not present in the dictionary, suggest the user something like "Did you mean: " from the dictionary [14:16] sayan, what will be the structure of the file? [14:16] Roll call: Onyinye Maadubuko [14:16] sayan, how is the word and meaning stored in the file to be used? [14:17] suppose I wanted to write python, instead I wrote phython then tell the user "Did you mean: python" [14:17] think how you want to store [14:17] sayan, its up to us? [14:18] yes [14:18] ok! [14:18] sayan: can you give an example what output should be given if python is typed and it's in the list? [14:18] schubisu: the meaning of the word [14:18] sayan: ah, okay [14:19] also, think in line that suppose in future I give you another feature to add it should be easy [14:29] Please remember to use git for this. [14:33] kushal, about git, my commits are getting arround 80s and more! how can i control them? should I make multiple changes for 1 commit? [14:34] avik, what is problem in that? [14:34] avik, Nope. One commit per logical change is good. [14:34] bhavin192, doesn't that make the git log big? [14:34] control git commits :O [14:34] avik, do we have to pay if we have more commits? [14:34] avik, Try to experiment with new ideas on a different branch. [14:34] bhavin192: yeah [14:34] what's the wrong with more commits? [14:34] bhavin192, Nice question :) [14:34] avik, Take some inspirations from https://github.com/torvalds/linux/ [14:35] kushal, bhavin192, okay! got it! [14:35] avik, I try to have commits for small changes and explain about the changes in the commit messages. I try to explain as much as I can [14:36] bhavin192, okay! thanks for the advice :D [14:42] ! [14:42] next [14:43] What should be the name of the .py which will be executed by the user? app.py main.py or short name? I'm not able to find anything about name of the main file which will be executed by user [14:43] ! [14:43] [14:43] bhavin192: well, you have to name your project :) [14:44] next [14:44] How much error should be tolerated, more than one incorrect/missing letter per word? [14:44] schubisu: can be more than one error [14:45] sayan: so just "best match" [14:46] schubisu: yes, or *closest match* [14:50] did anyone find a plaintext dictionary? [14:51] ashwanig, I found csv formatted dictionary, it has multiple meanings for same word on different lines [14:52] bhavin192, can you please share [14:52] schubisu, but, remember to add features one by one. [14:53] kushal: yes, just decided to split into features ;) [14:53] ashwanig, http://www.bragitoff.com/2016/03/english-dictionary-in-csv-format/ [14:53] ashwanig, don't forget to give credits [14:55] so how are things coming up? [14:57] sayan quite well! but may be I will not be able to finish it by today! but the problem is very fascinating! [14:58] sayan: same with me [14:59] and I am still thinking about name :-/ [15:00] hah [15:00] avik: schubisu: it's okay [15:01] guys this might be usefull : https://www.mso.anu.edu.au/~ralph/OPTED/ [15:01] I think the closest match can be found using edit distance [15:01] bhavin192: eictionary [15:02] still figuring out how to parse [15:02] s/found/done [15:02] what about others? [15:02] sayan, sounds good, thanks :) [15:04] anuGupta: poojaencoded: kvy: sitlanigaurav[m]: yurii: akshayg96: devesh[m]: mdbk: What the status for you guys? [15:05] sayan i am reading previous logs. [15:05] i missed some session . [15:05] I'm working on previous problems that i missed in 2 weeks [15:06] kvy: okay [15:06] sayan i will further solve all problems. [15:07] sayan: I missed some sessions previously 2 weeks, working on older problems to catch up [15:07] sayan i am also reading previous logs because i missed some sessions due to campusing :( [15:07] sayan, I just reached home and all this time I had network issues otherwise I was trying at my phone [15:10] sayan: I missed some sessions, reading the logs and working on the tasks. [15:11] sayan I am on my way home, asa I reach I will try the problem. [15:12] sayan, how can i use a charecter's ASCII? [15:12] like 65 for a [15:13] char(65) is a is C, C++ etc. but here no! [15:13] not here. what to do? [15:16] okay found that! chr()! [15:19] sayan, I am using simple file with word:meaning on single line. Is it ok? [15:20] avik http://lmgtfy.com/?q=how+to+get+ascii+value+of+character+in+python [15:22] .seen amey [15:22] mbuf: amey was last seen in #dgplug 3 weeks, 0 days, 4 hours, 8 minutes, and 48 seconds ago: mbuf: I have added clock time. I will push it on repository by tonight. [15:22] akshayg96: I have no clue if it would be right, at this point [15:34] okay people can you push your updates and paste the link here? [15:37] I am not able to create a file with words and meanings. some words have more than one meaning. [15:37] sayan, just creating databases till now! nothing to push as such! [15:37] ashwanig, yes, then we need to print all, right? [15:39] avik, yes. [15:39] avik, ashwanig, yes I have decided to print all of them too [15:40] bhavin192, ashwanig I am just thinking of reducing the complexity, and dying in my chair! haha [15:41] avik, same here, trying to figure out how it should be [15:41] sayan just lured us into a program for searching a big, huge extra-large data set! [15:42] :D [15:43] reducing the complexity of a problem is always the second step [15:44] sayan, okay! [15:53] ! [15:53] next [15:54] ! My function will be returning a list if it finds meaning of given word, what it should return if it does not find any meaning? None? [15:54] oops, sorry for that "!" [15:55] bhavin192: if there are similar words then the similar words [15:57] sayan, but the logic which is going to call it will be expecting meaning of that word, right? [15:59] bhavin192: if no meaning found then we can return 'did you mean ' + closest_match [16:01] ashwanig[m], but we have to check if we have received list of meanings or suggestions [16:03] bhavin192 That can be a different function to check if the key is present in the dictionary or not [16:05] ashwanig[m], that can be one way [16:07] bhavin192: what did you meant by this " but we have to check if we have received list of meanings or suggestions" [16:07] did not get you [16:08] sayan, now my function will be returning list of meanings of that given word [16:09] or if that word is not present it will return similar words [16:10] when I will call that function from somewhere, I have to check if I have received meanings or similar words [16:36] ok ----END CLASS----