Monday, December 18, 2006

Paper writting season

ACL 2007 deadline is on 23rd January 2007.

Sunday, December 17, 2006

Ada-boosting

Ada-boosting - We will boost our classifiers

(thx ajarn manow)

Saturday, December 16, 2006

ies4linux

ies4linux can help us to run IE on GNU/Linux.

(thx nf)

Wednesday, December 13, 2006

Open statistical machine translation seminar

Statistical machine translation seminar


  • On 18th December 2006, 10:00 - 11:30

  • At room 204, building 15, Faculty of Engineering, Kasetsart university, Bangkok

  • By Philipp Koehn

Wednesday, November 22, 2006

ICT Minister of Thailand and OLPC ( 100 USD Laptop )

ICT Minister of Thailand - Dr. Sittichai Pookaiyaudom, said that he will support OLPC (or 100 USD Laptop) but he is not one who will make a decision whether Thailand will buy OLPCs.



Reference: http://www.blognone.com/node/3408

Monday, November 13, 2006

wmcore building

TestWM Screen




Now I can build wmcore on my desktop pc. :-D


$ ./configure --prefix=/home/vee --with-gsback=/home/vee/gnustep/core/back/
$ make

I just moved StepWiRE from the GNUmakefile and supplied correct path of gsback for configure. :-)

Saturday, November 11, 2006

datrie for a large dictionary

datrie is a trie implementation in C using double array by thep. Its purpose is mainly for assisting word segmentation in libthai, which 16 bit array's indexes are enough. However, I want to use datrie in my experiment where the dictionary is quite large. Therefore I try to expand the array indexes to be 32 bits. To make a patch is pretty convenient since thep has already had plan to extend it. The patch is here. Currently, I think one must be able to choose 16 or 32 bits as a parameter of configure (autoconf). Anyways, in order to do easy 16/32 bits switching, I still have some issues waited for discussion here (in Thai). By the way, datrie32 (without 16/32 switching) must be already sufficient for using in my experiment.

Wednesday, November 08, 2006

Xnest

I want to run nested X11 so devilw suggested Xnest. I started with:

Xnest :2
xterm -display :2

It failed since connection from xterm was denied. Then I ask devilw again so he suggested Xnest -ac.

Xnest -ac :2
xterm -display :2

Then it failed since xterm cannot open font. So I asked peorth because devilw was traveling home. He suggest to try xfontsel. After I selected xfontsel, it crashed. Anyways, I've got an idea to try xset so I tried this.

Xnest -ac :2
xset -display :2 +fp /usr/share/fonts/X11/100dpi/
xset -display :2 +fp /usr/share/fonts/X11/75dpi/
xset -display :2 +fp /usr/share/fonts/X11/misc/
xterm -display :2


And then it still failed :-P. However, I can see some text displayed by twm and xfontsel, which I can see before using xset. :-) I saw something like xnlsfont but I haven't tried yet.

thx devilwearsgucci and peorth

Monday, November 06, 2006

ตำราไพธอนภาษาไทย / A Python text book in Thai

python book


ตำราไพธอนภาษาไทยฉบับแรกออกแล้ว
See also



The first Python text book in Thai language has been released.
อ่านเพิ่ม



Thank Ajarn Chakrit Saengkaew for the book and the permission to use the photo. Thank TPA for publishing this book also.

Sunday, October 22, 2006

OZ is for building Meta grammar?

Most of meta grammar envirments, which I know, i.e. XDG and XMG, use OZ.

Tuesday, October 10, 2006

Where is Teerayut Bunmee?

I don't wonder because of political situation now but Teerayut Bunmee ... Why there is no news about him?

Wednesday, September 20, 2006

./configure

vee____ มีวิธีดูเปล่า ว่าครั้งล่าสุด สั่ง configure ไปอย่างไร?
(How can I see my last configure command?)

thep vee____, head config.log

Tuesday, September 19, 2006

Ruby-Libthai update

The first version of Ruby-Libthai has appeared since 15th February 2003. Until today, only another one method was added, i.e., LibThai::tis?.

Now we can do something like below:

require 'libthai'
"abcd".each_byte{|c|
p LibThai::tis?(c)
}

More infomation: http://th.lug.wikia.com/wiki/Ruby-Libthai

Friday, September 15, 2006

Abiword + non-middle level character layout

MK asked me about non-middle level character layout. Hence I made this experiment and the result is shown in the screenshot below.

abiword screenshot

I think it looks okay.

Wednesday, September 13, 2006

Abiword + Thai text

By uwog and hub help, today I can install Abiword from CVS head on my Ubuntu box. I learned that I must use autoconf 2.59 and automake 1.9.6 instead of old one. :-)

In CVS head, Pango has been already used in Abiword. Hence it can break a line of Thai text with correct word boundaries now. :-) It is very big improvement however there are several issues left, for insance, printing (as mentioned by uwog), etc.

Abiword + Thai text

Thank tf for Abiword + Pango and thep for Pango + LibThai. :-)

You can grab Abiword from CVS following instruction here.

pastebin

In technical IRC channel (#tlwg, for instance.), we usually want to paste our (possibly long) source codes. Pasting it into IRC directly would be annoying. Therefore pastebin is emerged and help to keep your source code. Then you can give your friend URL instead pasting whole bunch of codes.
http://pastebin.ca/

ในห้อง IRC ทางเทคนิค (เช่น #tlwg) เรามักจะต้องการแปะ source code ที่อาจจะยาวลงไปบ่อยๆ การปะมันลงไปใน IRC ตรงๆ เลยมันอาจจะน่ารำคาญ ดังนั้น paste บินจะโพล่ออกมา และช่วยคุณเก็บ source code ไว้ และแล้วคุณก็สามารถจะให้ URL เพื่อนคุณไปแทนที่จะปะ code ทั้งหมดลงไป
http://pastebin.ca/

Wednesday, September 06, 2006

Part-of-speech tagging in Ruby

Acopost is a part-of-speech tagger written in C. Since now we can useAcopost as a C library, we write a ruby binding for Acopost called Acopost4R. It is hosted at Rubyforge. In addition, modfied version of Acopost (AcopostC) is also included Acopost4R Subversion repository. We will call it. We can write Ruby code for part-of-speech tagging as follow.

Source code:

require 'acopost'
t3 = Acopost::T3.new("/home/vee/train.ngram.utf8",
"/home/vee/train.lex.utf8")
t3.tagging(["ฉัน", "กิน", "ข้าว"]).each{|w|
print "#{w[0]}/#{w[1]} "
}
print "\n"


Result:

ฉัน/pper กิน/vt ข้าว/ncn

T3::tagging accept the array of words as the argument. And it return array of pair of word and part-of-speech, like NLTK-Lite style.

Acopost4R is still in very early stage so there is no release yet. However, you can obtain it from Acopost4R's subversion repository.




Acopost เป็นโปรแกรมกำหนดชนิดของคำที่เขียนด้วยภาษาซี เนื่องจากตอนนี้เราสสมารถใช้Acopost แบบ C library เราจึงเขียน ruby binding สำหรับ Acopost ชื่อว่า Acopost4R Acopost4R อยู่ที่ Rubyforge. มากไปกว่านั้น Acopost รุ่นที่แก้ไขแล้ว (AcopostC) ก็ยังถูกรวมไว้ที่ Subversion repository ของ Acopost4R ด้วย เราจะเรียกมันว่า AcopostC เราสามาถเขียนโปรแกรมภาษารูบีให้กำหนดชนิดของคำได้ตามต่อไปนี้

โปรแกรม:

require 'acopost'
t3 = Acopost::T3.new("/home/vee/train.ngram.utf8",
"/home/vee/train.lex.utf8")
t3.tagging(["ฉัน", "กิน", "ข้าว"]).each{|w|
print "#{w[0]}/#{w[1]} "
}
print "\n"


ผลการทำงาน:

ฉัน/pper กิน/vt ข้าว/ncn

T3::tagging รับ array ของคำเป็นอากิวเมนต์ และส่งผลลัพธ์กลับเป็น array ของคของคำและชนิดของคำ เหมือน NLTK-Lite.

Acopost4R ยังอยู่ในระยะเริ่มต้น ดังนั้นจะยังไม่มี release อย่างไรก็ตามคุณสามารถเอามันมาเล่นได้จาก subversion repositor ของ Acopost4R.

Tuesday, August 29, 2006

Using Acopost as C library

Acopost is a collection of part-of-speech taggers written in C and Perl. However, AFAIK, Perl is used just for the code for training the tagger. According to the lastest version of Acopost, a tagger has be called by command line (unix shell). Since I want to call a part-of-speech tagging function from C code, Acopost must be transformed into a C library. Well, I can use system("t3 .....") but a tagger take quite long time for re-initialization. For convenient, GNU Building tools and pkg-config are used. Anyways, only the t3 tagger can be called from C.

The modified version can be download here.



Acopost เป็นชุดรวมโปรแกรมกำกับชนิดของคำที่เขียนด้วยภาษาซีและ Perl อย่างไรก็ตามเท่าที่ผมทราบ ภาษา perl ใช้เฉพาะใน code สำหรับฝึกฝนตัวกำกับชนิดของคำเท่านั้น ตามที่ดูจาก acopost รุ่นล่าสุด ตัวกำกับชนิดของคำต้องเรียกจาก command line (unix shell) เท่านั้น จากที่ผมต้องการจะเรียกตัวกำกับชนิดของคำจากภาษาซี ดังนั้น Acopost จึงสมควรจะถูกแปลงเป็น C library ถึงแม้ว่าเราจะใช้คำสั่ง system("t3 ....") ได้ แต่ว่า tagger ก็ใช้เวลานานในการเริ่มทำงานแต่ละครั้ง เพื่อความสะดวกในการแปลนี้ก็ได้ใช้ GNU Building tools และ pkg-config อย่างไรก็ตาม ตัวกำกับชนิดของคำ t3 เท่านั้นที่สามารถเรียกจากภาษาซีได้

รุ่นที่แก้ไขแล้วสามารถ โหลดได้ที่นี่.

Saturday, August 26, 2006

LinkGrammar4R update

I plan to release LinkGrammar4R 0.1.0, which will be corresponding to LinkGrammar 4.2.3 from Abisource.

Currently, in SVN trunk, LinkGrammar4R has test units, API for manipulating parse options, API for getting number of linkages from sentence object and also Rubism iteration for handling linkages.

Anyways, I still would like to discuss about the name of methods for getting number of linkages.

Thank Bradford Folkens for his ideas, codes, bug fixing. Actually most of patches, bug reports, are done by him :-) Also thank Ken Bloom for giving me an example of API, which is his link-grammar binding based on Ruby/DL and bug fixing.




ผมกะว่าจะปล่อย LinkGrammar4R 0.1.0 ซึ่งจะสอดคล้องกับ LinkGrammar 4.2.3 จาก Abisource

ตอนนี้ใน SVN กิ่งหลัก LinkGrammar4R มี test units มี API สำหรับจัดการตัวเลือกเกี่ยวกับการแจกโครงสร้างข้อความ มี API สำหรับดึงจำนวน linkages จาก Sentence object และก็ยังมี การเข้าถึงข้อมูลแบบ Ruby สำหรับจัดการกลุ่มของ linkage

อย่างไรก็ตาม ผมยังมีความต้องการที่จะอธิปรายเกี่ยวกับ ชื่อของ method สำหรับดึงจำนวนของ linkage

ขอบคุณ Bradford Folkens สำหรับ แนวคิด รหัสต้นฉบับ การแก้บัก จริงๆ แล้ว patch และการรายงานบักส่วนมาก ก็เป็น Bradford Folkens นั่นเองที่เป็นคนทำ แล้วก็ขอบคุณ Ken Bloom ด้วยที่ช่วยให้ตัวเชื่อม link-grammar ที่เขียนบน Ruby/DL มาเป็นตัวอย่าง และช่วยแก้ bug ด้วย.

Thursday, August 17, 2006

Light at midnight

Even at midnight, how can I read those text without light.
ถึงแม้จะเป็นเวลาเทื่ยงคืน ฉันจะอ่านข้อความเหล่านี้ได้อย่างไรโดยไร้แสงสว่าง