From c5e715f6e58a9d77e218e37aef62eba644b004b6 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 10 Feb 2016 09:46:59 -0500 Subject: [PATCH] [docs][ci skip] README updates for batch mode, notes about batch testing --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3cf282f7..6e6d9b9a 100644 --- a/README.md +++ b/README.md @@ -244,8 +244,11 @@ cd src/ ./libpostal "Quatre vignt douze Ave des Champs-Élysées" ``` -Currently libpostal requires two input strings, the address text and a language -code (ISO 639-1). +If you have a text file or stream with one address per line, the command-line interface also accepts input from stdin: + +``` +cat some_file | ./libpostal --json +``` Command-line usage (parser) --------------------------- @@ -272,7 +275,7 @@ make check Adding [test cases](https://github.com/openvenues/libpostal/tree/master/test) is easy, even if your C is rusty/non-existent, and we'd love contributions. We use mostly functional tests checking string input against string output. -libpostal also gets periodically battle-tested on tens of millions of addresses in OSM using valgrind to check for memory leaks and other errors. +libpostal also gets periodically battle-tested on tens of millions of addresses from OSM (clean) as well as anonymized queries from a production geocoder (not so clean). During this process we use valgrind to check for memory leaks and other errors. Data files ----------