?

Log in

No account? Create an account

trv

Lyrics Search Engine 歌詞検索エンジン

Lyrics Search Engine 歌詞検索エンジン

Previous Entry Share Next Entry
平成17年6月21日の日記
天気: 晴 行事: 赤来中

今日はいつもと同じ日でした。3年生選択授業で三島先生はジョパディー・ゲームを紹介しました。生徒達はそのゲームがとっても好きだったと思います。1年生選択授業で伝言ゲームをしました。楽しく授業があった日です。残り時間、歌詞ワークシーツで日本語と英語の両方歌詞検索エンジンを加えました!

Journal for 2005-6-21 Tue..
Weather: Sunny   Plan: Akagi JHS

Today was the same as always. In the 9th grade elective English class, Ms. Mishima introduced the Jeopardy Game to the kids. They all really loved it. In the 7th grade elective English class we played Telephone. Today was ful of fun classes. In the time left over I implemented a search engine for English and Japanese for my Lyrics Worksheet creator!

Today's Kanji
(今日の漢字)
Meaning (意味): think

Chinese Reading (音読み):
Reading Romaji 
コウkou
Japanese Reading (訓読み):
Reading Romaji 
かんがえるkangaeru
Vocabulary (単語):
Word Reading Romaji Translation 
考えるかんがえるkangaeruto think
考案こうあんkouanplan
考慮こうりょkouryoconsideration
考証こうしょうkoushou(historical) investigation
参考さんこうsankoureference
備考びこうbikounote


-- 
Trevor Lalish-Menagh
jumex@trevreport.org
 www.trevreport.org 
 011-81-854-76-3021 
  • How'd you code the search engine? I used to to think of just using exact match searching or perhaps partial matching...this past quarter we started using Lucene. Lucene is a Apache affiliated monster that is a full search engine (i.e. documents, indexes, inverse-document files,etc..) written in Java.

    I'm interested in your AJAX stuff, and see that it's really picking up.
    • The lyrics are stored flat, much to my embarrassment. Each lyrics file is an XML file and they are stored in a directory called data. Since I am using UNIX I knew one of the best ways to search files is using grep, so all it is is a simple grep on the files for the data and then some ksh code to format the table.

      AJAX sounds hard, but it is really quite easy. I write all my back engine stuff in Perl (or ksh if it the operation is less complicated), and then the webpage is just a template with the XMLHTTPRequest javascript code attached to a control (in my case a pop-down menu). When a control is selected the JS is called, the callback function is set, and when the Perl script is finished the callback function is run.

      If you have ever done application programming the concept of callback fuctions should make sense. This approach is finally giving the power of application programming to web apps.
Powered by LiveJournal.com