DoodleJZ / HPSG-Neural-Parser

Source code for "Head-Driven Phrase Structure Grammar Parsing on Penn Treebank" published at ACL 2019
https://arxiv.org/abs/1907.02684
MIT License
107 stars 25 forks source link

Using HPSG-Neural-Parser for parsing raw sentence #11

Open disooqi opened 4 years ago

disooqi commented 4 years ago

Hello, I am trying to use your work to parse a raw sentence, but I can't find any sample input files showing the format of the sentence. Should I use conll-U format for the input file and/or what linguistic information do I need to provide i.e. lemma, POS, MWT, ...

I have been working on this issue for few days now and I have tried to pass to parse.sh a raw sentence in a single line, empty dependency tree with POS, and conll-U format but without success.

When I pass the following raw sentence: Which German cities have more than 250000 inhabitants? I get the following parse tree: (SBARQ (WHNP (UNK Which) (UNK German) (UNK cities)) (VP (UNK have) (NP (UNK more) (UNK than) (UNK 250000))) (UNK inhabitants?))

Thanks Mohamed Eldesouki