Node.js library for accessing to the Microsoft Concept Graph API
npm install concept
const Concept = require('concept');
Concept.setAPIKey('MY API KEY');
Concept.scoreByProb('microsoft').then((data) => {
// e.g. score = {
// "company": "0.62",
// "technology company": "0.024",
// ...
// };
});
const Concept = require('concept');
Concept.setAPIKey('MY API KEY');
Concept.scoreByMI('microsoft', 0).then((score) => {
// e.g. score = {
// "company": "0.62",
// "technology company": "0.024",
// ...
// };
});
const Concept = require('concept');
Concept.setAPIKey('MY API KEY');
Concept.scoreByTypi('microsoft', 0).then((score) => {
// e.g. score = {
// "company": "0.62",
// "technology company": "0.024",
// ...
// };
});
const Concept = require('concept');
Concept.setAPIKey('MY API KEY');
Concept.scoreByNPMI('microsoft', 0).then((score) => {
// e.g. score = {
// "company": "0.62",
// "technology company": "0.024",
// ...
// };
});
const Concept = require('concept');
Concept.setAPIKey('MY API KEY');
Concept.scoreByPMIK('microsoft', 1.5, 0).then((score) => {
// e.g. score = {
// "company": "0.62",
// "technology company": "0.024",
// ...
// };
});
const Concept = require('concept');
Concept.setAPIKey('MY API KEY');
Concept.scoreByCross('microsoft', 10, 0).then((score) => {
// e.g. score = {
// "company": "0.62",
// "technology company": "0.024",
// ...
// };
});
npm test
https://concept.research.microsoft.com/help/index#!/Concept/Concept_ScoreByProb