Re: Ability Text Grammar Induction
Posted: 09 Aug 2015, 18:25
Ohi MageKingMageKing17 wrote:When I was working on Incantus, I wound up spending some time making the oracle parser create ability code automatically, by parsing the text.
This code, as far as I can tell, never made it into any of the source archives or repositories, because it was part of the web editor, the source for which was not released (and currently doesn't seem to be working on my site; probably due to Django updates).
So I thought I'd put it on pastebin here: http://pastebin.com/FMB7Xaqy
While this is rather out of date (last updated at the end of August in 2012, and Magic templating has changed quite a bit since then), it did manage to parse a significant number of cards without need of human input to correct it. It's possible somebody might find it useful for something, so I don't care what you do with it as long as you credit Incantus and myself if you do anything based on it.
Yep, I remember your parser also. That (and any other parser or any other relevant M:tG program I can find) is getting a reference in my dissertation, as prior work (that's a good thing eh?). Since it's an academic project I'd be absolutely required to cite it as your work if I were to use it anyway, so no worries about that. I ain't using your work without citing- that would be plagiarism and my ass would be grass :/
The thing is, I kind of moved away from the supervised approach in the last few weeks and now I have a program that can learn a grammar from examples, without any prior knowledge - it doesn't need an existing grammar anymore. Today in fact I just had a bit of a breakthrough as I realised what I need to do to make the grammar a fully hierarchical grammar (rather than just a set of fragments of a grammar which is what I had until now).
I'll keep you guys updated once I have something that others beside me can use.