diff --git a/passphrase.nimble b/passphrase.nimble index 93cb60a..b60679a 100644 --- a/passphrase.nimble +++ b/passphrase.nimble @@ -33,7 +33,7 @@ task(dictionary, "Generate dictionary from BNC XML files"): echo output.strip().splitlines()[^1] -task(pack, "Pack dictionary into fixed-width file and compress"): +task(pack, "Compress dictionary file"): echo "Packing dictionary" echo runCmd("nim c --run src/dictionary.nim data/dictionary.txt data/dictionary.pack") diff --git a/src/scanxml.nim b/src/scanxml.nim index cfd5a42..6e956df 100644 --- a/src/scanxml.nim +++ b/src/scanxml.nim @@ -67,7 +67,7 @@ iterator iterWords*(filename: string): string = when isMainModule: - let path = r"C:\Users\Joe\Documents\Code\words\BNC\2554\download\Texts\A\A0\A00.xml" + let path = r"C:\Users\Joe\Documents\Code\passphrase\data\BNC\2554\download\Texts\A\A0\A00.xml" var count = 0 for word in iterWords(path): inc count