Skip to content

Commit

Permalink
TEMPORARILY disable extraction of sequence patterns (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
harisont committed Apr 13, 2023
1 parent 25178cf commit 328b03c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Utils/UDPatterns.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ udTree2udPattern (RTree n []) = AND [
-- no MISC cause I dunno what the second string is supposed to be:
-- https://github.com/GrammaticalFramework/gf-ud/blob/f2705537347b417e37f1ccd156708bf066e790d6/UDPatterns.hs#L49
]
udTree2udPattern (RTree n ts) = AND [
TREE (udTree2udPattern (RTree n [])) (map udTree2udPattern ts),
SEQUENCE $ map udTree2udPattern ns
]
udTree2udPattern (RTree n ts) =
TREE (udTree2udPattern (RTree n [])) (map udTree2udPattern ts)
-- AND [
-- TREE (udTree2udPattern (RTree n [])) (map udTree2udPattern ts),
-- SEQUENCE $ map udTree2udPattern ns
-- ]
where ns = sortBy (\n m -> compare (rootID n) (rootID m)) (RTree n []:ts)

-- | Discard UD columns from an HST pattern, excepts those explicitly listed
Expand Down

0 comments on commit 328b03c

Please sign in to comment.