Back

MeCab Japanese analyzer in your web browser

#4
yogert909 Wrote:I have a feature request, if it's not too much trouble of course. I need to batch process thousands of text files and save them out with an appended file name. Any chance a file upload / batch processor could be added easily?
While I think about how to do this effectively, a short-gap might be to append all your files into a single one, with file separation markers, i.e., `for file in *.txt; do echo "=== $file ==="; cat $file >> all.texts; done` and copy-paste that into MeCab. I just pasted a 280kb file (Natsume Soseki's Botchan) into MeCab wakati mode, and it produced the output immediately, and I'll test it some more later, see how it handles e.g., 15 MB inputs. (Firefox is supposed to run Emscripted code a little faster (10~20% faster than Chrome), thanks to asm.js.)
Reply

Messages In This Thread