jonorthwash / ud-annotatrix

GNU General Public License v3.0
61 stars 49 forks source link

Graph is not shown in Chrome #512

Open leky40 opened 1 year ago

leky40 commented 1 year ago

Does anyone have a problem of using Annotatrix in Chrome now? Graph is not shown when using Chrome. Could anyone suggest how to fix this problem?

ftyers commented 1 year ago

Can you give the CoNLL-U that you're trying to view? Or at least some more details?

jonorthwash commented 1 year ago

@leky40, one thing you could try is ctrl+0. Sometimes the graph might be displayed entirely off-screen or is zoomed in or out too far to see. That keyboard shortcut will reset the view.

leky40 commented 11 months ago

I use Mac. And these are what I am having a problem now -- no graphs are shown in Safari, Firefox and Chrome. I tried what @jonorthwash suggested, but it's not working.

Safari Firefox Google Chrome

any other suggestions?

Thank you

nschneid commented 11 months ago

For me (on Mac), scrolling the mouse wheel to zoom out usually helps if it's not displaying.

leky40 commented 11 months ago

@nschneid Thank you. But it's not working. I tried everything, still not working.

One weird thing is that after running command line: cd ud-annotatrix npm run server open Firefox and go to localhost:5361

it shows all the files I have been working till last night, I wanted to continue where I stopped. I clicked on such file. All the sentences I did are just gone. And then I realized I forgot to get online. So I did and redid all the these steps. All the annotated sentences in this file are completely gone.

I tried it with Chrome and Safari, they are gone.

I checked the folder ud-annotatrix in my Mac, they are gone too.

It's really strange.

any suggestions to get those sentences back?

And these days I have received the message "error to connect to server" while working on my files. Could this be the reason?

jonorthwash commented 11 months ago

ctrl+0 usually only works if you change focus outside of the textbox. From your screenshot it's not entirely clear that those sentences have parsed graphs—I'd need to see one of the other tabs.

Treebanks save to browser storage, not to disk (unless you're running the server—but it sounds like you're running the tool in browser-only mode). And that data stored is different for different locations that you run Annotatrix from. However, it's known that there is buggy behaviour recalling treebanks from browser storage. It's recommended that you copy annotated material from Annotatrix after using the tool to prepare it.

If you open the inspector (F12 in most browsers), you may be able to find various revisions of your data in browser storage. If you're able to dump all the browser storage data for Annotatrix, I could probably extract it for you. Instructing you on how to extract it might also be possible, but I expect would take a lot of back-and-forth.

leky40 commented 11 months ago

Sorry for late reply.

I attached a few more different screenshots with the other tabs.

I think I have run the sever mode. The folder, ud-annotatrix, is saved in my Mac and when I checked the folder corpora, all the annotated sentences saved as json files. And what I have annotated is saved there.

I don't know which server mode you mentioned is. Could you suggest? I need UD-Annotatrix to develop my Thai treebank for my thesis. I don't want to change the tool because I am used to UD-Annotatrix.

The inspector F12 is not working in Mac, I guess. I just clicked right on the browser and it showed the data. I have no idea what it is though.

I can start over to annotate my corpus. And I am doing word segmentation in TextEdit now. But when it comes to POS and syntactic annotation levels, I need UD Annotatrix. Could you help me to get the stable version?

Screenshot 2023-10-25 at 15 54 49 Screenshot 2023-10-25 at 15 54 38 Screenshot 2023-10-25 at 15 54 56
jonorthwash commented 10 months ago

@leky40, what happens if you put the same sentence in the interface at https://jonorthwash.github.io/ud-annotatrix/ ? This will always be the latest version.

As for why it's not displaying, I suspect it's just zoomed or panned so you can't see the graph. Try clicking in the graph area and typing 0 (the number zero key).

leky40 commented 9 months ago

@jonorthwash Thank you for the help.

With this suggestion of yours "As for why it's not displaying, I suspect it's just zoomed or panned so you can't see the graph. Try clicking in the graph area and typing 0 (the number zero key).", I can see the graphs.

I have not tried this latest interface: https://jonorthwash.github.io/ud-annotatrix/, but this one would work better than the localhost one I have been using?

To enable me work on my thesis without losing all of my annotated sentences, should I use this interface rather than the localhost one which I downloaded from the Github page?