[hfst-ospell] 01/02: Imported Upstream version 0.4.0~r4643

Tino Didriksen tinodidriksen-guest at moszumanska.debian.org
Tue Feb 2 16:05:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

tinodidriksen-guest pushed a commit to branch master
in repository hfst-ospell.

commit 82377ae63de8b8e36dbfe804f375225cc88d058f
Author: Tino Didriksen <tino at didriksen.cc>
Date:   Tue Feb 2 16:04:44 2016 +0000

    Imported Upstream version 0.4.0~r4643
---
 hfst-ospell-office.1 | 5 +++--
 office.cpp           | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/hfst-ospell-office.1 b/hfst-ospell-office.1
index 75d6b1c..47cb4f4 100644
--- a/hfst-ospell-office.1
+++ b/hfst-ospell-office.1
@@ -2,10 +2,11 @@
 .SH NAME
 hfst-ospell-office \- Spell checker tool based on HFST
 .SH SYNOPSIS
-.B hfstospell
-[\fIOPTIONS\fR] [\fIZHFST-ARCHIVE\fR]
+.B hfst-ospell-office
+[\fIOPTIONS\fR] \fIZHFST-ARCHIVE\fR
 .SH DESCRIPTION
 Use automata in ZHFST\-ARCHIVE or from OPTIONS to check and correct
+.SH OPTIONS
 .TP
 \fB\-\-verbatim\fR
 Check the input as-is without any transformations
diff --git a/office.cpp b/office.cpp
index a4f2441..522db86 100644
--- a/office.cpp
+++ b/office.cpp
@@ -61,7 +61,7 @@ struct word_t {
 	size_t start, count;
 	UnicodeString buffer;
 };
-std::vector<word_t> words(8);
+std::vector<word_t> words(16);
 std::string buffer;
 UnicodeString ubuffer, uc_buffer;
 size_t cw;
@@ -275,6 +275,7 @@ int zhfst_spell(const char* zhfst_filename) {
 	ZHfstOspeller speller;
 	try {
 		speller.read_zhfst(zhfst_filename);
+		speller.set_time_cutoff(6.0);
 	}
 	catch (hfst_ol::ZHfstMetaDataParsingError zhmdpe) {
 		fprintf(stderr, "cannot finish reading zhfst archive %s:\n%s.\n", zhfst_filename, zhmdpe.what());

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hfst-ospell.git



More information about the debian-science-commits mailing list