Skip to content

Commit

Permalink
Add coypu-EventExtraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Westphal committed Apr 24, 2024
1 parent e255d4a commit 5852331
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docs/coypu-EventExtraction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# [coypu-EventExtraction](https://github.com/semantic-systems/coypu-EventExtraction)
Event Extraction module - Master of Disaster (MoD) - for deployment.

This repo contains both the event type detection and event argument extraction modules for inference. Currently, for the first two MVPs, these two modules are independently implemented, meaning it is error pruned - event type and arguments could be mismatched.
The plan is to merge this two modules into one in the last MVP.

- [x] MVP 1: custom Event Detector Event Argument Extractor v1
- [x] MVP 2: custom Event Detector Event Argument Extractor v2
- [ ] MVP 3: HiTeC Event Extractor

# Requirement
- python >= 3.7

Use your favorite virtual environment management tool and
```
pip install -r requirements.txt
```

# Usage

## Local Gradio Deployment
Users can create a simple gradio demo where MoD is hosted locally. After the module is instantiated, two links will be generated.
One local link and another a public link.
```
python event_extractor.py
```

## Docker
Alternatively, you can deploy via docker, which will be using port 5278.
```
docker-compose up
```

and query via post request,
```
curl -i -H “Content-Type: application/json” -X POST -d ‘{“message”: “there was an earthquake in Hamburg last night man damn hot noodles.“}’ http://127.0.0.1:5278
```
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ HITeC/SEMS developed several AI solutions, in particular for Knowledge Extractio
- [coypu-event-spreading](coypu-event-spreading)
- [coypu-turbo](coypu-turbo)
- [coypu-ESG-event-detector](coypu-ESG-event-detector)
- [coypu-EventExtraction](coypu-EventExtraction)

## Datasets

Expand Down

0 comments on commit 5852331

Please sign in to comment.