egonw / bacting

Bacting is an open-source platform for chemo- and bioinformatics based on Bioclipse that defines a number of common domain objects and wraps common functionality, providing a toolkit independent, scriptable solution to handle data from the life sciences.
Other
13 stars 5 forks source link

Oscar manager support #44

Closed egonw closed 3 years ago

egonw commented 3 years ago

oscar.extractText() and .findResolvedNamedEntities()

Method described in this 2011 paper.

Plugin source code is available from: https://github.com/bioclipse/bioclipse.oscar

Example use

A short code example where the API method is used.

// Demo showing the Oscar text mining functionality

var html = "<html><body>Benzene and toluene.</body></html>";

var text = oscar.extractText(html);
var mols = oscar.findResolvedNamedEntities(text);

var file = "/Oscar Demo/extractedMols.sdf";
cdk.saveSDFile(file, mols);
ui.open(file);
egonw commented 3 years ago

All three methods implemented.