UniversalDataTool / udt-format

A simple universal data description format for datasets, tailored for interfacing with humans.
https://universaldatatool.com
MIT License
20 stars 14 forks source link

NER example JSON does not work #7

Closed DSLituiev closed 4 years ago

DSLituiev commented 4 years ago

I am figuring out how to import my own annotations. Using this example linked from the import window ("See the UDT JSON format"), I am getting an error:

Screen Shot 2020-10-07 at 15 06 45

I see that the issue is probably because of // comments. After fixing that I am running into an issue with question marks, and then with the fact that text, label and other tags are not quoted.

It would be great to have a minimal working example that one can plug-and-play.

After massaging it to make it swallow it, I am not able to find where that example went. When I go to the "Label" page, there still 0 documents there. How can I find the imported sample now?

DSLituiev commented 4 years ago

Also it is not clear what is the difference between "samples" and "examples". Providing annotations with either of them seems to have no effect -- only plain text remains if imported with "samples". But "examples" seem to be not imported at all.

Is it expected behaviour? Would it be a good idea to document it?

seveibar commented 4 years ago

Hey @DSLituiev, sorry for the slow response. The JSON samples were a bit hastily written, they're not valid "JSON" but they are valid javascript.

seveibar commented 4 years ago

The "examples" array is also no longer used. These will be updated.

seveibar commented 4 years ago

I've made the updates to make this easier to read and copy and paste into the UDT tool.