UNPKG

multi-db-spotlight

Version:

Multilingual DBpedia Spotlight for Named Entity Recognition

25 lines (23 loc) 580 B
//TODO: write some test cases var should = require('chai').should(), mlspotlight = require('../index'), annotate = mlspotlight.annotate; /* var input="My text to be analyzed." mlspotlight.annotate(input,function(output){ console.log(output); mlspotlight.fixToEndpoint('german'); mlspotlight.annotate(input,function(output){ console.log(output); }) }) */ /* describe('#annotate', function() { it('annotate a sample text in Engligh;', function() { var input='test'; var output=''; annotate(input).should.equal(output); }); }); */