Git Product home page Git Product logo

Comments (4)

ogrergo avatar ogrergo commented on August 11, 2024

I think maybe adding a "toString()" to: Morpheme, FlexionSet, Polymorpheme, Lexeme, Role, SyntagmaticFunction and Word that return the IEML string.
difficulty:

  1. the morpheme, and composing USL have to be written in the IEML order, do we use the API to render the usl or do we implement the feature ?

from ieml-reasoner.

vletard avatar vletard commented on August 11, 2024

The issue with toString() is that it makes no difference between units that can produce USLs and units that cannot. I would rather go with a toUSL() method in some interface that Word, Polymorpheme and Morpheme would implement but not the others.

As for rewriting the generator, I would go for yes. I think it would be beneficial for detecting issues in the generation process and also be a potential basis for porting the python library.

from ieml-reasoner.

ogrergo avatar ogrergo commented on August 11, 2024

There is just a point that bother me : in that library, the name "USL" will refer to :

  • the string representation of an IEML object
  • maybe the name of the super class of all IEML Object

If that the case, maybe calling it, toUSLString() ?
In the python lib, I also used this function as the hash method of USL python objects (in addition to the str magic method)

from ieml-reasoner.

vletard avatar vletard commented on August 11, 2024

No problem with naming the method toUSLString().

In my understanding, the USL is the character string encoding an IEML object. However, not all of them have an USL representation, that's why the super class is not called USL, but IEMLUnit.
Let me know if I got something wrong.

from ieml-reasoner.

Related Issues (4)

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.