Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode hotwords in C++ side #828

Merged
merged 17 commits into from
May 20, 2024
Prev Previous commit
Next Next commit
Fix pthread in android; kotlin api
  • Loading branch information
pkufool committed May 16, 2024
commit ac2929548e2ef272bc904c5d64217cbbd3eb9cc8
16 changes: 8 additions & 8 deletions cmake/simple-sentencepiece.cmake
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
function(download_simple_sentencepiece)
include(FetchContent)

set(simple-sentencepiece_URL "https://github.com/pkufool/simple-sentencepiece/archive/refs/tags/v0.5.tar.gz")
set(simple-sentencepiece_URL2 "https://hub.nauu.cf/pkufool/simple-sentencepiece/archive/refs/tags/v0.5.tar.gz")
set(simple-sentencepiece_HASH "SHA256=10d3c79adae00073e7eb739271fe71ecbdfc6506b2a3124bad5651afc6f5b1cb")
set(simple-sentencepiece_URL "https://github.com/pkufool/simple-sentencepiece/archive/refs/tags/v0.6.tar.gz")
set(simple-sentencepiece_URL2 "https://hub.nauu.cf/pkufool/simple-sentencepiece/archive/refs/tags/v0.6.tar.gz")
set(simple-sentencepiece_HASH "SHA256=8b0d8afab5a76e4921d244dccfb0a1809c6951f617d5cf38cda1536e7c07b3c8")

# If you don't have access to the Internet,
# please pre-download simple-sentencepiece
set(possible_file_locations
$ENV{HOME}/Downloads/simple-sentencepiece-0.5.tar.gz
${CMAKE_SOURCE_DIR}/simple-sentencepiece-0.5.tar.gz
${CMAKE_BINARY_DIR}/simple-sentencepiece-0.5.tar.gz
/tmp/simple-sentencepiece-0.5.tar.gz
/star-fj/fangjun/download/github/simple-sentencepiece-0.5.tar.gz
$ENV{HOME}/Downloads/simple-sentencepiece-0.6.tar.gz
${CMAKE_SOURCE_DIR}/simple-sentencepiece-0.6.tar.gz
${CMAKE_BINARY_DIR}/simple-sentencepiece-0.6.tar.gz
/tmp/simple-sentencepiece-0.6.tar.gz
/star-fj/fangjun/download/github/simple-sentencepiece-0.6.tar.gz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
4 changes: 2 additions & 2 deletions sherpa-onnx/kotlin-api/OfflineRecognizer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ data class OfflineModelConfig(
var provider: String = "cpu",
var modelType: String = "",
var tokens: String,
var modelingUnit: String,
var bpeVocab: String,
var modelingUnit: String = "",
var bpeVocab: String = "",
)

data class OfflineRecognizerConfig(
Expand Down
Loading