Created
March 17, 2009 11:54
-
-
Save ucnv/80490 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- lib-jlp.js Tue Mar 17 20:51:18 2009 | |
| +++ lib-jlp.js.modified Tue Mar 17 20:51:52 2009 | |
| @@ -28,7 +28,7 @@ | |
| } | |
| } | |
| JLP.MAService.prototype.parse = function(text) { | |
| - var yql = "select * from xml where url='http://jlp.yahooapis.jp/MAService/V1/parse?appid=AgeuXFaxg66_am8.xytKxMt0mqfH_hvVvSvliD_iNu10KTUtmtvvfIzct9Oh&sentence=" + encodeURIComponent(text) + "'"; | |
| + var yql = "select * from xml where url='http://jlp.yahooapis.jp/MAService/V1/parse?appid=AgeuXFaxg66_am8.xytKxMt0mqfH_hvVvSvliD_iNu10KTUtmtvvfIzct9Oh&sentence=" + escape(text) + "'"; | |
| var url = 'http://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent(yql) + '&format=json&callback='; | |
| var content = wget(url); | |
| var json = JSON.parse(content); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment