a651b0632f8f9ac9dbcff6c041d29e886ce54bd1,scripts/restruct.py,,main,#Any#,32

Before Change


    parser.add_argument("--graph_out", nargs="?", type=str, default="",
        help="HTML graphical output filename.")
    // parser.add_argument("--abduction", action="store_true", default=False)
    parser.add_argument("--abduction", nargs="?", type=str, default="no",
        choices=["no", "naive", "spsa"],
        help="Activate on-demand axiom injection (default: no axiom injection).")
    parser.add_argument("--gold_trees", action="store_true", default=False)
    args = parser.parse_args()

    logging.basicConfig(level=logging.WARNING)

After Change



    labels = []
    if args.doc_labels != "":
        if os.path.exists(args.doc_labels):
            with codecs.open(args.doc_labels, "r", "utf-8") as fin:
                for line in fin:
                    try:
                        l = json.loads(line.strip())
                    except ValueError:
                        l = {"label" : line.strip()}
                    labels.append(l)
        else:
            print("File does not exist: {0}. Not using labels.".format(
                args.doc_labels), file=sys.stderr)

    parser = etree.XMLParser(remove_blank_text=True)
    doc_orig = etree.parse(args.sem, parser)

    sentences_orig = doc_orig.xpath("//sentence")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: mynlp/ccg2lambda
Commit Name: a651b0632f8f9ac9dbcff6c041d29e886ce54bd1
Time: 2017-05-30
Author: pascual@nii.ac.jp
File Name: scripts/restruct.py
Class Name:
Method Name: main


Project Name: vatlab/SoS
Commit Name: a8a37622f0ef987ca83c9b401700d0fcbece9b70
Time: 2016-12-12
Author: ben.bog@gmail.com
File Name: sos/__main__.py
Class Name:
Method Name: get_convert_parser


Project Name: dmlc/gluon-nlp
Commit Name: aeb516494daa207720b428072ab49eeea7bfff75
Time: 2019-06-13
Author: xshiab@ust.hk
File Name: scripts/text_generation/sequence_sampling.py
Class Name:
Method Name: