Closed milk-bottle-liyu closed 5 years ago
Hi,
thanks for reporting. You are right, the function is missing - we removed it with the last refactors and forgot to update the docs + add it somewhere else. Will try to fix that asap.
Here is what the function used to looked like: https://github.com/comtravo/ctparse/blob/f4638af8448c7fc59a87d71c8d33b6bcb0abf8fa/ctparse/ctparse.py#L579
With some minor tweaks it should be possible to run it.
Thanks, Mika! This commit sovles my problem, but I got 2 more questions, and this is about the latest version, not the commit you offered.
this line output Xs full of '\Xs.append([str(p) for p in parse.production[:i]])
Maybe you should look into the problem
@public1024 there is a bug in run_corpus
(as you noted it's about id
, which is a function). It will be soon fixed as part of this PR
https://github.com/comtravo/ctparse/pull/71
The PR will also include the training code as well
Regarding the question number 2:
we are aware of such discrepancies, but consistent scores between retrains is something we are actively working on
Hi, according to your doc, we should call regenerate_model after updating the rules,. But, I cann't find the function throw out the repository. So what should I do after updating the rules