Skip to content

Commit c05fdef

Browse files
author
Bruno Berisso
authored
Merge pull request #34 from tryolabs/add_words_and_code_improvements
New: `add(words)` API and some code improvements
2 parents d67fcdd + 86af70a commit c05fdef

File tree

9 files changed

+307
-190
lines changed

9 files changed

+307
-190
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FORWARD F AO R W ER D
2+
GO G OW
3+
TEN T EH N
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Language model created by QuickLM on Mon Jan 23 09:11:27 EST 2017
2+
Copyright (c) 1996-2010 Carnegie Mellon University and Alexander I. Rudnicky
3+
4+
The model is in standard ARPA format, designed by Doug Paul while he was at MITRE.
5+
6+
The code that was used to produce this language model is available in Open Source.
7+
Please visit http://www.speech.cs.cmu.edu/tools/ for more information
8+
9+
The (fixed) discount mass is 0.5. The backoffs are computed using the ratio method.
10+
This model based on a corpus of 1 sentences and 5 words
11+
12+
\data\
13+
ngram 1=5
14+
ngram 2=4
15+
ngram 3=3
16+
17+
\1-grams:
18+
-1.0000 </s> -0.3010
19+
-1.0000 <s> -0.2553
20+
-1.0000 FORWARD -0.2553
21+
-1.0000 GO -0.2553
22+
-1.0000 TEN -0.2553
23+
24+
\2-grams:
25+
-0.3010 <s> GO 0.0000
26+
-0.3010 FORWARD TEN 0.0000
27+
-0.3010 GO FORWARD 0.0000
28+
-0.3010 TEN </s> -0.3010
29+
30+
\3-grams:
31+
-0.3010 <s> GO FORWARD
32+
-0.3010 FORWARD TEN </s>
33+
-0.3010 GO FORWARD TEN
34+
35+
\end\

TLSphinx.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
309309
GCC_WARN_UNUSED_FUNCTION = YES;
310310
GCC_WARN_UNUSED_VARIABLE = YES;
311-
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
311+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
312312
MTL_ENABLE_DEBUG_INFO = YES;
313313
ONLY_ACTIVE_ARCH = YES;
314314
SDKROOT = iphoneos;
@@ -352,7 +352,7 @@
352352
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
353353
GCC_WARN_UNUSED_FUNCTION = YES;
354354
GCC_WARN_UNUSED_VARIABLE = YES;
355-
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
355+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
356356
MTL_ENABLE_DEBUG_INFO = NO;
357357
SDKROOT = iphoneos;
358358
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -382,7 +382,7 @@
382382
);
383383
INFOPLIST_FILE = TLSphinx/Info.plist;
384384
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
385-
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
385+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
386386
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
387387
LIBRARY_SEARCH_PATHS = (
388388
"$(PROJECT_DIR)/Sphinx/lib/pocketsphinx",
@@ -416,7 +416,7 @@
416416
);
417417
INFOPLIST_FILE = TLSphinx/Info.plist;
418418
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
419-
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
419+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
420420
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
421421
LIBRARY_SEARCH_PATHS = (
422422
"$(PROJECT_DIR)/Sphinx/lib/pocketsphinx",

TLSphinx/Config.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import Foundation
1010
import Sphinx.Base
1111

12-
open class Config {
12+
public final class Config {
1313

1414
var cmdLnConf: OpaquePointer?
1515
fileprivate var cArgs: [UnsafeMutablePointer<Int8>?]
@@ -22,7 +22,7 @@ open class Config {
2222
return [strdup(name),strdup(value)]
2323
}
2424

25-
cmdLnConf = cmd_ln_parse_r(nil, ps_args(), CInt(cArgs.count), &cArgs, STrue)
25+
cmdLnConf = cmd_ln_parse_r(nil, ps_args(), CInt(cArgs.count), &cArgs, STrue32)
2626

2727
if cmdLnConf == nil {
2828
return nil
@@ -38,7 +38,7 @@ open class Config {
3838
}
3939

4040

41-
open var showDebugInfo: Bool {
41+
public var showDebugInfo: Bool {
4242
get {
4343
if cmdLnConf != nil {
4444
return cmd_ln_str_r(cmdLnConf, "-logfn") == nil

0 commit comments

Comments
 (0)