v2.1.0
- New feature: Delimit sentences with XML tags (via the command line option --sentence-tag TAGNAME or by passing xml_sentences="TAGNAME" to the constructor). When using this option with XML input, SoMaJo tries hard to produce well-formed XML as output. To achieve this, some tags will need to be closed and re-opened at sentence boundaries. In this paragraph, for example, the italic region contains a sentence boundary:
SoMaJo will close the i tag before the end of the sentence and re-open it afterwards:
<p>Hi <i>there! How</i> are you?</p>
<p> <s> Hi <i> there ! </i> </s> <s> <i> How </i> are you ? </s> </p>