Better segment handling
To ease the handling of the alignment segments two thing might be done:
- First, let the creation of segments be an option (the default one if you want). To let the service work without segment creation. Those segment are only usefull if you want to see the alignement. If the translation is onlt done for indexing purpose, it useless.
- Second, it would be great to sort the segments after their creation. (Collections.sort(text.getSegment(), new SegmentComparator()); )