# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. """ convert a parallel text corpus from n-based alignment to id-based alignment """ from sys import stderr from os.path import splitext, join from daeso.utils.cli import ArgumentParser from daeso.ptc.document import HitaextDoc parser = ArgumentParser(description=__doc__) parser.add_argument("corpus", nargs="+", default="parallel text corpus", help="") parser.add_argument("-V", "--verbose", action="store_true", help="verbose output") args = parser.parse_args() if args.verbose: print >> stderr, "Reading corpus from", args.corpus