Loading

Morphy

% python
>>> from wordnet import *
>>> morphy("ate",VERB)
eat
>>> morphy("easier",ADJ)
easy
>>> morphy("apples")
apple

nice huh!

Search POS (Part of Speech) using NLTK

% python
>>> import nltk
>>> nltk.pos_tag(["work"])
[('work', 'NN')]
Oh! its say work as NOUN!

Yeah, single verb can be use as noun. we need to pass the the whole sentence to check it

we have english sample like "he works for a company"
>>> nltk.pos_tag("he works for a company".split())
[('he', 'PRP'), ('works', 'VBZ'), ('for', 'IN'), ('a', 'DT'), ('company', 'NN')]

wow :-) its show "works" as VBZ, it is verb, great. huh!

so search, "work" in nltk results again. and can get very accurate POS :-)

work = VBZ for that case :-)

#but unfortunately its take time around 100ms to 1s, its slow for me, but no way. have to use that.

cheers,
soe min

Firefox 3.6 Alpha

firefox-3.6a1pre

FYI

なし

早く寝れるのはいい人生だと思うだけどなぁ。もう気付いたらこんな時間!

Get a English Word under mouse cursor with Javascript

Get a English Word under mouse cursor with Javascript

event.target.innerHTML.substring(event.target.innerHTML.lastIndexOf(" ",event.rangeOffset),event.target.innerHTML.indexOf(" ",event.rangeOffset));

+

Mouse Cursor in Pixel by event.clientX and event.clientY.

can make popup english to burmese dictionary when you point to english words.

just an idea.

:-)

Making Extension for Python is easier than PHP especially Unicode Program with C/C++

Making Extension for Python is easier than PHP especially Unicode Program with C/C++

Well, Its take my two holidays to get working Unicode related program on php.

In python, only need gcc or g++ and working great.

but php (tested on php5.2.9), mainly accept the type *char* and need extra library to convert to *wchar_t* type. so I have to write my own unicode-utf8 conversion, escape functions and parsing functions.
And need the program *phpize* to generate configure scripts,
Its only on php source and you need to compile php.
And to compile php,will need very very big library *libxml2* source and compile, its take more time than compiling php.
for C program thats all, but for C++ seems need extra information, I still dont sucess running C++ programs for PHP yet. but its ok so far for me. :-)

Well, I think its still worth to do it :-)

Soe Min

နည္းပညာသည္ လူတိုင္းအတြက္ ျဖစ္ရမည္။

နည္းပညာသည္ လူတိုင္းအတြက္ ျဖစ္ရမည္။
"technology in the country's own language",
rather than
"in the hands of a minority that masters [English]".
အဂဿငလိပ္စာတတ္ေသာ လူတစ္စု၏ လက္ထဲတြင္သာ မရွိသင့္။

ဘာသာျပန္သူတစ္ခ်ို့ရဲ့ ခံယူခ်က္ပါ။

အဲဒီစကားက မွန္ကန္ေနသလို ခံျပင္းစရာလဲေကာင္းပါတယ္။
မျဖစ္သင့္ပါဘူး။ ဒါေပမယ့္ ျဖစ္ေနပါတယ္။ ကဲဘယ္လိုလုပ္သင့္သလဲ???

ref:
http://myanmaritpros.com/forum/topic/show?id=1445004%3ATopic%3A117987&page=2&commentId=1445004%3AComment%3A118349&x=1#1445004Comment118349
http://www.stockholmchallenge.se/data/1237

Japanese Broadband Internet User use bandwidth 990Gbps

http://www.soumu.go.jp/s-news/2009/090227_3.html

Japanese Broadband Internet User use bandwidth 990Gbps in 2008, 1.2 times than 2007

Just FYI :-)

大好きなアザラシ :D :D :D


ဤပံုကို http://headlines.yahoo.co.jp/hl?a=20090303-00000028-maiall-soci.view-000 မွကူယူးပါသည္။ ျကိုက္လြန္းလို့ပါ။ :D :D :D

Javascript Shell

Most decent script engine has a shell like Python / Ruby to test it.

There is one for Javascript also. Its nice.

http://www.squarefree.com/shell/shell.html

က်ေနာ္ဖတ္ေသာ အျခား ဘေလာ့ / ဆိုဒ္မ်ား