forked from organicmaps/organicmaps
[search] Tools and documentation now correctly use .jsonl instead of .json.
This commit is contained in:
parent
c53cceb9f8
commit
fdc8e91408
4 changed files with 7 additions and 7 deletions
|
@ -27,17 +27,17 @@ This document describes how to use the tools for search quality analysis.
|
|||
i) Run gen-samples.lisp script to get search queries with lists of
|
||||
vital or relevant responses in JSON format. For example:
|
||||
|
||||
./gen-samples.lisp < samples.lisp > samples.json
|
||||
./gen-samples.lisp < samples.lisp > samples.jsonl
|
||||
|
||||
ii) Run features_collector_tool from the build directory.
|
||||
For example:
|
||||
|
||||
features_collector_tool --mwm_path path-to-downloaded-maps \
|
||||
--json_in samples.json \
|
||||
--json_in samples.jsonl \
|
||||
--stats_path /tmp/stats.txt \
|
||||
2>/dev/null >samples.csv
|
||||
|
||||
runs search engine on all queries from samples.json, prints
|
||||
runs search engine on all queries from samples.jsonl, prints
|
||||
useful info to /tmp/stats.txt and generates a CSV file with
|
||||
search engine output on each query.
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ using Relevance = search::Sample::Result::Relevance;
|
|||
|
||||
namespace
|
||||
{
|
||||
char const kJSON[] = "JSON files (*.json)";
|
||||
char const kJSON[] = "JSON Lines files (*.jsonl)";
|
||||
} // namespace
|
||||
|
||||
MainView::MainView(Framework & framework) : m_framework(framework)
|
||||
|
|
|
@ -44,7 +44,7 @@ using namespace storage;
|
|||
|
||||
DEFINE_string(data_path, "", "Path to data directory (resources dir).");
|
||||
DEFINE_string(mwm_path, "", "Path to mwm files (writable dir).");
|
||||
DEFINE_string(out_path, "samples.json", "Path to output samples file.");
|
||||
DEFINE_string(out_path, "samples.jsonl", "Path to output samples file.");
|
||||
DEFINE_string(dataset_type, "name",
|
||||
"Dataset type: name (search hotel by name) or address (search hotel by address).");
|
||||
DEFINE_string(address_dataset_path, "", "Path to address dataset.");
|
||||
|
|
|
@ -46,8 +46,8 @@ size_t constexpr kMaxSamplesPerMwm = 20;
|
|||
|
||||
DEFINE_string(data_path, "", "Path to data directory (resources dir).");
|
||||
DEFINE_string(mwm_path, "", "Path to mwm files (writable dir).");
|
||||
DEFINE_string(out_buildings_path, "buildings.json", "Path to output file for buildings samples.");
|
||||
DEFINE_string(out_cafes_path, "cafes.json", "Path to output file for cafes samples.");
|
||||
DEFINE_string(out_buildings_path, "buildings.jsonl", "Path to output file for buildings samples.");
|
||||
DEFINE_string(out_cafes_path, "cafes.jsonl", "Path to output file for cafes samples.");
|
||||
DEFINE_double(max_distance_to_object, kMaxDistanceToObjectM,
|
||||
"Maximal distance from user position to object (meters).");
|
||||
DEFINE_double(min_viewport_size, kMinViewportSizeM, "Minimal size of viewport (meters).");
|
||||
|
|
Loading…
Add table
Reference in a new issue