Skip to content

Commit

Permalink
give pct_corpus delimiter-sensing powers
Browse files Browse the repository at this point in the history
  • Loading branch information
bhallen committed Dec 9, 2015
1 parent c36e545 commit 7d50600
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion corpustools/command_line/pct_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def main():
'Phonological CorpusTools: corpus object creation CL interface')
parser.add_argument('csv_file_name', help='Name of input CSV file')
parser.add_argument('-f', '--feature_file_name', default = '', type=str, help='Name of input feature file')
parser.add_argument('-d', '--delimiter', default=',', type=str, help='Character that delimits columns in the input file')
parser.add_argument('-d', '--delimiter', default=None, type=str, help='Character that delimits columns in the input file')
# parser.add_argument('-t', '--trans_delimiter', default=None, type=str, help='Character that delimits segments in the input file')

args = parser.parse_args()
Expand Down
2 changes: 1 addition & 1 deletion corpustools/corpus/io/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def load_corpus_csv(corpus_name, path, delimiter,
corpus.set_feature_matrix(feature_matrix)

if annotation_types is None:
annotation_types, _ = inspect_csv(path, coldelim = delimiter)
annotation_types, delimiter = inspect_csv(path, coldelim = delimiter)
for a in annotation_types:
a.reset()

Expand Down

0 comments on commit 7d50600

Please sign in to comment.