From 116556bc08b3c75654e0765276e3617af6869b74 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 29 Jan 2020 11:52:57 +0100 Subject: [PATCH] Remove unused files. --- create_corpus_file.py | 16 ---------------- foo.sh | 1 - 2 files changed, 17 deletions(-) delete mode 100644 create_corpus_file.py delete mode 100644 foo.sh diff --git a/create_corpus_file.py b/create_corpus_file.py deleted file mode 100644 index 31bee7a..0000000 --- a/create_corpus_file.py +++ /dev/null @@ -1,16 +0,0 @@ -import argparse -import xml.etree.ElementTree as ET - -parser = argparse.ArgumentParser() -parser.add_argument('-i', dest='input_file', required=True) -parser.add_argument('--author', dest='author', required=True) -parser.add_argument('--publishing_year', dest='publishing_year', required=True) -parser.add_argument('--title', dest='title', required=True) -args = parser.parse_args() - -element_tree = ET.parse(args.input_file) -text_node = element_tree.find('text') -text_node.set('author', args.author) -text_node.set('publishing_year', args.publishing_year) -text_node.set('title', args.title) -element_tree.write(args.input_file) diff --git a/foo.sh b/foo.sh deleted file mode 100644 index 6364269..0000000 --- a/foo.sh +++ /dev/null @@ -1 +0,0 @@ -sadf