News for hackers. Stuff that matters.
Re:Show HN: Subsequential Transducer for Efficient Text Rewr... by k2xl on Wednesday July 05, 2017 @11:25AM (#14703128)
Could someone explain why this is better than simple string substitution? Is regular string substitution much slower than this?
Re:Show HN: Subsequential Transducer for Efficient Text Rewr... by binarymax on Wednesday July 05, 2017 @01:42PM (#14704549)
I am not yet 100% certain so I requested full-text access to read the paper, but I can say that a naive approach to string substitution will certainly be less performant than this, and offer less flexibility in replacement complexity without significant effort.

The reason being that in a naive approach, a vocabulary of size M and a document of token size N is an O(m*n) operation in the best case - while this is claimed to be an operation of O(2n).

Re:Show HN: Subsequential Transducer for Efficient Text Rewr... by jaytaylor on Wednesday July 05, 2017 @12:38PM (#14703893)
Came here to ask the same question, I'm not clear on what functionality this offers beyond a simple k-v substitution.