-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving all hindi-urdu modules into a new repository
- Loading branch information
0 parents
commit c965522
Showing
65 changed files
with
1,283 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# kathaa-hindi-urdu-modules |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
agreementfeature description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = function (kathaa_inputs, progress, done){ | ||
////console.log("Inside agreementfeature"); | ||
//save computed output values | ||
var kathaa_outputs = {} | ||
|
||
hindi_urdu_request.post({ | ||
headers: {'content-type' : 'application/x-www-form-urlencoded;charset=UTF-8'}, | ||
url: 'http://api.ilmt.iiit.ac.in/hin/urd/16/16', | ||
body: "input="+encodeURI(kathaa_inputs['in_ssf']) | ||
}, function(error, response, body){ | ||
if (!error && response.statusCode == 200) { | ||
try{ | ||
////console.log(body); | ||
body = hindi_urdu_entities.decode(body); | ||
body = JSON.parse(body); | ||
//Assumes only one key is passed | ||
for(var _key in body){ | ||
kathaa_outputs['out_ssf'] = body[_key]; | ||
done && done(null, kathaa_outputs); | ||
return; | ||
} | ||
}catch(e){ | ||
var err = new Error('Malformed reply from Sampark API Server'); | ||
done(err); | ||
} | ||
}else{ | ||
var err = new Error('Sampark API Server non responsive'); | ||
done(err); | ||
} | ||
}); | ||
// | ||
// | ||
// Available external libraries | ||
// | ||
// GLOBAL.hindi_urdu_request = require('request'); | ||
// GLOBAL.hindi_urdu_Entities = require('html-entities').AllHtmlEntities; | ||
// GLOBAL.hindi_urdu_entities = new GLOBAL.hindi_urdu_Entities(); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "agreementfeature", | ||
"inports": [ | ||
{ | ||
"type": "all", | ||
"name": "in_ssf" | ||
} | ||
], | ||
"version": "v0.1", | ||
"outports": [ | ||
{ | ||
"type": "all", | ||
"name": "out_ssf" | ||
} | ||
], | ||
"metadata": { | ||
"label": "agreementfeature" | ||
}, | ||
"icon": "balance-scale", | ||
"main": "index.js" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
chunker description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = function (kathaa_inputs, progress, done){ | ||
////console.log("Inside chunker"); | ||
//save computed output values | ||
var kathaa_outputs = {} | ||
|
||
hindi_urdu_request.post({ | ||
headers: {'content-type' : 'application/x-www-form-urlencoded;charset=UTF-8'}, | ||
url: 'http://api.ilmt.iiit.ac.in/hin/urd/7/7', | ||
body: "pickonemorph="+encodeURI(kathaa_inputs['in_ssf']) | ||
}, function(error, response, body){ | ||
if (!error && response.statusCode == 200) { | ||
try{ | ||
////console.log(body); | ||
body = hindi_urdu_entities.decode(body); | ||
body = JSON.parse(body); | ||
//Assumes only one key is passed | ||
for(var _key in body){ | ||
kathaa_outputs['out_ssf'] = body[_key]; | ||
done && done(null, kathaa_outputs); | ||
return; | ||
} | ||
}catch(e){ | ||
var err = new Error('Malformed reply from Sampark API Server'); | ||
done(err); | ||
} | ||
}else{ | ||
var err = new Error('Sampark API Server non responsive'); | ||
done(err); | ||
} | ||
}); | ||
// | ||
// | ||
// Available external libraries | ||
// | ||
// GLOBAL.hindi_urdu_request = require('request'); | ||
// GLOBAL.hindi_urdu_Entities = require('html-entities').AllHtmlEntities; | ||
// GLOBAL.hindi_urdu_entities = new GLOBAL.hindi_urdu_Entities(); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "chunker", | ||
"inports": [ | ||
{ | ||
"type": "all", | ||
"name": "in_ssf" | ||
} | ||
], | ||
"version": "v0.1", | ||
"outports": [ | ||
{ | ||
"type": "all", | ||
"name": "out_ssf" | ||
} | ||
], | ||
"metadata": { | ||
"label": "chunker" | ||
}, | ||
"icon": "balance-scale", | ||
"main": "index.js" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
defaultfeatures description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = function (kathaa_inputs, progress, done){ | ||
////console.log("Inside defaultfeatures"); | ||
//save computed output values | ||
var kathaa_outputs = {} | ||
|
||
hindi_urdu_request.post({ | ||
headers: {'content-type' : 'application/x-www-form-urlencoded;charset=UTF-8'}, | ||
url: 'http://api.ilmt.iiit.ac.in/hin/urd/19/19', | ||
body: "input="+encodeURI(kathaa_inputs['in_ssf']) | ||
}, function(error, response, body){ | ||
if (!error && response.statusCode == 200) { | ||
try{ | ||
////console.log(body); | ||
body = hindi_urdu_entities.decode(body); | ||
body = JSON.parse(body); | ||
//Assumes only one key is passed | ||
for(var _key in body){ | ||
kathaa_outputs['out_ssf'] = body[_key]; | ||
done && done(null, kathaa_outputs); | ||
return; | ||
} | ||
}catch(e){ | ||
var err = new Error('Malformed reply from Sampark API Server'); | ||
done(err); | ||
} | ||
}else{ | ||
var err = new Error('Sampark API Server non responsive'); | ||
done(err); | ||
} | ||
}); | ||
// | ||
// | ||
// Available external libraries | ||
// | ||
// GLOBAL.hindi_urdu_request = require('request'); | ||
// GLOBAL.hindi_urdu_Entities = require('html-entities').AllHtmlEntities; | ||
// GLOBAL.hindi_urdu_entities = new GLOBAL.hindi_urdu_Entities(); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "defaultfeatures", | ||
"inports": [ | ||
{ | ||
"type": "all", | ||
"name": "in_ssf" | ||
} | ||
], | ||
"version": "v0.1", | ||
"outports": [ | ||
{ | ||
"type": "all", | ||
"name": "out_ssf" | ||
} | ||
], | ||
"metadata": { | ||
"label": "defaultfeatures" | ||
}, | ||
"icon": "balance-scale", | ||
"main": "index.js" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
headcomputation description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = function (kathaa_inputs, progress, done){ | ||
////console.log("Inside headcomputation"); | ||
//save computed output values | ||
var kathaa_outputs = {} | ||
|
||
hindi_urdu_request.post({ | ||
headers: {'content-type' : 'application/x-www-form-urlencoded;charset=UTF-8'}, | ||
url: 'http://api.ilmt.iiit.ac.in/hin/urd/11/11', | ||
body: "input="+encodeURI(kathaa_inputs['in_ssf']) | ||
}, function(error, response, body){ | ||
if (!error && response.statusCode == 200) { | ||
try{ | ||
////console.log(body); | ||
body = hindi_urdu_entities.decode(body); | ||
body = JSON.parse(body); | ||
//Assumes only one key is passed | ||
for(var _key in body){ | ||
kathaa_outputs['out_ssf'] = body[_key]; | ||
done && done(null, kathaa_outputs); | ||
return; | ||
} | ||
}catch(e){ | ||
var err = new Error('Malformed reply from Sampark API Server'); | ||
done(err); | ||
} | ||
}else{ | ||
var err = new Error('Sampark API Server non responsive'); | ||
done(err); | ||
} | ||
}); | ||
// | ||
// | ||
// Available external libraries | ||
// | ||
// GLOBAL.hindi_urdu_request = require('request'); | ||
// GLOBAL.hindi_urdu_Entities = require('html-entities').AllHtmlEntities; | ||
// GLOBAL.hindi_urdu_entities = new GLOBAL.hindi_urdu_Entities(); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "headcomputation", | ||
"inports": [ | ||
{ | ||
"type": "all", | ||
"name": "in_ssf" | ||
} | ||
], | ||
"version": "v0.1", | ||
"outports": [ | ||
{ | ||
"type": "all", | ||
"name": "out_ssf" | ||
} | ||
], | ||
"metadata": { | ||
"label": "headcomputation" | ||
}, | ||
"icon": "balance-scale", | ||
"main": "index.js" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
interchunk description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = function (kathaa_inputs, progress, done){ | ||
////console.log("Inside interchunk"); | ||
//save computed output values | ||
var kathaa_outputs = {} | ||
|
||
hindi_urdu_request.post({ | ||
headers: {'content-type' : 'application/x-www-form-urlencoded;charset=UTF-8'}, | ||
url: 'http://api.ilmt.iiit.ac.in/hin/urd/17/17', | ||
body: "input="+encodeURI(kathaa_inputs['in_ssf']) | ||
}, function(error, response, body){ | ||
if (!error && response.statusCode == 200) { | ||
try{ | ||
////console.log(body); | ||
body = hindi_urdu_entities.decode(body); | ||
body = JSON.parse(body); | ||
//Assumes only one key is passed | ||
for(var _key in body){ | ||
kathaa_outputs['out_ssf'] = body[_key]; | ||
done && done(null, kathaa_outputs); | ||
return; | ||
} | ||
}catch(e){ | ||
var err = new Error('Malformed reply from Sampark API Server'); | ||
done(err); | ||
} | ||
}else{ | ||
var err = new Error('Sampark API Server non responsive'); | ||
done(err); | ||
} | ||
}); | ||
// | ||
// | ||
// Available external libraries | ||
// | ||
// GLOBAL.hindi_urdu_request = require('request'); | ||
// GLOBAL.hindi_urdu_Entities = require('html-entities').AllHtmlEntities; | ||
// GLOBAL.hindi_urdu_entities = new GLOBAL.hindi_urdu_Entities(); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "interchunk", | ||
"inports": [ | ||
{ | ||
"type": "all", | ||
"name": "in_ssf" | ||
} | ||
], | ||
"version": "v0.1", | ||
"outports": [ | ||
{ | ||
"type": "all", | ||
"name": "out_ssf" | ||
} | ||
], | ||
"metadata": { | ||
"label": "interchunk" | ||
}, | ||
"icon": "balance-scale", | ||
"main": "index.js" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
intrachunk description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = function (kathaa_inputs, progress, done){ | ||
////console.log("Inside intrachunk"); | ||
//save computed output values | ||
var kathaa_outputs = {} | ||
|
||
hindi_urdu_request.post({ | ||
headers: {'content-type' : 'application/x-www-form-urlencoded;charset=UTF-8'}, | ||
url: 'http://api.ilmt.iiit.ac.in/hin/urd/18/18', | ||
body: "input="+encodeURI(kathaa_inputs['in_ssf']) | ||
}, function(error, response, body){ | ||
if (!error && response.statusCode == 200) { | ||
try{ | ||
////console.log(body); | ||
body = hindi_urdu_entities.decode(body); | ||
body = JSON.parse(body); | ||
//Assumes only one key is passed | ||
for(var _key in body){ | ||
kathaa_outputs['out_ssf'] = body[_key]; | ||
done && done(null, kathaa_outputs); | ||
return; | ||
} | ||
}catch(e){ | ||
var err = new Error('Malformed reply from Sampark API Server'); | ||
done(err); | ||
} | ||
}else{ | ||
var err = new Error('Sampark API Server non responsive'); | ||
done(err); | ||
} | ||
}); | ||
// | ||
// | ||
// Available external libraries | ||
// | ||
// GLOBAL.hindi_urdu_request = require('request'); | ||
// GLOBAL.hindi_urdu_Entities = require('html-entities').AllHtmlEntities; | ||
// GLOBAL.hindi_urdu_entities = new GLOBAL.hindi_urdu_Entities(); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "intrachunk", | ||
"inports": [ | ||
{ | ||
"type": "all", | ||
"name": "in_ssf" | ||
} | ||
], | ||
"version": "v0.1", | ||
"outports": [ | ||
{ | ||
"type": "all", | ||
"name": "out_ssf" | ||
} | ||
], | ||
"metadata": { | ||
"label": "intrachunk" | ||
}, | ||
"icon": "balance-scale", | ||
"main": "index.js" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lexicaltransfer description |
Oops, something went wrong.