Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoontz committed Aug 3, 2024
1 parent b964e65 commit b4dec11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/menard/lexiconfn.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
(map (fn [rule]
(let [{u :u [from to] :p} rule]
(when (re-find from surface)
(log-fn (str "FOUND with from: " from))
(log-fn (str "matched surface: " surface " with regexp from: " from " and to: " to "; so finally: " (string/replace surface from to)))
{:canonical (string/replace surface from to)
:u u}))))
(filter #(not (nil? %)))
Expand All @@ -339,6 +339,7 @@
;; canonical form (i.e. have {:canonical C} for some member of the set of tuples T.
;; First we get this set L:
(mapcat (fn [tuple]
(log/debug (str "looking at tuple: " tuple))
(->>
(get lexicon (:canonical tuple))

Expand Down

0 comments on commit b4dec11

Please sign in to comment.