b8e34cc75b5b655faeab651a8070c068da32c319,tune_decoder.py,,,#,14

Before Change


parser.add_argument("--model-path", default="models/deepspeech_final.pth",
                    help="Path to model file created by training")
parser.add_argument("--logits", default="", type=str, help="Path to logits from test.py")
parser.add_argument("--test-manifest", metavar="DIR",
                    help="path to validation manifest csv", default="data/test_manifest.csv")
parser.add_argument("--num-workers", default=16, type=int, help="Number of parallel decodes to run")
parser.add_argument("--output-path", default="tune_results.json", help="Where to save tuning results")
parser.add_argument("--lm-alpha-from", default=1, type=float, help="Language model weight start tuning")
parser.add_argument("--lm-alpha-to", default=3.2, type=float, help="Language model weight end tuning")

After Change


parser = add_decoder_args(parser)
args = parser.parse_args()

if args.lm_path is None:
    print("error: LM must be provided for tuning")
    sys.exit(1)

model = DeepSpeech.load_model(args.model_path)

saved_output = np.load(args.saved_output)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: b8e34cc75b5b655faeab651a8070c068da32c319
Time: 2019-07-25
Author: sean.narenthiran@digitalreasoning.com
File Name: tune_decoder.py
Class Name:
Method Name:


Project Name: NervanaSystems/nlp-architect
Commit Name: 650a9bb35b4b0796ee90c5ac0b498af54c32c2e3
Time: 2018-05-08
Author: peteriz@users.noreply.github.com
File Name: core_models/intent_extraction/interactive.py
Class Name:
Method Name:


Project Name: NervanaSystems/nlp-architect
Commit Name: 650a9bb35b4b0796ee90c5ac0b498af54c32c2e3
Time: 2018-05-08
Author: peteriz@users.noreply.github.com
File Name: core_models/intent_extraction/train_enc-dec_model.py
Class Name:
Method Name: