Jump to content

help with cfg parser!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Guest_ASDF_guy_*

Guest_ASDF_guy_*
  • Guests
I got a lexicalized probablistic context free grammar for English, and I'm trying to implement the rules in Python to get a parser working, but I can't figure out how the rules in the grammar are represented.

I've uploaded the file--I know LPCFG rules are generally of the form X -> Y Z followed by a probability, but I can't see that in this file. If anyone has any idea how to make sense of this, let me know. I'd appreciate it greatly.

Thanks!

Attached Files



#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Have you tried adding up ALL the initial numbers?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog