Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

1

Share

Download to read offline

Introduction to wwwjdic project

Download to read offline

An introductory talk for Hacker News Kansai meetup on the ruby rewrite of Jim Breen's wwwjdic

Related Books

Free with a 30 day trial from Scribd

See all

Introduction to wwwjdic project

  1. 1. 1 About me マーク・バーンズ about.me/mark.burns 日本語ができる Ruby developer On holiday from England I love ruby and startups
  2. 2. 2 Introduction Jim Breen’s (Monash University) Japanese-English online dictionary wwwjdic.com Data freely available accepts user-contributions
  3. 3. 3 wwwjdic (rewrite) https://github.com/markburns/wwwjdic
  4. 4. 4 Current interaction GET http://wwwjdic.com 301 -> http://www.edrdg.org/cgi-bin/wwwjdic/wwjdic?1C POST http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?1E BODY: dsrchkey=%CD%F1&dicsel=1
  5. 5. 5 Response 5
  6. 6. 6 Aims JSON API Cleaner UI Nice features: e.g. autocomplete Easily extensible open source codebase
  7. 7. 7 JSON API GET http://localhost:4000/ 卵 .json
  8. 8. 8 Simpler UI (Example) GET http://localhost:4000/ 卵 8
  9. 9. 9 Autocomplete
  10. 10. 10 Trie index http://oldblog.antirez.com/post/autocomplete-with-redis.html Autocomplete
  11. 11. 11 Trie index Time: O(log(N)) N=~150,000. Space: N*(Ma+1) =~ 51MB
  12. 12. 12 TRIE 12
  13. 13. 13 https://github.com/markburns/wwwjdic/blob/master/app/data_access/auto_
  14. 14. 14 https://github.com/markburns/wwwjdic/blob/master/app/data_access/auto_ ["eg", "ega", "egal", "egali", "egalit", "egalita", "egalitar", "egalitari", "egalitaria", "egalitarian", "egalitarian*", "egg", "egg ", "egg (", "egg (e"]
  15. 15. 15 https://github.com/markburns/wwwjdic/blob/master/app/data_access/auto_ ["eg", "ega", "egal", "egali", "egalit", "egalita", "egalitar", "egalitari", "egalitaria", "egalitarian", "egalitarian*", "egg", "egg ", "egg (", "egg (e"] ["egg dish", "egg dishe", "egg dishes", "egg dishes*", "egg l", "egg la", "egg lai", "egg laid", "egg laid ", "egg laid i", "egg laid in", "egg laid in ", "egg laid in w", "egg laid in wi", "egg laid in win"]
  16. 16. 16 ["egg laid in wint", "egg laid in winte", "egg laid in winter", "egg laid in winter*", "egg m", "egg me", "egg mem", "egg memb", "egg membr", "egg membra", "egg membran", "egg membrane", "egg membrane*", "egg s", "egg sa"] ["eg", "ega", "egal", "egali", "egalit", "egalita", "egalitar", "egalitari", "egalitaria", "egalitarian", "egalitarian*", "egg", "egg ", "egg (", "egg (e"] ["egg dish", "egg dishe", "egg dishes", "egg dishes*", "egg l", "egg la", "egg lai", "egg laid", "egg laid ", "egg laid i", "egg laid in", "egg laid in ", "egg laid in w", "egg laid in wi", "egg laid in win"] https://github.com/markburns/wwwjdic/blob/master/app/data_access/auto_
  17. 17. 17 "walr""walt" "walrus" ["walr", "walru", "walrus", "walrus*", "walruse", "walruses", "walruses*", "walt", "waltz", "waltz ", "waltz (", "waltz (c", "waltz (co", "waltz (com", "waltz (comp"] https://github.com/markburns/wwwjdic/blob/master/app/data_access/auto_
  18. 18. 18 shutl.com & graphs
  19. 19. 19 Isomorphism?
  20. 20. 20 N-grams 安心 リフォーム へ の 近道 [TAB]29 (Anshin reform he no chikamichi) 安心 + リフォーム + へ + の + 近道 安心 [TAB]41,322,178
  21. 21. 21 Present/State of Play Data import to redis Indexed word lookup Autocomplete Begun work on text glossing
  22. 22. 22 Noticably Missing Not yet released to production No test/staging server However, should be easy enough to run locally
  23. 23. 23 Future Wordnet plus graph db => mapping of languages Analysis of kanji User experience/Design/Polish N-grams Other ideas/collaboration?
  24. 24. 24 https://github.com/markburns/wwwjdic http://www.slideshare.net/_mark_burns/slides-24568551 about.me/mark.burns Questions? 24
  • MarcoBresciani

    Sep. 4, 2014

An introductory talk for Hacker News Kansai meetup on the ruby rewrite of Jim Breen's wwwjdic

Views

Total views

579

On Slideshare

0

From embeds

0

Number of embeds

6

Actions

Downloads

3

Shares

0

Comments

0

Likes

1

×