HNHacker News
TopNewBestAskShowJobs

polm23

12,382 karma · joined May 31, 2012

In Tokyo, working on NLP. You can contact me (no recruiters) at polm@dampfkraft.com.
submissionscomments
polm23··on Ask HN: Cheapest/easiest way to host a static site?
Having been on the HN frontpage several times with my small static site, it doesn't even show up in my monthly billing reports. The main fluctuation is for when I renew domains.
polm23··on Ask HN: Cheapest/easiest way to host a static site?
Is saving $10 over a year worth the time it took you to do the math on that?
polm23··on Ask HN: Cheapest/easiest way to host a static site?
I've been using NFSN for over ten years. Most of my sites with them are static, and it's great that when I'm on the front page of HN I never have to worry about anything, it's just business as usual.
polm23··on Stargazers Map
Since people seem confused...

I didn't make this, I saw it on Twitter and posted it.

I think this is what it does:

- gets list of stargazers (starring users) from Github

- checks user's profile for Location

- uses geolocation via Mapbox

- renders map with Mapbox

A lot of this happens in your browser, so if the repo has many stars they may load progressively. On the other hand I haven't seen it error out.

The Mapbox geolocation API has some quirks - it seems it always returns coordinates for a location, even if it's a random string, so you get things like "somewhere else before" being in the Phillipines, or "Okinawa, Japan" being in Florida. (I guess that has to be some weird US base thing, but still...)

There is definitely some weird JS on the input box, but I am able to type "-" without issue.

polm23··on ISO Standard for Preparing Tea
Ah, I see you are a student of Rikyu.

茶の湯とは ただ湯をわかし茶をたてて のむばかりなる事と知るべし

Tea is naught but this; First you heat the water, Then you make the tea. Then you drink it properly. That is all you need to know.

https://www.atlasobscura.com/foods/matcha-chasen

polm23··on Can’t use iCloud with “true” as the last name
Some more detail on this, with citations, from an ask-a-librarian board (in Japanese).

https://crd.ndl.go.jp/reference/modules/d3ndlcrdentry/index....

polm23··on Can’t use iCloud with “true” as the last name
When foreign names are written in Japanese there are a couple of ways of handling puncutation, and sometimes an equals sign is used. I hadn't actually thought about why it was used, but it seems an interpunct (・) is used where a space would be and equals can be used for an internal hyphen, or for words that are separated by a space but part of the same unit (de Niro).
polm23··on Show HN: Search Kanji by Parts with Instant Feedback
Feel a bit odd submitting a Japanese-only site to HN, but I figure it's useful for language learners too so here we go.

Kanji are often made of up other kanji stuck together. In most electric dictionaries you can search by radicals, but not all kanji are radicals; radicals are typically only minimal, indivisible units. This means that even if you recognize the left and right halves of kanji, for example, you may not be able to search them in a conventional dictionary. Examples of characters where this could be an issue are 蹄, 榎, 鮗.

Kanji Club works around this using kanji composition data, so kanji can be made up of arbitrary other kanji rather than just radicals. As a technical note, the preprocessed data is still only around 2MB, so all the search is in the browser - the whole site is static.

https://commons.wikimedia.org/wiki/Commons:Chinese_character...

I've already found it pretty useful as is, though there's still much left to do. Would love to have any comments on it.

polm23··on Science fiction hasn’t prepared us to imagine machine learning
Ah, found the PDF - the URL changed at some point before disappearing.

https://web.archive.org/web/20190527041657/http://people.csa...

polm23··on Science fiction hasn’t prepared us to imagine machine learning
Regina Barzilay has done some work in this area; I posted slides from a great talk she gave years back a few years ago. The slides seem to be gone and not on Internet Archive sadly...

https://news.ycombinator.com/item?id=20019355

This Twitter thread also has a lot of good stuff.

https://twitter.com/maite_taboada/status/1086415051127308288

polm23··on The new reading stack
It should be noted that the main reason for itch's success as a home for tabletop RPG books is that the main competitor in the field, DriveThruRPG/RPGNow, is a pile of hot garbage with a UI that was bad ten years ago and hasn't changed.
polm23··on Natural language generation: The commercial state of the art in 2020
Ah, that does sound difficult.
polm23··on Natural language generation: The commercial state of the art in 2020
I'm not surprised GPT is awful at that, but there are good ways to do it. Look for papers on "factoid question generation".
polm23··on Natural language generation: The commercial state of the art in 2020
I don't want to suggest you shot off a random comment without actually reading the linked survey. But it spends a whole section discussing that, and why it doesn't see commercial use. Here's a particularly relevant bit:

> Sometimes the results produced by GPT-2 and its ilk are quite startling in their apparent authenticity. More often than not they are just a bit off. And sometimes they are just gibberish. As is widely acknowledged, neural text generation as it stands today has a significant problem: driven as it is by information that is ultimately about language use, rather than directly about the real world, it roams untethered to the truth. While the output of such a process might be good enough for the presidential teleprompter, it would not cut it if you want the hard facts about how your pension fund is performing. So, at least for the time being, nobody who develops commercial applications of NLG technology is going to rely on this particular form of that technology.

polm23··on Natural language generation: The commercial state of the art in 2020
This is a short overview of the state of NLG by Robert Dale, co-author of "Building Natural Language Generation Systems", which is basically the book for NLG.

He give a list of commercial providers and concludes that most of them just offer smart templates. This is the important part:

> To the extent that you can tell from the clues to functionality that are surfaced by these various products, all the tools are ultimately very similar in terms of how they work, which might be referred to as ‘smart template’ mechanisms. There is a recognition that, at least for the kinds of use cases we see today, much of the text in any given output can be predetermined and provided as boilerplate, with gaps to be filled dynamically based on per-record variations in the underlying data source. Add conditional inclusion of text components and maybe some kind of looping control construct, and the resulting NLG toolkit, as in the case of humans and chimpanzees, shares 99% of its DNA with the legal document automation and assembly tools of the 1990s, like HotDocs (https://www.hotdocs.com). As far as I can tell, linguistic knowledge, and other refined ingredients of the NLG systems built in research laboratories, is sparse and generally limited to morphology for number agreement (one stock dropped in value vs. three stocks dropped in value).

That sounds pretty negative, but he emphasizes that putting an easy-to-use UI on well understood technology is meeting real business needs.

At the end he briefly touches on GPT2 and related technology.

polm23··on Ask HN: Why are 5 inch USB floppy drives so uncommon?
I guess that makes sense, but the cheap USB drives you find on Amazon are of recent manufacture, so for some reason it makes sense to keep making them.
polm23··on Ask HN: Why are 5 inch USB floppy drives so uncommon?
I imagine there's little demand for 3.5in drives but they're readily available. Maybe the difference in demand is more than I assume it to be.
polm23··on Open source is stifling progress
He seems to consider himself a "high-functioning autistic", which would make this at least partly self-deprecating.

https://twitter.com/jonathoda/status/960952613507231744

polm23··on Open source is stifling progress
This was so awful I unfollowed the author's RSS feed after following it for his experimental project years ago. Which was closed source and appears to have never released anything.

I know plenty of closed-source tools that provide their authors significant income while benefiting from a healthy relationship with open source. Pico-8, which has a strong community of people who share game code, and Prodigy, which closely integrates with the open-source spaCy, both come to mind.

The spaCy developers' piece on running an open source business from 2017 is a much better approach to the topic.

https://ines.io/blog/spacy-commercial-open-source-nlp

polm23··on Koan: A word2vec negative sampling implementation with correct CBOW update
The word2vec implementation has many details that are unmentioned or at least not emphasized much in the paper. The source is also not very commented if memory serves.

This is another paper that's basically just about some details of word2vec and GloVe and their effects on the results:

Improving Distributional Similarity with Lessons Learned from Word Embeddings - ACL Anthology https://www.aclweb.org/anthology/Q15-1016/

polm23··on Koan: A word2vec negative sampling implementation with correct CBOW update
Several reasons come to mind.

1. The original word2vec is considered a reference implementation, used for benchmarks, so some people might not want it to change much.

2. The original hasn't been updated since 2017, and development was never very interactive.

3. word2vec has been widely reimplemented, and some reimplementations may be more widely used than the original (particularly Gensim).

4. The original had a paper from the very start (rather than being an open source project where a paper came later), so other papers reference it. For future papers that use the koan form, having a paper makes it easy to use in a similar way.

polm23··on Koan: A word2vec negative sampling implementation with correct CBOW update
This is an interesting surprise about good old word vectors. From the README:

> Although continuous bag of word (CBOW) embeddings can be trained more quickly than skipgram (SG) embeddings, it is a common belief that SG embeddings tend to perform better in practice. This was observed by the original authors of Word2Vec [1] and also in subsequent work [2]. However, we found that popular implementations of word2vec with negative sampling such as word2vec and gensim do not implement the CBOW update correctly, thus potentially leading to misconceptions about the performance of CBOW embeddings when trained correctly.

The upshot is that they get similar results with CBOW while training three times faster than skipgram.

Given the popularity of Transformers, and that Fasttext exists, I'm curious as to what inspired them to even try this, but it's certainly an interesting result. There's so much word vector research that relies on quirks of the word2vec implementation.

polm23··on TabFS: Mount your Browser Tabs as a Filesystem
Onetab is great for dealing with that.

https://www.one-tab.com/

polm23··on A Short History of Romaji
cutlet pulls in MeCab, a medium sized C++ library, and at minimum a 250MB dictionary. I think people have run MeCab through emscripten before; you could stick it in an electron app but I wouldn't put it in a browser. More power to you if you can get it working but I think it'd be a big project.
polm23··on A Short History of Romaji
Glad you enjoy the articles. I recognize your handle from other posts here, have we met somewhere else?

I've had clients mention seeing my website or seeing my name in articles elsewhere, but I don't remember any mentioning HN. I've also gotten no reaction the few times I've posted on the hirings posts, even with an excellent endorsement one time. On the other hand people do find my site through search engines and I assume HN links help boost rankings there.

polm23··on A woman who is allergic to water (2016)
There's actually a really specific reason for this. If you have an image it gets shown in link preview on social sites like Facebook and Twitter - this will also work for the article overview on the site if they have one. Links with image previews get shown larger in the feed and get more clicks. So many writers will always try to have an image, no matter how arbitrary.
polm23··on Parsing the Infamous Japanese Postal CSV
I had no idea what you were talking about, but looking it up it does look like it's possible to use phone numbers in navigation systems, primarily numbers of businesses. I was able to find several accounts of the feature using the keywords カーナビ 電話番号検索 - using just ナビ gets a lot of hits for directories of phone numbers (mainly used for identifying spam callers), and using GPS instead of ナビ gets hits for tracking cell phones.

I have never used this and didn't realize it was possible, but I don't drive and rarely take taxis. I can see why this would be popular, especially with tourists - the language isn't a barrier to conveying a number. It also avoids issues with address formatting.

polm23··on Parsing the Infamous Japanese Postal CSV
Oh, that sounds awful. I have a C in my address and sometimes it's fine and sometimes it's a whole thing explaining that it's not 4, it's C.

That said, two-number adresses are pretty common, I'm surprised you run into trouble with that. I live near Tokyo Tower, and even in the heart of Tokyo Minato-ku is only 99.XX% three-digit addresses. Azabu Nagasaka and Azabu Mamiana are tiny neighborhoods that are both still two digits (and Mamiana's name is another weird story...).

polm23··on Parsing the Infamous Japanese Postal CSV
A couple of "favorite" exceptions not on Wikipedia:

House numbers are usually of the form 1-2-3. Places with just two numbers are common, they haven't caught up with the "new" law from the 1962 yet.

Numbers are often written without suffixes, but in most places with three numbers the suffixes are 丁目-番-号. In one city - Wakasa in Fukui - the last two are reversed. I have never been able to find any mention of this at all, let alone why it would be the case.

Some cities are laid out in a clock pattern with slices named after animals of the Chinese Zodiac.

Neighborhoods are typically divided into blocks with numbers (or the number is omitted if there's just one block). But as addresses change over time, sometimes just one block goes away, so there are many places where block 1 no longer exists or there are gaps in the numbering.

On Yahoo Answers I once saw a person who was confused after their local post office adamantly told them one of their two or three numbers had a hyphen in it (so it was like 1-(2-3)) because it represented two joined lots, but that shouldn't be possible.

Mail is always complicated... I worked at a mail store in high school in the States and remember shipping some weird stuff.

polm23··on Parsing the Infamous Japanese Postal CSV
Some of the ghost characters do appear to originate from place names, though that doesn't really have anything to do with the addressing system or any postal authority. Of the ones I checked more closely, like 膤, they tend to refer to things that wouldn't necessarily show in an address, like a hill or something.

https://www.wdic.org/w/CUL/%E8%86%A4 https://www.dampfkraft.com/ghost-characters.html

← PreviousPage 2 of 8Next →