mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
pt -nub to remove duplicate trees from a list returned e.g. by a parser
This commit is contained in:
@@ -22,6 +22,8 @@ allTreeOps pgf = [
|
||||
Left $ nub . concatMap (paraphrase pgf))),
|
||||
("largest",("sort trees from largest to smallest, in number of nodes",
|
||||
Left $ largest)),
|
||||
("nub",("remove duplicate trees",
|
||||
Left $ nub)),
|
||||
("smallest",("sort trees from smallest to largest, in number of nodes",
|
||||
Left $ smallest)),
|
||||
("subtrees",("return all fully applied subtrees (stopping at abstractions), by default sorted from the largest",
|
||||
|
||||
Reference in New Issue
Block a user