indicodatasolutions / indicoio-node Goto Github PK
View Code? Open in Web Editor NEWA Node.js wrapper for the Indico API
License: MIT License
A Node.js wrapper for the Indico API
License: MIT License
Add functionality to read in X-Warning headers and print any content to stdout -- useful for future deprecation.
Errors of 'lwip.open(input, options, function (err, image)' are not handled.
Add something like:
if (err){
throw new Error(err);
}
Hi!
I did'n know what the problem it may be cause it working on my machine yesterday.
It's simple code from tutorial:
var indico = require('indico.io');
indico.apiKey = 'f92bd5647cc7536bf75518a3eebce323';
var response = function(res) { console.log(res); }
var logError = function(err) { console.log(err); }
// single example
indico.sentiment({data: 'I love writing code!'})
.then(response)
.catch(logError);
on response i receive:
{ [Error: connect ECONNREFUSED 104.197.152.141:80]
cause:
{ [Error: connect ECONNREFUSED 104.197.152.141:80]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '104.197.152.141',
port: 80 },
isOperational: true,
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '104.197.152.141',
port: 80 }
I was tried to reinstall Node.js, tried version 6.3.1 and 4.4.7 of Node.js. Tried to send api call from PostMan - it works. But from node.js code - not working. Tried to debug - but nothing found yet.
Please, help me.
Thanks.
indico
.political('Guns don\'t kill people. People kill people.', fn)
Results
{ Libertarian: 0.47740164630834825,
Liberal: 0.16617097211030055,
Green: 0.08454409540443657,
Conservative: 0.2718832861769146 }
This is different than https://github.com/IndicoDataSolutions/IndicoIo-node/blob/master/README.md#L39
Should be updated to allow passing in urls instead of images to the imagefeatures API.
Should be resized so that the minimum axis is size 128 and the other axis is sized to preserve ratio.
For passing in threshold
and top_n
style arguments (like in the Text Tags api).
For tracking client library usage and aiding with error reporting.
See facial_features
.
In general this module needs to be restructured and bumped a version to work asynchronously. Potentially with promises to make it more manageable.
Add infrastructure to more elegantly handle api specific logic prior to making a request.
Could add a pre-request function to the services api object.
PNG hardcoded
Found this tool and think it might be exactly what we need. https://github.com/EyalAr/lwip
It has a node.gyp dependance but anyone running node should be able to use it. If anything we can make a recommendation to use this tool and/or include links to this and ImageMagik and GraphicsMagik
Thoughts?
Like Ruby / Python
The lwip package is prone to installation issues, should see what we can do to remedy it on our end.
image.js / line 20
There is no option to add the format as a parameter. In filename case it is gathered from filename. png is fixed coded.
input = new Buffer(image, 'base64');
options = 'png';
Remove calls to local
in favor of configuration file and environment variable based private cloud support.
Hi, it seems this library is unusable. I receive the following with every request:
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
It used to work. What's going on?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.