{"id":662,"date":"2021-10-22T14:43:06","date_gmt":"2021-10-22T13:43:06","guid":{"rendered":"http:\/\/blog.magnusmanske.de\/?p=662"},"modified":"2021-10-22T14:43:06","modified_gmt":"2021-10-22T13:43:06","slug":"autodesc-reloaded","status":"publish","type":"post","link":"http:\/\/magnusmanske.de\/wordpress\/archives\/662","title":{"rendered":"AutoDesc Reloaded"},"content":{"rendered":"<p>A long, long time ago, in a codebase far, far away, I wrote some code to generate automatic descriptions of Wikidata items for <a href=\"https:\/\/reasonator.toolforge.org\/\">Reasonator<\/a>. This turned out to be very useful, and I forked the code into its own tool\/API, <strong><a href=\"https:\/\/autodesc.toolforge.org\/\">AutoDesc<\/a><\/strong>. Many of my tools, including the popular <a href=\"https:\/\/mix-n-match.toolforge.org\/\">Mix-n-match<\/a>, use AutoDesc under the hood.<\/p>\n<p>As the original Reasonator code was in JavaScript, I decided to try a node.js implementation.<\/p>\n<p>This worked reasonably well for a while, but bitrot and changes to the Toolforge ecosystem made it more unreliable over time, and the node.js version is quite deprecated now, even on Toolforge.<\/p>\n<p>A few weeks ago, AutoDesc started to fail completely, that is, it could not be used any longer. Rather than patching the failing code into a new node.js version, I decided to stabelise it by converting it to Python. And by converting, I mean open a text editor and run regular expression search\/replace to change JavaScript into Python. (I did look around for code that can do that automatically, but not much joy).<\/p>\n<p>I am happy to report that, for some days now, the <a href=\"https:\/\/github.com\/magnusmanske\/autodesc_python\">new Python code<\/a> is running on Toolforge. It only does short descriptions for now, but at least you can get <em>something<\/em> from it. The code for the long descriptions is partially ready, but does not actually work yet. I will continue on this as I have time, and I would welcome any help in the form of pull requests.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A long, long time ago, in a codebase far, far away, I wrote some code to generate automatic descriptions of Wikidata items for Reasonator. This turned out to be very useful, and I forked the code into its own tool\/API, AutoDesc. Many of my tools, including the popular Mix-n-match, use AutoDesc under the hood. As [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-662","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/comments?post=662"}],"version-history":[{"count":1,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/662\/revisions"}],"predecessor-version":[{"id":663,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/662\/revisions\/663"}],"wp:attachment":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/media?parent=662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/categories?post=662"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/tags?post=662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}