Package net.bioclipse.managers
Class OscarManager
java.lang.Object
net.bioclipse.managers.OscarManager
- All Implemented Interfaces:
IBactingManager,net.bioclipse.managers.business.IBioclipseManager
Bioclipse manager that adds text mining functionality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoi()Lists the DOIs of the articles associated to this manager.extractText(String html) Extracts plain text from a HTML document.findNamedEntities(String text) Extracts named entities from a text.List<net.bioclipse.core.domain.IMolecule>Extracts molecules from a text for which the corresponding named entities are recognized as chemicals.
-
Constructor Details
-
OscarManager
Creates a newOscarManager.- Parameters:
workspaceRoot- location of the workspace, e.g. "."
-
-
Method Details
-
findNamedEntities
Extracts named entities from a text.- Parameters:
text- Text with named entities (chemical names).- Returns:
- List of named entities.
-
findResolvedNamedEntities
public List<net.bioclipse.core.domain.IMolecule> findResolvedNamedEntities(String text) throws net.bioclipse.core.business.BioclipseException Extracts molecules from a text for which the corresponding named entities are recognized as chemicals.- Parameters:
text- Text with chemical names.- Returns:
- List of
IMolecules. - Throws:
net.bioclipse.core.business.BioclipseException
-
extractText
Extracts plain text from a HTML document.- Parameters:
html- HTML string from which the text should be extracted.- Returns:
- The resulting text
-
getManagerName
- Specified by:
getManagerNamein interfacenet.bioclipse.managers.business.IBioclipseManager
-
doi
Description copied from interface:IBactingManagerLists the DOIs of the articles associated to this manager.- Specified by:
doiin interfaceIBactingManager- Returns:
- a
Listof String with DOIs
-