Giter Site home page Giter Site logo

melhadad / fuf Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 3.0 2.63 MB

Functional Unification Formalism

License: GNU General Public License v2.0

Common Lisp 64.79% CSS 0.06% TeX 2.81% HTML 0.37% PostScript 14.96% Jupyter Notebook 17.00% Batchfile 0.01%

fuf's People

Contributors

melhadad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fuf's Issues

`normalize-fd` apparently unused and not like the manual

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.