James on Homeopathic nonsense crops up… Rod Gardner on Homeopathic nonsense crops up… James on Homeopathic nonsense crops up… Rod Gardner on Homeopathic nonsense crops up… James on Bootstrap CSS Framework and a…
Category Archives: Python
Those in the know will be very aware that I have had a lot of time on my hands recently. In that time I have chosen to learn various bar scams or magic tricks and also to read up on … Continue reading
I haven’t seen any actual code for this up so I thought I’d put something up. Detecting a follow-up query is actually quite simple if you make a few assumptions. In the code I’ll give we assume that: Any query … Continue reading
When writing IQABOT (see here) I needed to undo the tokenization of a rewritten query. Below is the code for a very simple Python function to “untokenize” some text.