-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb79eb8
commit c4bb43c
Showing
4 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "phrase" | ||
version = "0.3.4" | ||
version = "0.3.5" | ||
description = "Fast significant term and phrase learning and labeling" | ||
authors = ["Stuart Axelbrooke <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -873,6 +873,8 @@ fn transform_inner(inbuf: &mut Input, outbuf: &mut Output, mode: ParseMode, deli | |
fn transform_csv(inbuf: &mut std::io::Read, outbuf: &mut std::io::Write, delim: String, text_fields: &Vec<String>, label_fields: &Vec<String>) { | ||
let mut reader = csv::Reader::from_reader(inbuf); | ||
let mut writer = csv::Writer::from_writer(outbuf); | ||
writer.write_record(reader.headers().expect("Couldn't read header of input file")) | ||
.expect("Couldn't write header"); | ||
let text_idxs: Vec<usize> = header_indexes(&mut reader, text_fields); | ||
let label_idxs: Vec<usize> = header_indexes(&mut reader, label_fields); | ||
for record in reader.records() { | ||
|
@@ -1342,7 +1344,7 @@ fn normalize_label(label: &Option<String>) -> Option<String> { | |
|
||
fn main() { | ||
let matches = clap_app!(phrase => | ||
(version: "0.3.4") | ||
(version: "0.3.5") | ||
(author: "Stuart Axelbrooke <[email protected]>") | ||
(about: "Detect phrases in free text data.") | ||
(setting: clap::AppSettings::ArgRequiredElseHelp) | ||
|