Giter Site home page Giter Site logo

gevorg95 / isc-iknow-rulesbuilder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intersystems-community/isc-iknow-rulesbuilder

0.0 2.0 0.0 1.07 MB

Demo application to build rule patterns based on sequences of terms to be matched, based on InterSystems' iKnow technology

License: MIT License

Apex 66.83% TeX 13.13% JavaScript 20.04%

isc-iknow-rulesbuilder's Introduction

iKnow Rules Builder Demo App

This demo application can be used to demonstrate how you can leverage classic iKnow matching to build composite "rules" that represent particular patterns to be extracted from natural language text. Dictionary items can be assembled into sequences of which some elements may be optional and others aren't, and take into account the negation context of matched elements.

The application also includes code to "parse" the paragraph structure of texts with various numbering patterns, which might be usable for other scenarios, independent of the rules building functionalities. The paragraph numbering detection allows for several typical OCR issues ("11." rather than "ii."). See the code in Demo.RulesBuilder.Paragraph:ParseString() for more details.

For a detailed description of the GUI, check this article on the InterSystems Developer Community: https://community.intersystems.com/post/iknow-demo-apps-part-4-rules-builder-demo

Installation notes

  • Import associated code
  • Create a REST handler web application by invoking Demo.RulesBuilder.Utils:CreateRestWebApp() in your namespace of choice
  • Access the application through http://localhost:_port_/csp/_namespace_/RulesBuilderDemo.csp?_123_ where 123 is the ID of the domain managed by Demo.RulesBuilder.ParagraphDomain, which you can access from its %GetDomainId() method.

Other notes

  • Note that Demo.RulesBuilder.ParagraphDomain is configured to allow updating the dictionaries through the GUI and the element therein will not drop any GUI-supplied entries when rebuilding the domain.

TODO

  • possibly let the dictionary GUI manage the dictionary elements straight in the domain definition XML, to simplify exporting and avoid confusion of what's defined in the domain and what's just in the XML

isc-iknow-rulesbuilder's People

Contributors

bdeboe avatar gevorg95 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.