-
Notifications
You must be signed in to change notification settings - Fork 3
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
NA values break annotator #3
Comments
I just noticed: This only applies to the |
Thanks, I'll look into it! One thing about how you now create the units. Is it intentional that you want to use the headline as the label of the "petition" field? It's actually a bit coincidental that this is now possible (though it shouldn't harm). I initially intended labels to be fixed values for fields, so coders now what field they're working in (which mainly makes sense in the annotation mode where you label texts). For adding things like headlines, my current idea was to have two main approaches.
|
I totally agree that it does not make a lot of sense to use the headlines for this. Markdown is a better idea for sure. Still it would be good to make sure NA values are either transformed into something that annotinder can deal with or Let me know which one you prefer and I can do a PR. |
Perhaps it's best for now to throw an error for an NA (which we should be able to just add in eval_value in create_units.r). For user experience it might be nice if it automatically infers NA as an empty string IF it concerns a string value, but not sure how easy it is to implement this in R with the current design. I went a bit overboard in allowing expressions for all field attributes (value, label, style settings), and not sure how easy it is to infer types. Perhaps it's easier to solve this in the Typescript client. The benefit would then be that the solution immediately works for other clients (e.g., in Python). So if we for now just throw an error for NA's, we might just remove this once the client handles missing values properly. |
Reprex:
First two units work normally, the third stops the annotation process and leaves me with a blank white browser window.
The text was updated successfully, but these errors were encountered: