BlaiMelendezCatalan / BAT

Other
60 stars 7 forks source link

What happens after the annotation process? #13

Open Buckler89 opened 6 years ago

Buckler89 commented 6 years ago

The documentation does not specify how to export annotations. That is what happens after point 5 of the Annotation Process. Could you give me instructions?

BlaiMelendezCatalan commented 6 years ago

True, you should get into the shell

  1. To access the database using the DJANGO shell: (to close it use 9.)

$ (sudo) docker-compose run django python manage.py shell and then:

import utils as U U.export_project_ground_truth_to_csv(project_name, annotator_name, output_csv)

Cheers

2018-07-12 15:30 GMT+02:00 Buckler89 notifications@github.com:

The documentation does not specify how to export annotations. That is what happens after point 5 of the Annotation Process. Could you give me instructions?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BlaiMelendezCatalan/BAT/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AL0lF7IYALTuHRFQGXgQGOGMNVA0yWfRks5uF094gaJpZM4VM2jT .

RicherMans commented 6 years ago

Hey there @BlaiMelendezCatalan , I tried to use your instructions, but found out that the utils module is in the annotation tools directory. Moreover, after fixing that by simply

import annotation_tool.utils as U
U.export_project_ground_truth_to_csv(project_name, annotator_name,
output_csv)

I get another error:

global name 'tqdm' is not defined

Did you forget to include that module in docker?

BlaiMelendezCatalan commented 6 years ago

Hello Heinrich,

Sorry for the delay.

I am pretty sure the shell is not running in the docker environment. It runs in your local environment and connects to the DB, so I guess you are the one that should install tqdm in you local environment (pip install tqdm).

Hope it helps!

Blai.

2018-07-23 9:34 GMT+02:00 Heinrich Dinkel notifications@github.com:

Hey there @BlaiMelendezCatalan https://github.com/BlaiMelendezCatalan , I tried to use your instructions, but found out that the utils module is in the annotation tools directory. Moreover, after fixing that by simply

import annotation_tool.utils as U U.export_project_ground_truth_to_csv(project_name, annotator_name, output_csv)

I get another error:

global name 'tqdm' is not defined

Did you forget to include that module in docker?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BlaiMelendezCatalan/BAT/issues/13#issuecomment-406967180, or mute the thread https://github.com/notifications/unsubscribe-auth/AL0lFw7vqhVXfyPNifALW1LhjCJdotlFks5uJXyhgaJpZM4VM2jT .

BlaiMelendezCatalan commented 6 years ago

Remember to call (sudo) docker-compose down after you leave the shell so that the containers are correctly deleted!

2018-08-02 19:10 GMT+02:00 Blai Melendez Catalan blaimelcat@gmail.com:

Hello Heinrich,

Sorry for the delay.

I am pretty sure the shell is not running in the docker environment. It runs in your local environment and connects to the DB, so I guess you are the one that should install tqdm in you local environment (pip install tqdm).

Hope it helps!

Blai.

2018-07-23 9:34 GMT+02:00 Heinrich Dinkel notifications@github.com:

Hey there @BlaiMelendezCatalan https://github.com/BlaiMelendezCatalan , I tried to use your instructions, but found out that the utils module is in the annotation tools directory. Moreover, after fixing that by simply

import annotation_tool.utils as U U.export_project_ground_truth_to_csv(project_name, annotator_name, output_csv)

I get another error:

global name 'tqdm' is not defined

Did you forget to include that module in docker?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BlaiMelendezCatalan/BAT/issues/13#issuecomment-406967180, or mute the thread https://github.com/notifications/unsubscribe-auth/AL0lFw7vqhVXfyPNifALW1LhjCJdotlFks5uJXyhgaJpZM4VM2jT .

RicherMans commented 6 years ago

Hey, I was running within the docker environment, but still saw that you didn't import tqdm in that file. I manually fixed it by simply importing tqdm. As you can see in Line 250:

https://github.com/BlaiMelendezCatalan/BAT/blob/cd62e0e63fb6e9650347df0b61eb1650d4214eab/annotation_tool/utils.py#L250

There is no import for tqdm at the top or anywhere in the file.

BlaiMelendezCatalan commented 6 years ago

That's true and it is quite a mistery why it doesn't complain in my case. Anyway, I will add the import.

2018-08-03 4:12 GMT+02:00 Heinrich Dinkel notifications@github.com:

Hey, I was running within the docker environment, but still saw that you didn't import tqdm in that file. I manually fixed it by simply importing tqdm. As you can see in Line 250:

https://github.com/BlaiMelendezCatalan/BAT/blob/ cd62e0e63fb6e9650347df0b61eb1650d4214eab/annotation_tool/utils.py#L250

There is no import for tqdm at the top or anywhere in the file.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BlaiMelendezCatalan/BAT/issues/13#issuecomment-410123057, or mute the thread https://github.com/notifications/unsubscribe-auth/AL0lFxjQqpWKi6qdHKV6nKC6T60rLH9Tks5uM7GdgaJpZM4VM2jT .