melhadad / fuf Goto Github PK
View Code? Open in Web Editor NEWFunctional Unification Formalism
License: GNU General Public License v2.0
Functional Unification Formalism
License: GNU General Public License v2.0
I understand the manual hasn't been updated in a while (as noted in release notes). Still, I'm trying to use it. The description of normalize-fd
doesn't work as expected:
(normalize-fd '((a ((a1 1)))
(a ((alt (((a1 2))
((a2 2))))))
(a nil)
({a a3} 3)))
; Debugger entered on #<TYPE-ERROR expected-type: LIST datum: :I>
After poking around a bit, it seems like the following is closer to what was meant (for that example fd):
(filter-flags (u-disjunctions '((a ((a1 1)))
(a ((alt (((a1 2))
((a2 2))))))
(a nil)
({a a3} 3)) nil))
((A ((A1 1) (A2 2) (A3 3))))
I was unable to find any usages of normalize-fd
(in the code base) with which to better understand its meaning. It seems one may need different normalization functions for input and grammar fd's:
(filter-flags (u-disjunctions (get-test 'ir01) nil))
((CAT S) (PROT ((N ===))) (VERB ((V ===))) (GOAL ((N ===))))
So the previous method doesn't work so well on that input fd. But prep-input2
does:
(prep-input2 (get-test 'ir01))
((CAT S) (PROT ((N ((LEX "John"))))) (VERB ((V ((LEX "like")))))
(GOAL ((N ((LEX "Mary"))))))
But then prep-input2
doesn't work well on the previous grammar-like fd:
(prep-input2 '((a ((a1 1)))
(a ((alt (((a1 2))
((a2 2))))))
(a nil)
({a a3} 3)))
; Debugger entered on #<TYPE-ERROR expected-type: LIST datum: :I>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.