-
Notifications
You must be signed in to change notification settings - Fork 7
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
Allow printing tags without full tracing #90
Comments
Ping @unhammer |
So you're running a pipeline that uses |
if I understand correctly the problem is
doesn't give the tags, while if we use -t it does give tags
but is noisy if a rule actually hit:
|
This is running after the generator, so we do have to get rid of the tags to avoid them ending up in the output shown to the user. Also, I suppose you only want tags on the stuff we couldn't generate? |
It's exactly this, thanks.
Yes, tags should only appear for lexical units that cannot be generated. The generator is running right before this and trying to generate a surface form, so the input to cg-proc -g -n will only contain tags in cohorts if there's a generation error in the previous step of the pipeline. |
Well, there will also be tags on readings if there are variant tags (in addition to the input tags which are there since we use lt-proc -b on the generator):
(that's the input to |
You're right, of course. For some reason I had assumed these were just removed, but they are tags after all. I suppose we could distinguish between invalid and valid readings by checking if there's a |
Since commit a9c7675, tags are not printed unless tracing is enabled. However, since CG is now used in many Apertium pairs during generation to handle preferences, tags may be necessary without full tracing.
Tags are specially useful when running a testvoc. If no tags are printed, only the internal lemma with # is shown, which is difficult to debug. Enabling tracing with
-t
helps in this sense, but also adds excessive information that the postgenerator does not handle properly.I suggest adding a new flag to print tags, regardless of tracing, or printing tags by default again (unless it is really preferable not to print tags by default).
Thanks!
The text was updated successfully, but these errors were encountered: