Skip to content

Instantly share code, notes, and snippets.

@ucnv
Created March 17, 2009 11:54
Show Gist options
  • Select an option

  • Save ucnv/80490 to your computer and use it in GitHub Desktop.

Select an option

Save ucnv/80490 to your computer and use it in GitHub Desktop.
--- 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