Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass through rule parsing error #60

Open
fhieber opened this issue Nov 5, 2014 · 0 comments
Open

pass through rule parsing error #60

fhieber opened this issue Nov 5, 2014 · 0 comments

Comments

@fhieber
Copy link

fhieber commented Nov 5, 2014

Hi,

I am not sure if this problem existed in earlier versions, but at least for the current version there is a problem when translation input contains non-terminal-like symbols, such as "[blabla]" and constructing a pass through grammar. This can happen for example if the tokenizer for foreign languages does for some reason not segment brackets (in my case Japanese).
Here is an example:

echo "[blabla]" | cdec -c cdec.ini
Configured 1 rescoring pass
[num_fn=1 int_alg=FULL]
Adding glue grammar for default nonterminal X and goal nonterminal S
Reading input from STDIN
INPUT: [blabla]
id = 0
Adding pass through grammar
Grammar [X] ||| [blabla] ||| [blabla] ||| PassThrough=1
line 1: LHS and RHS arity mismatch!
Aborted

Inputs like "[ blabla]" are fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant