I need to understand whether it is better to use AI algorithms (ML, DL, etc.) instead of the classic parser (based onto grammars with regular expression and automaton) for the following task: structuring in XML an unstructured plain text.
The text is a legal document, so the structure is well defined and a classic parser could do a good job.
In the case AI could be a viable way, what would be an appropriate approach for the task?