brandomr / OdinsonWebapp

Odinson development webapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OdinsonWebapp

This is a webapp designed to facilitate Odinson rule development. Odinson is a highly optimized information extraction framework that supports real-time queries against an indexed corpus. For more information, please see Odinson's documentaion.

To use this webapp, I assume you already have an Odinson index made.

  • Point the webapp to the index (not the parent dir). In src/main/resources/application.conf set:

     odinson.indexDir = "path/to/index"
    
  • on the command line, run:

      sbt webapp/run
    

This will launch the webapp. Then, in a browser, go to localhost:9000

You should see something like this:

image

To try out a rule, hit the SUBMIT button. Results are displayed in a table, initially sorted by frequency.

image

To see the supporting evidence, click the + button for the row.

image

To export the contents of the table, select export matches and slick submit. The matches will be saved as a json lines file (i.e., one json object per match, one per line). The file will be saved in the current directory, in a file named by the rule name concatenated with the local datetime (e.g., example-rule_2020-04-08_10:47:36.jsonl).

image

Any feedback is much appreciated!

About

Odinson development webapp


Languages

Language:JavaScript 69.5%Language:HTML 26.1%Language:CSS 3.0%Language:Scala 1.4%Language:Shell 0.0%