allenai / papermage

library supporting NLP and CV research on scientific papers
https://papermage.org
Apache License 2.0
665 stars 52 forks source link

API fix - Empty layers #54

Open kyleclo opened 10 months ago

kyleclo commented 10 months ago
  1. To avoid @soldni type checking horrors, let's add something akin to .get()
  2. We may still want to represent fields as None to separate them from [] or Layer(entities=[])