Comments (4)
I think maybe adding a "toString()" to: Morpheme, FlexionSet, Polymorpheme, Lexeme, Role, SyntagmaticFunction and Word that return the IEML string.
difficulty:
- 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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ieml-reasoner.