Merge pull request #2 from google/master

pull code from google master
This commit is contained in:
resec 2017-07-20 09:43:50 +08:00 коммит произвёл GitHub
Родитель 8cbc7fccc6 e540f5cbbd
Коммит 8ff52671f2
3 изменённых файлов: 7 добавлений и 9 удалений

Просмотреть файл

@ -2,18 +2,17 @@ Want to contribute? Great! First, read this page (including the small print at t
### Before you contribute
Before we can use your code, you must sign the
[Google Individual Contributor License Agreement]
(https://cla.developers.google.com/about/google-individual)
[Google Individual Contributor License Agreement](https://cla.developers.google.com/about/google-individual)
(CLA), which you can do online. The CLA is necessary mainly because you own the
copyright to your changes, even after your contribution becomes part of our
copyright to your changes even after your contribution becomes part of our
codebase, so we need your permission to use and distribute your code. We also
need to be sure of various other things—for instance that you'll tell us if you
need to be sure of various other things—for instance, that you'll tell us if you
know that your code infringes on other people's patents. You don't have to sign
the CLA until after you've submitted your code for review and a member has
approved it, but you must do it before we can put your code into our codebase.
Before you start working on a larger contribution, you should get in touch with
us first through the issue tracker with your idea so that we can help out and
possibly guide you. Coordinating up front makes it much easier to avoid
possibly guide you. Coordinating up-front makes it much easier to avoid
frustration later on.
### Code reviews
@ -22,6 +21,4 @@ use Github pull requests for this purpose.
### The small print
Contributions made by corporations are covered by a different agreement than
the one above, the
[Software Grant and Corporate Contributor License Agreement]
(https://cla.developers.google.com/about/google-corporate).
the one above, the [Software Grant and Corporate Contributor License Agreement](https://cla.developers.google.com/about/google-corporate).

Просмотреть файл

@ -69,6 +69,7 @@ int main(int argc, char *argv[]) {
sentencepiece::io::InputBuffer input(filename);
while (input.ReadLine(&line)) {
if (line.empty()) {
output.WriteLine("");
continue;
}
process(line);

Просмотреть файл

@ -66,7 +66,7 @@ DEFINE_string(normalization_rule_name, "nfkc",
"Choose from nfkc or identity");
DEFINE_string(normalization_rule_tsv, "", "Normalization rule TSV file. ");
DEFINE_bool(add_dummy_prefix, kDefaultNormalizerSpec.add_dummy_prefix(),
"Add dummy whitespace at the begging of text");
"Add dummy whitespace at the beginning of text");
DEFINE_bool(remove_extra_whitespaces,
kDefaultNormalizerSpec.remove_extra_whitespaces(),
"Removes leading, trailing, and "