How to use HuggingFace’s Transformers.js to distill messy dictionary definitions down to a clean array of 1-3 word definitions?
Summarize this set of definitions into a set of 1-3 word definitions, removing or merging duplicate or similar definitions where applicable. Omit direct wylie text or otherwise meaningless text. It’s okay if the definition is longer than 3 words if it can’t easily be shortened. Send the definitions as a JSON array of strings under the “definitions” key, and send the proposed part-of-speech under the “type” field, formatted in lowercase unless it is a proper name, and don’t use abbreviations where they can be easily expanded to the normal word. Put the simplest 1-3 word definition first. That’s it: [JSONArray]