openeventdata / petrarch2

Another next-generation event coding platform.
MIT License
71 stars 43 forks source link

Strict documentation/freezing of parse tree input is needed #17

Closed johnb30 closed 8 years ago

johnb30 commented 8 years ago

This sentence codes:

1) '(S (NP (NNP GERMANY ) ) (VP (VBD INVADED ) (NP (NNP FRANCE ) ) ) ) '

This sentence doesn't:

2) '(S (NP (NNP GERMANY ) ) (VP (VBD INVADED ) (NP (NNP FRANCE ) ) ) ) '

The needed input looks like:

3) (ROOT (S (NP (NNP GERMANY)) (VP (VBD INVADED) (NP (NNP FRANCE)))))

The difference is in the space between the parentheses. This has apparently changed at some point since a lot of helper software I have has broken so the format of the parse tree needs to be 1) documented and 2) frozen.

johnb30 commented 8 years ago

Actually the input to do_coding needs to look like sentence 1, but hypnos would send a sentence that looks like 2 or 3. (Though apparently Github is killing the spacing on the examples.....basically 2 has more spaces than 1)

johnb30 commented 8 years ago

Closing because this doesn't matter/was a different error.