Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't annotate after uploading the dataset #48

Closed
xuanlv2 opened this issue Dec 20, 2018 · 21 comments
Closed

can't annotate after uploading the dataset #48

xuanlv2 opened this issue Dec 20, 2018 · 21 comments
Labels
bug Something isn't working

Comments

@xuanlv2
Copy link

xuanlv2 commented Dec 20, 2018

If you open a GitHub issue, here is our policy:

  1. It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
  2. The form below must be filled out.

System information

  • Windows 10
  • Python 3.6.5

Describe the problem

For text classification, after I uploaded the text documents and defined the labels per the instruction, I clicked the annotate data tab, but it only showed an empty page, any clues what went wrong?

Source code / logs

This is a snapshot of what is shown when I clicked annotate data tab
image

@icoxfog417 icoxfog417 added the bug Something isn't working label Dec 20, 2018
@icoxfog417
Copy link
Contributor

icoxfog417 commented Dec 20, 2018

Thank you for reporting the issue.

I confirmed doccano on Windows 10 & Python 3.6.4 it works fine (version is
a little different but it may not affect phenomenon).

If you don't have any data, you can confirm your label like following.

image

  1. Do you use master branch?
  2. Can you confirm your data at Dataset page on your project?
  3. Can you confirm your label at Labels page on your project?
  4. Can you provide samples of your uploaded data?

@xuanlv2 xuanlv2 closed this as completed Dec 20, 2018
@xuanlv2 xuanlv2 reopened this Dec 20, 2018
@xuanlv2
Copy link
Author

xuanlv2 commented Dec 20, 2018

Thank you for reporting the issue.

I confirmed doccano on Windows 10 & Python 3.6.4 it works fine (version is
a little different but it may not affect phenomenon).

If you don't have any data, you can confirm your label like following.

image

  1. Do you use master branch?
  2. Can you confirm your data at Dataset page on your project?
  3. Can you confirm your label at Labels page on your project?
  4. Can you provide samples of your uploaded data?

Thank you for your reply!

  • Yes, I use the 'master' branch
  • Below are the screenshots of the Dataset and Labels page:

image
image

  • And here is the text file I used
    Test.txt

@icoxfog417
Copy link
Contributor

Thank you for your environment information!

I can setup the project by your data.

image

You use doccano at offline environment? doccano uses internet connection to load Javascript / CSS files.

@xuanlv2
Copy link
Author

xuanlv2 commented Dec 21, 2018

Thank you for your reply!
I do not use it at offline environment, the internet connection is always on.
Could it be the browser's problem?
I tried to play with the live demo, but it also gave me the similar empty page.

@icoxfog417
Copy link
Contributor

Can you use Google Chrome? We mainly use Chrome for developing the doccano.

@xuanlv2
Copy link
Author

xuanlv2 commented Dec 21, 2018

I am actually using Google Chrome.
When I refresh the annotation page, the contents blinks for like a second, and then disappear.

@icoxfog417
Copy link
Contributor

Oh, it's odd situation. Could you show us the Chrome console message (like #49)? JavaScript error would be logged there.

@xuanlv2
Copy link
Author

xuanlv2 commented Dec 21, 2018

That's the error message when I was trying to check the demo:
image

@huojianzhatian
Copy link

I have the same problem as you

@BrambleXu
Copy link
Contributor

BrambleXu commented Dec 22, 2018

@xuanlv2 @huojianzhatian
After you create a project, upload data, create labels, you can just click 'Annotate data' button to the annotation page.
The error you meet is because you click the 'Try Demo' button in the homepage (click doccano icon in the top left corner), and this is only for demonstration. If you are on the homepage, you should click the 'Project' button in the top right corner. You can find the project you created and click the project name to start annotation.

@xuanlv2
Copy link
Author

xuanlv2 commented Dec 22, 2018

@xuanlv2 @huojianzhatian
After you create a project, upload data, create labels, you can just click 'Annotate data' button to the annotation page.
The error you meet is because you click the 'Try Demo' button in the homepage (click doccano icon in the top left corner), and this is only for demonstration. If you are on the homepage, you should click the 'Project' button in the top right corner. You can find the project you created and click the project name to start annotation.

Thank you for your reply, this is the annotation page I have:
image

@Xinyi2016
Copy link
Contributor

Xinyi2016 commented Dec 23, 2018

@xuanlv2 @huojianzhatian
I got the same problem. Here is a quick fix by replacing

<script src="https://unpkg.com/marked@0.3.6"></script>
<script src="https://unpkg.com/lodash@4.16.0"></script>

in the file app\server\templates\annotation\annotation_base.html

with the following paths:

<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.5.2/marked.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.js"></script>

After that, the annotation works well for me.

I made a pull request to fix this bug. Please let me know if you have further issues.

@BrambleXu
Copy link
Contributor

BrambleXu commented Dec 23, 2018

Hi @Xinyi2016, thanks to your update. Did you know why this bug occur? It is really weird that we can not reimplement this bug.

@huojianzhatian
Copy link

@Xinyi2016 Thanks a lot, the annotation works well for me then.

@huojianzhatian
Copy link

@BrambleXu Thanks!

@Xinyi2016
Copy link
Contributor

@BrambleXu Seems that those two links are broken, but you have loaded them successfully before. Have you tried reimplementing it in a new environment, like a New Incognito Window of Chrome?

@BrambleXu
Copy link
Contributor

@Xinyi2016 Yes. I tired incognito window and it worked fine.

@icoxfog417
Copy link
Contributor

I can get status 200 from https://unpkg.com/marked@0.3.6 by curl script. So browser cache seems to be not cause. But it will be good to describe until *.js file.

@Xinyi2016 , @xuanlv2 , @huojianzhatian , would you confirm below fix is effective to load annotation page, please?

Before

<script src="https://unpkg.com/marked@0.3.6"></script>
<script src="https://unpkg.com/lodash@4.16.0"></script>

After

<script src="https://unpkg.com/marked@0.3.6/lib/marked.js"></script>
<script src="https://unpkg.com/lodash@4.16.0/lodash.js"></script>

@xuanlv2
Copy link
Author

xuanlv2 commented Dec 23, 2018

@Xinyi2016 thank you sooo much!
It works for me now!
@icoxfog417

@serzh
Copy link
Contributor

serzh commented Dec 24, 2018

Why don't just use local copies of this js scripts and not rely on external provider?

@Shantanu2k19
Copy link

@xuanlv2 @huojianzhatian
I got the same problem. Here is a quick fix by replacing

<script src="https://unpkg.com/marked@0.3.6"></script>
<script src="https://unpkg.com/lodash@4.16.0"></script>

in the file app\server\templates\annotation\annotation_base.html

with the following paths:

<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.5.2/marked.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.js"></script>

After that, the annotation works well for me.

I made a pull request to fix this bug. Please let me know if you have further issues.

I'm having the same problem. I'm using linux 18.04. The demo works fine, but after logging in I cannot annotate text. The right click or selecting text doesn't work. What should I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants