mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
extract-target-trees.py: update to match current trace format
This commit is contained in:
parent
fe01a02fcb
commit
943f6a9901
@ -110,9 +110,9 @@ def parse_line(s):
|
||||
pattern = r"Trans Opt (\d+) " + \
|
||||
r"\[(\d+)\.\.(\d+)\]:" + \
|
||||
r"((?: \[\d+\.\.\d+\]=\S+ )+):" + \
|
||||
r" (\S+) ->" + \
|
||||
r" (\S+) ->\S+ -> " + \
|
||||
r"((?:\S+ )+):" + \
|
||||
r"((?:\d+-\d+ )*): pC="
|
||||
r"((?:\d+-\d+ )*): c="
|
||||
regexp = re.compile(pattern)
|
||||
match = regexp.match(s)
|
||||
if not match:
|
||||
|
Loading…
Reference in New Issue
Block a user