Refined run_giza and extract_trees