{"id":183,"date":"2012-11-25T15:52:14","date_gmt":"2012-11-25T15:52:14","guid":{"rendered":"https:\/\/www.nactem.ac.uk\/ucompare\/?page_id=183"},"modified":"2012-11-27T12:02:20","modified_gmt":"2012-11-27T12:02:20","slug":"example-workflow","status":"publish","type":"page","link":"https:\/\/www.nactem.ac.uk\/ucompare\/?page_id=183","title":{"rendered":"Example Workflow"},"content":{"rendered":"<p>In this example, we will develop a NLP workflow that identifies biomedical named entities (e.g., gene and protein names) in 100 abstracts retrieved from PubMed.<\/p>\n<h2>Step 1: Adding a collection reader<\/h2>\n<p>The first NLP component in every UIMA\/U-Compare workflow is a collection reader. A collection reader is responsible for retrieving documents from a collection (e.g., online libraries like PubMed) and preparing the input for further processing by subsequent components. In this example, we will use <em>Kleio Search<\/em>, which can be found in the component library, under <em>Collection readers<\/em> category.<\/p>\n<p><a href=\"https:\/\/www.nactem.ac.uk\/ucompare\/wp-content\/uploads\/2012\/11\/kleiosearch.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.nactem.ac.uk\/ucompare\/wp-content\/uploads\/2012\/11\/kleiosearch.png\" alt=\"Kleio Search in U-Compare\" width=\"600\" height=\"300\" \/><\/a><br \/>\n<a href=\"http:\/\/www.nactem.ac.uk\/Kleio\/\"><em>Kleio Search<\/em><\/a> is a semantic search engine, developed by <a title=\"The National Centre for Text Mining (NaCTeM)\" href=\"http:\/\/www.nactem.ac.uk\/\">NaCTeM<\/a>, which fetches MEDLINE abstracts matching a specific query. In our case, we use the query &#8220;<em>content:CAT AND PROTEIN:&#8221;cat&#8221;<\/em>&#8220;, which retrieves documents that are relevant to the <strong>protein<\/strong> <em>cat<\/em>.<\/p>\n<h2>Step 2: Adding processing components<\/h2>\n<p>In this step, we need to add a biomedical Named Entity Recogniser (NER) component. From the available ones, we choose NeMine, which identifies genes and proteins in free text (<em>ABNER, NLPBA<\/em> or <em>Genia Tagger with Tokenisation<\/em> are also applicable NERs for this case).<br \/>\n<a href=\"https:\/\/www.nactem.ac.uk\/ucompare\/wp-content\/uploads\/2012\/11\/NeMineInputSentence.png\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.nactem.ac.uk\/ucompare\/wp-content\/uploads\/2012\/11\/NeMineInputSentence.png\" alt=\"NeMine expects sentence split text.\" \/><\/a><br \/>\nOnce we have placed NeMine in the <em>workflow design panel<\/em>, we immediately observe that this component expects sentences as input. Hence, we first need to split the documents retrieved by <em>Kleio Search<\/em> into sentences. To do so, we need to place a Sentence Splitter component before NeMine.<br \/>\n<a href=\"https:\/\/www.nactem.ac.uk\/ucompare\/wp-content\/uploads\/2012\/11\/NeMineValidWorkflow.png\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.nactem.ac.uk\/ucompare\/wp-content\/uploads\/2012\/11\/NeMineValidWorkflow.png\" alt=\"Valid NeMine workflow\" \/><\/a><br \/>\nOur workflow is now valid (i.e., the input of components is compatible with the output of subsequent components).<\/p>\n<h2>Step 3: Executing the workflow<\/h2>\n<p>We can execute a pipeline by simply clicking the <em>play<\/em> button (it can be found under the workflow design panel). U-Compare will then start executing the components in our workflow, sequentially. Once U-Compare has finished processing the documents, a <em>Session Results<\/em> window will pop up, as illustrated in the following screenshot. <a href=\"https:\/\/www.nactem.ac.uk\/ucompare\/wp-content\/uploads\/2012\/11\/SessionResults.png\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.nactem.ac.uk\/ucompare\/wp-content\/uploads\/2012\/11\/SessionResults.png\" alt=\"Session Results\" width=\"600\" height=\"300\" \/><\/a><br \/>\nA <em>Session Results<\/em> window contains two tabs:<\/p>\n<div>\n<ul>\n<li><span style=\"font-size: medium;\"><strong>Performance Statistics:<\/strong><\/span> Time needed to execute the workflow, average time by each component.<\/li>\n<li><span style=\"font-size: medium;\"><strong>Annotations Statistics:<\/strong><\/span>A summary of the annotations. (e.g., number of annotations for each document)<\/li>\n<\/ul>\n<\/div>\n<p>We can view the annotations per document by clicking the corresponding <em>show<\/em> button in the <em>Performance Statistics<\/em> tab.<\/p>\n<p><a href=\"https:\/\/www.nactem.ac.uk\/ucompare\/wp-content\/uploads\/2012\/11\/NeMineAnnotations.png\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.nactem.ac.uk\/ucompare\/wp-content\/uploads\/2012\/11\/NeMineAnnotations.png\" alt=\"Visualisation of annotations in U-Compare\" width=\"600\" height=\"300\"\/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this example, we will develop a NLP workflow that identifies biomedical named entities (e.g., gene and protein names) in 100 abstracts retrieved from PubMed. Step 1: Adding a collection reader The first NLP component in every UIMA\/U-Compare workflow is &hellip; <a href=\"https:\/\/www.nactem.ac.uk\/ucompare\/?page_id=183\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-183","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.nactem.ac.uk\/ucompare\/index.php?rest_route=\/wp\/v2\/pages\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nactem.ac.uk\/ucompare\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.nactem.ac.uk\/ucompare\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.nactem.ac.uk\/ucompare\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nactem.ac.uk\/ucompare\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=183"}],"version-history":[{"count":45,"href":"https:\/\/www.nactem.ac.uk\/ucompare\/index.php?rest_route=\/wp\/v2\/pages\/183\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/www.nactem.ac.uk\/ucompare\/index.php?rest_route=\/wp\/v2\/pages\/183\/revisions\/185"}],"up":[{"embeddable":true,"href":"https:\/\/www.nactem.ac.uk\/ucompare\/index.php?rest_route=\/wp\/v2\/pages\/2"}],"wp:attachment":[{"href":"https:\/\/www.nactem.ac.uk\/ucompare\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}