def expand_parentheses(sent):
return SentenceTreeParser(sent).expand_parentheses()<EOL>
['1', '(', '2', '|', '3, ')'] -> [['1', '2'], ['1', '3']]
For example:

Will it (rain|pour) (today|tomorrow|)?

---->

Will it rain today?
Will it rain tomorrow?
Will it rain?
Will it pour today?
Will it pour tomorrow?
Will it pour?

Args:
    sent (list<str>): List of tokens in sentence
Returns:
    list<list<str>>: Multiple possible sentences from original