yakushima / nsm-dalia Goto Github PK
View Code? Open in Web Editor NEWParser for Natural Semantic Metalanguage
Parser for Natural Semantic Metalanguage
E.g. "another kind" fails but "some other kind" succeeds. "Other kind" also succeeds.
But "something happens in a place" works
Not clear what this means
"say something to people" works. Unfortunately, so does "say something to something."
but "I do not want this" works
Not sure how Zamblera is handling "the"
In Goddard's chart here https://intranet.secure.griffith.edu.au/__data/assets/pdf_file/0019/346033/NSM_Chart_ENGLISH_v19_April_12_2017_Greyscale.pdf
"I want to ___" yields noparse
But it's not that simple. ps("I want you to do something") works fine. Maybe just an issue with the definition of WANT? More likely KNOW. "I want you to do/say something" parses, but not "I want you to know something".
We do have "small" though
again, noparse has "muC" in it
General problem with "another". "at some other times" works
it happens in one moment
a moment before, a moment after
at this moment
but "when I do this" works, so does "at this time"
But works with "do" and "say"
"someone happens somewhere" - no parse. But "someone happens" and "someone happens happens in a place" both parse
"much more" gives noparse("muC more"). "Many more things" works, but not "much more things" -- sam "muC" noparse
"these words say something" DOES work.
Another infinite loop, or very long noparse?
Not sure if this should be included
Inconsistent with plural agreement being enforced elsewhere, maybe no big deal otherwise.
but "before this time" works
$ find . -name '*sentences*'
./demo/eng_sentences.txt
./demo/tpi_sentences.txt
Suggestion: Pick correct sentences file per context in tutorial.txt
"someone says the same thing" works. So does "someone says the same words". Same for feels, wants, knows, does, etc.
Goddard's chart has "say something in other words", for example. "Say something with words" also noparse
Probably a general problem with "'s" possessive though
but "someone wants to say/do something" works
srangely, noparse reports it as "muC of this something". "Many of these things also fails, though with no mangling of "Many".
If you do a ps("I am good") then copy-paste the result into gs(...), NSM-DALIA bombs out. Perhaps it's because starting the windows GUI initializes differently.
Maybe not even a problem?
But "someone died at this time" works
I welcome comments like, you're barking up the wrong tree!
noparse("a other kind").
noparse("a other part").
noparse("a other time").
noparse("a other place").
noparse("one of these people").
noparse("one of these things").
noparse("two of these people").
noparse("two of these things").
noparse("many of these people").
noparse("many of these things").
noparse("this thing is above that thing").
noparse("this thing is below that thing").
noparse("this thing is inside that thing").
noparse("this thing is on the other side of that thing").
noparse("I saw someone in that place").
noparse("at that time").
noparse("before that time").
noparse("after that time").
noparse("a long time after").
I guess it depends on whether we want to enforce syntactic sugar
"Two of these ..." also fails
works if you leave out "the"
Need to check valency options. "Not something" doesn't work. "This is something", "This is not something", "This is not one thing" ... various combinations also fail.
I found a run in bin/cline_interface.pl. I am not sure if its user:run or not.
$ grep run bin/cline_interface.pl
run/0,
the running interface.
%% run is det.
% Procedure run calls init/0, then enters the main loop.
run :- init,loop.
We could get lucky by running init,loop by ourselves.
"they" -> "these people" and it still doesn't work. Seems to go into a very deep search or even (is this possible in Prolog?) an infinite loop
but "someone does this for some time" works
doesn't parse even without "the"
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.