- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Tue, 18 Mar 2025 13:15:49 +0000
- To: public-ixml@w3.org
- Message-Id: <1742303709666.3158247183.1500261506@cwi.nl>
which I would rather not have to do.
By which I mean, that this error should at best be a warning.
Steven
On Tuesday 18 March 2025 13:50:26 (+01:00), Steven Pemberton wrote:
Looks like you had a great discussion in the status reports section. Sorry
I missed it.
Bethan says: "What I'm interested in working on are tools that will treat
your grammar as a generator rather than a recognizer."
I've written several of these in the past (for instance, when I wrote a
version of Eliza, the Rogerian psychotherapist, I wrote another program to
generate random paranoid ramblings for Eliza to respond to
(https://cwi.nl/~steven/Talks/2024/09-oxford/ai.html#L2734)
In fact, they are quite easy to write, since it is just a recursive random
path through the grammar tree. This is the complete code, where 'thing' is
either a terminal or nonterminal ('choice' returns a random element of a
sequence, in this case returning a random alternative from a rule):
HOW TO GENERATE thing
FROM grammar:
SELECT:
nonterminal(thing):
FOR symbol
IN choice grammar[thing]:
GENERATE symbol FROM grammar
ELSE:
WRITE thing, "
"
And you generate one rambling with "GENERATE '<sentence>' FROM sentences"
Steven
On Tuesday 04 March 2025 16:42:47 (+01:00), Norm Tovey-Walsh wrote:
> Hi folks,
>
> Draft minutes are online:
>
> https://www.w3.org/2025/03/04-ixml-minutes.html
>
> Be seeing you,
> norm
>
> --
> Norm Tovey-Walsh
> Saxonica
>
>
Received on Tuesday, 18 March 2025 13:15:55 UTC