Allow both tree and sentence in a request.
Add full support for sentences.