Coder Social home page Coder Social logo

flint-precondition-labelling's Introduction

FLINT-Frame-Service

Automatically extract FLINT ACT frames from Dutch sources of norms.

Usage

Configuring your environment

  • add a .env file to the root directory with the following keys:
OPENAI_SECRET_KEY=<YOUR_SECRET_KEY_HERE>

Getting started

  • install and activate python 3.9.0*
  • install poetry if new to poetry: https://python-poetry.org/docs/#installation
  • (poetry env use /full/path/to/python)
  • poetry config virtualenvs.in-project true
  • poetry install
  • Go to project settings of your editor and set the created virtual environment as project interpreter
  • Important: this tool uses python 3.8 or higher because the transformers and the matplotlib package only support python 3.8 or higher. Running FlintFiller-srl with a lower python version results in an error.

Using the Act Frame Extractor Microservice

To start running the microservice for extracting act frames from user inputs, run:

flask --app flint_frame_service run

And request a response like:

curl -X POST http://127.0.0.1:5000/extract-act-frame \
-H "Content-Type: application/json" \
-d '{"article_string": "personal data shall be processed lawfully."}'

Note that by default, the server mimics processing time by sleeping for 5 - 10 seconds before returning a response. If you want disable this behavior, change the key of your request type to "debug":

curl -X POST http://127.0.0.1:5000/extract-act-frame \
-H "Content-Type: application/json" \
-d '{"debug": "personal data shall be processed lawfully."}'

Report:

flint-precondition-labelling's People

Contributors

juliushuizing avatar actions-user avatar jan-wever avatar songyu-ren avatar

Watchers

 avatar

flint-precondition-labelling's Issues

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.