Skip to content

N3C NLP Rule Editor

Sijia Liu edited this page Feb 24, 2021 · 6 revisions

N3C NLP Rule Editor

This tutorial will walk you through how to generate rulesets for MedTagger/Backbone via the web user interface.

Demo Page

The demo page illustrates the annotations on texts using the baseline ruleset. You can directly run the N3C baseline ruleset by clicking on the "Parse the text" button when providing your own test string on the input textbox.

Note: the response time depends on the workload of the server.

Demo page

Rule Editor

To explore the ruleset, composing a new ruleset, or do real-time testing, you may visit the Rule Editor page by navigating to the Rule Editor page from the top menu.

Open a rule set (package)

The Rule Editor has 2 modes, Easy Mode and Full Mode. Once you first enter the Rule Editor page, it will show an empty workspace in Easy Mode as shown below. The Easy Mode may be sufficient in most of the use cases.

Easy Mode

View and Modify Rules

As an example, we will demonstrate how to view and edit on the baseline COVID-19 ruleset. Under the Rule Package section, click on the button COVID-19. A list of 18 rules (including 1 REMOVE rule) will show up. Click on the concept, the regular expression list of each concept will be displayed.

Rule set unselected

rule set unselected

  • To add a new concept, click the Add New Rule button next to the Rule List.
  • To remove a concept, click the "dust bin" icon on the top-right at the concept card.

Test Rules

Click on the Test Rules Button, you will be able to see the annotation from the ruleset. test button

Test annot

Note:

  • The response time depends on the workload of the server.
  • All the concepts will be annotated, including the unselected ones, as they are also part of the ruleset.

Save as a Zip File

Once you have finished all the work, you may save the ruleset by specifying a ruleset name under Package Name and click As Zip button to save it on your disk.

download rule set

Clone this wiki locally