question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Various issues with Import of data/labels and display of NER labelling using docker - Ubuntu 18.04 on Virtualbox

See original GitHub issue

This is my installation using ubuntu 18.04

The procedure used for the installation of doccano was:

sudo apt-get update sudo apt-get remove docker docker-engine docker.io sudo apt install docker.io sudo systemctl start docker sudo systemctl enable docker docker --version Docker version 19.03.6, build 369ce74a3c

sudo docker pull doccano/doccano

docker container create --name doccano
-e “ADMIN_USERNAME=admin”
-e “ADMIN_EMAIL=admin@example.com”
-e “ADMIN_PASSWORD=password”
-p 8000:8000 doccano/doccano

docker container start doccano

I access using the default 8000 port and login/password.

When working with doccano I noted that the import of exported data / labels were not restored correctly as below:

This is the JSON / JSONL file exported Screenshot 2021-04-04 at 17 12 21

After importing of the labels JSON Screenshot 2021-04-04 at 17 11 44

Seems that the data were not imported (and displayed) correctly also.

New data during labeling Screenshot 2021-04-04 at 17 36 23

Data exported after labeling (the label was approved) {"id": 7, "text": "prova di un testo microsoft italia milano programmatore", "annotations": [{"label": 5, "user": 1, "created_at": "2021-04-04T15:35:56.858865Z", "updated_at": "2021-04-04T15:35:56.858894Z"}], "meta": {}, "annotation_approver": "admin", "comment_count": 0}

Data imported after labeling Screenshot 2021-04-04 at 17 37 48

A similar thing is happening with the JSON / JSONL import of data used in NER labeling.

Am I using a wrong version of doccano? The version that I can use in the docker seems different from the one in the demo of doccano, are they different?

Environment Fresh Ubuntu 18.04 installation in a Virtualbox Firefox 87.0 64 Bit Google Chrome 89.0.4389.90 (Official Build) (x86_64)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
rmathur27mcommented, Oct 6, 2021

For importing labeling you are not using key values correctly in json file.

So the problem is you are using backgroundColor, you need to use background_color textColor, you need to use text_color.

Please refer below json and make it like yours it will work [ {

"text": "media",    
"suffix_key": "m",
"background_color": "#DAE3F3",
"text_color": "#ffffff"

}, {

"text": "cricket",    
"suffix_key": "c",
"background_color": "#B4C7E7",
"text_color": "#ffffff"

} ]

0reactions
mukundeshcommented, Oct 13, 2021

Thanks, this worked. Just like dataset even exported labels cannot be imported as is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run an Ubuntu Desktop virtual machine using ...
In this tutorial, we'll walk you through one of the easiest ways to try out Ubuntu Desktop on a virtual machine. VirtualBox is...
Read more >
Docker + Ubuntu + Virtualbox: "volumes" directive in dockerfile ...
Just testing Docker here and already in front an issue: the "volumes" directive in dockerfile seems like not working in Ubuntu -- OK...
Read more >
Containers For Deep Learning Frameworks User Guide
This guide provides a detailed overview about containers and step-by-step instructions for pulling and running a container and customizing and extending ...
Read more >
How to Install Ubuntu on VirtualBox as a VM - NAKIVO
Installing Ubuntu on VirtualBox as a virtual machine (VM) has a lot of ... Let's download Ubuntu 18.04.2 LTS – this is the...
Read more >
How to Install and Set Up Docker on Ubuntu 18.04 - Hostinger
Why do Users Install Docker on Ubuntu · How to Start Using Docker on Ubuntu 18.04 · Using the Docker Command · Understanding...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found