|
I allowed for some measure of attributed grammars that could direct the parse in Parsley, but I've not found a practical way to implement 2 level van Wijngaard grammars (with all rewriting involved). And while they were probably used in the description of Algol 68 I bet it was human hands that implemented that grammar. That's my problem, is I'd want to cut out the human step. The GLR parser simply returns multiple trees for the different contexts and it's up to the consumer of those trees to select the right tree (and consequently applying context) - that's another route to go rather than 2VW, but 2VW does appeal to me in that it maintains formality and so it's I think possible, if not realistic to compute parsers for those grammars. However, they'd be slow.
Real programmers use butterflies
|
|
|
|
|
Indeed the A68 description was person-made, not mechanically.
It would be interesting though to see with what degree of constraints it would
be possible to handle it mechanically.
The most simple variant is of course an underlying LL(1) grammar with
predicates (or general functions) between symbols in the rules, predicates
that solely depend on the left context.
However, as soon as you are able - what you are - to generate a multitude of parse trees
you can evaluate constraints in a later stage and delete the trees where the
predicate results are false. The question is of course not whether or not it is theoretically
possible but whether or not you can formulate (levels of) constraints to make it practical.
For AG's is is pretty well known how to limit them such that the attributes can be computed
is a given number of scans over the tree, so given a finite amount of trees and a finite
amount of scans per tree to see whether or not the tree is viable, extracting the valid tree is - in principle - solvable. Assuming in natural language processing the basic elements to
parse and interpret are sentences, that should not give to many problems.
I do not know much about natural language processing, I do know though that most sentences
can be parsed in (many) different ways depending on the context. Context here in a very broad sense! (Due to sloppiness by most speakers the sentences spoken are inherently ambiguous
and require knowledge of the background of the speaker to be able to extract the precise intention of the spoken words.)
My examples would be in Dutch, so probably not very meaningful to you
Anyway, good luck with you parser (parsing) development, although I am not very active in that field anymore, I'll keep an eye on your progress
I
|
|
|
|
|
Member 12982558 wrote: However, as soon as you are able - what you are - to generate a multitude of parse trees
you can evaluate constraints in a later stage and delete the trees where the
predicate results are false.
GLR parsing allows for precisely that, but the trick is determining which tree to use.
As I understand it, parsing using 2VW is generally polynomial time complexity. I'm not sure how that bakes out in the real world as I haven't implemented 2VW but my initial thought is it's probably impractical for large, real world grammars. I am sure that the grammar size is related to the performance, given how it works.
Real programmers use butterflies
|
|
|
|
|
“Quote: Abusive treatment given to plant base (11)
Answer is molestation.
As nobody has played the past couple of days I’ll leave one of you to add the solution.
|
|
|
|
|
Pompey 3 wrote: Abusive treatment given to plant base (11)
Plant base = Station?
Treatement given to = Mole???
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Abusive treatment - molestation
Plant - mole as in spy
Base - station
Thinking I’m overthinking them then?
Easy one tomorrow
|
|
|
|
|
Pompey 3 wrote: Thinking I’m overthinking them then? Definitely.
|
|
|
|
|
^If the right-pond people are complaining, you can imagine how the rest of us feel.
Let's just say fair but cruel. If you can get past plant base = stalk, stem, root... you have a chance, though getting from plant to mole is tough.
If you're ever finished with software, send some of them to British newspapers.
|
|
|
|
|
No we don't want them - I'm with you I was thinking stem,stalk etc... would never have thought ( nor have I ever come across mole as plant ) of mole
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
Well that was the point to throw you. Do you not remember DDs hard ones?
Oh has turned you all into welsh sissy’s
|
|
|
|
|
SPACEX - ISS Docking Simulator[^]
See if you can spot the easter egg...
One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.
|
|
|
|
|
Is it the round chocolate thing wrapped in cheap foil?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
mostly because it was bass-ackward.
tapping say the left side/arrow should mean fire the left thruster (which would spin you right)
not fire the right thruster to spin left.
1. your eye needs to remain on the target, not where your sight is pointing
2. your POV becomes relative from the target to you
3. you then nudge your sight to the target
#2 having effectively reversed your POV (basic human wiring) tells your brain: push on the left side to make my sight move to the right.
ask any sniper -
1. never take your eye off the target
2. your sight/crosshair is attached to you, (i.e. the end of your barrel), your muscles always know where it is.
... need to move to right: push with your left arm, (never pull with the opposite arm)
pestilence [ pes-tl-uh ns ] noun
1. a deadly or virulent epidemic disease. especially bubonic plague.
2. something that is considered harmful, destructive, or evil.
Synonyms: pest, plague, CCP
|
|
|
|
|
Abusive treatment given to plant base (11)
|
|
|
|
|
Only skill enhanced during lockdown was cooking various international cuisines. But I have major issue with 3 things. All website and chef must standardize the cooking parameters
1. Prep time : doesn't include the time to peel off, clean/cut various vegetable etc . 15 mins prep time means 45 for me
2. Meal for 2 or 4: It is so misleading. Either I end up cooking for one person or for the whole village and then some.
3. At the end of all cooking vblog, Please show how your kitchen looked like and then it what is the outcome.
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
|
'Fond' memories of cooking a rice based dish, 'thats not enough, I'll add some more' I could have fed mainland China for a week with the results!
|
|
|
|
|
I did something similar when cooking stew and dumplings, I thought the amount of dumplings I got from the recipe seemed a little on the small side ( I do like my dumplings) so I tripled the dumpling mix.
Big big mistake and it got bigger the longer it cooked.
I try and follow the recipe now rather than making up the proportions on the fly.
|
|
|
|
|
I know, I think the people who write the recipe might have that sort of experience!
|
|
|
|
|
Tony Hill wrote: proportions on the fly.
Nowadays , my ingredients are on the fly. "This is not there, no problem Ill replace with this."
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Through university and graduate school, most of my friends were Chinese. Amongst my post important cooking lessons (given indirectly, except eggroll were taught) I learned the most important rule about cooking and ingredients:
What are the ingredients needed for your dish? : Whatever you have on hand, those are them.
This also goes to what you do when you go shopping - local vegetables - no need for anything rare and exotic. It always works out.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
glennPattonWork wrote: 'thats not enough, I'll add some more'
My nemesis.
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
I get Hello Fresh every week.
I pick three meals for two so I can cook three times and eat six days
Also, cooking for one is pretty much impossible because you'll be left with half of each ingredient.
They deliver the ingredients to my door together with the recipes.
super wrote: 15 mins prep time means 45 for me I've got this same problem!
Maybe a ninja chef cook with razor sharp katanas can cut those onions in < 10 seconds, but it takes me a few minutes at the least.
In the best case it takes me something like 10 minutes longer for 20-30 minutes prep time.
The longer the prep time, the more extra time I need.
So if it says 60 minutes I prepare for 120 (and I avoid those, very few meals are worth that much of my time!)
I've been doing this for almost two years now and it gets a little better, but not much (60 minutes is cut back to 90 though!).
super wrote: Meal for 2 or 4: It is so misleading. A meal for two is literally anything between 1.5 and 3 people.
super wrote: Please show how your kitchen looked like and then it what is the outcome It never looks like the beautifully decorated plate on the picture
|
|
|
|
|
Sander Rossel wrote: I get Hello Fresh every week.
Wow, Never knew that they operate in Germany too.
How is their recipes? complicated?
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|