emilmont/pyStatParser — pull request #2 by safehammad (2014-02-04 23:02:45+00:00)
Title: Fix IndexError for some inputs when creating un_chomsky_normal_form.

A contrived example sentence such as the following throws an error when parsed:

"That o'er the files and musters of the war Have glow'd like plated Mars, now bend, now turn, The office and devotion of their view Upon a tawny front."

```python
.../stat_parser/treebanks/normalize.pyc in un_chomsky_normal_form(tree)
57 transformed = False
58 for i in range(2, len(tree)):
---> 59 if sym == tree[i][0]:
60 # Undo (3)
61 tree[i:] = tree[i][1:]

IndexError: list index out of range
```