From dacb6f81811cac9b210eacb7a9718be631bfc1fd Mon Sep 17 00:00:00 2001 From: aidhog Date: Mon, 24 Apr 2023 16:35:07 -0400 Subject: [PATCH] Update README.md Adding more detailed description of easy arguments, including duplicate removal and keeping original query syntax. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 4ad823d..7e18dcc 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,14 @@ For example, assuming if we want to canonicalise and minimise a text file "queri output the results to "canonicalisedQueries.txt": > java -jar qcan-1.1-jar-with-dependencies.jar easy -f queries.txt -o canonicalisedQueries.txt -m + +If we want to do the same but remove duplicate queries in the output: + +> java -jar qcan-1.1-jar-with-dependencies.jar easy -f queries.txt -o canonicalisedQueries.txt -m -d + +If want to remove duplicate queries from a file based on their canonicalised version, but keep the original query syntax in the output: + +> java -jar qcan-1.1-jar-with-dependencies.jar easy -f queries.txt -o canonicalisedQueries.txt -m -d -k OR you can pass a single query as an argument: @@ -105,6 +113,8 @@ e.g. Options: * -m to enable minimisation/leaning +* -d to remove duplicates based on canonicalised query +* -k to keep original query syntax in the output rather than outputting canonicalised queries (only makes sense with -d to remove duplicates; keeps the first non-duplicated query encountered). ### UCQ Generator Test