File size: 2,280 Bytes
f76f0e1
 
35dc65f
 
 
f76f0e1
 
 
 
35dc65f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: README
emoji: 🛡️
colorFrom: blue
colorTo: gray
sdk: static
pinned: false
---

# Dekka

[Dekka](https://dekka.cloud) runs apps, databases, virtual servers and AI models from Accra, so teams building for Ghana can keep their users' data in the country. Here we publish the open models and data behind Veil, our engine for finding and protecting personal information in text.

## Veil

Veil finds personal information in text and protects it before the text leaves your systems, such as a prompt on its way to an AI model. It was built for Ghanaian text, from Ghana Card PINs and mobile money numbers read aloud in Akan or Ewe to GhanaPost GPS addresses, and its models add the names, addresses given as directions and institutions' own ID numbers that rules alone can't find. They read English, Twi, Fante, Ga, Ewe and Ghanaian Pidgin, and the way people mix them.

| | |
| --- | --- |
| [veil-ner-nano](https://huggingface.co/dekka-cloud/veil-ner-nano) | A 56 MB model that runs on an ordinary CPU or in a browser, quick enough to sit in front of every request |
| [veil-ner-deep](https://huggingface.co/dekka-cloud/veil-ner-deep) | A larger model for when accuracy matters more than speed |
| [veil-synth-gh](https://huggingface.co/datasets/dekka-cloud/veil-synth-gh) | The synthetic Ghanaian dataset both models were trained on, which holds no real person's details |

The engine is open source at [github.com/dekka-cloud/veil](https://github.com/dekka-cloud/veil), and its libraries download a model from here on first use.

```bash
pip install dekka-veil
npm install dekka-veil
```

```python
from dekka_veil import Veil

veil = Veil(model="veil-ner-nano")
veil.protect("Me din de Akosua Mensah, patient PT-204118.").text
# 'Me din de [PERSON_NAME], patient [PATIENT_ID].'
```

The models and the dataset are released under CC BY 4.0, and the engine under the Apache License 2.0.

## Research

We study what it takes to serve Ghana and its neighbours well, from the personal data people share to the networks their apps travel over, and publish each study with its methods at [dekka.cloud/research](https://dekka.cloud/research). The story behind these models is in [What personal data looks like in Ghana](https://dekka.cloud/research/personal-data-in-ghana).