Skip to content

feat: add punctuation C++ API - #2510

Merged
csukuangfj merged 6 commits into
k2-fsa:masterfrom
Aruxxxi:feature/add-punctuation-cpp-api
Aug 19, 2025
Merged

csukuangfj merged 6 commits into
k2-fsa:masterfrom
Aruxxxi:feature/add-punctuation-cpp-api

Conversation

@Aruxxxi

@Aruxxxi Aruxxxi commented Aug 19, 2025 •

Copy link
Copy Markdown
Contributor

描述

添加了punctuation的C++ API接口。

修改内容

  • 在 cxx-api.h 中添加了 OfflinePunctuation 类声明
  • 在 cxx-api.cc 中实现了 OfflinePunctuation 类的方法
  • 提供了 Create、Destroy 和 AddPunctuation 方法
  • 遵循现有的C++ API设计模式

修改类型

  • 新功能
  • Bug修复
  • 文档更新

测试

  • 已测试
  • 需要测试

检查清单

  • 代码符合项目规范
  • 添加了必要的测试
  • 更新了相关文档
  • 遵循现有的C++ API设计模式

Summary by CodeRabbit

  • New Features

    • Added an offline punctuation API in the C++ wrapper for automatic punctuation restoration.
    • New methods to create/destroy instances and convert raw text into punctuated output.
    • Configurable model path, thread count, compute provider, and debug options.
  • Examples

    • Added a C++ example demonstrating configuration and usage of offline punctuation.
    • Example now included as a buildable executable in the examples build.

@coderabbitai

coderabbitai Bot commented Aug 19, 2025 •

Copy link
Copy Markdown

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Adds an OfflinePunctuation C++ wrapper: new config structs and OfflinePunctuation class in header; implements Create, private constructor, Destroy, and AddPunctuation in source mapping to C APIs; adds a punctuation example and a CMake target.

Changes

Cohort / File(s) Summary
C++ API Declarations
sherpa-onnx/c-api/cxx-api.h
Adds OfflinePunctuationModelConfig and OfflinePunctuationConfig; declares OfflinePunctuation (inherits MoveOnly<OfflinePunctuation, SherpaOnnxOfflinePunctuation>) with Create(const OfflinePunctuationConfig&), Destroy(const SherpaOnnxOfflinePunctuation*), AddPunctuation(const std::string&), and a private explicit constructor.
C++ API Implementation
sherpa-onnx/c-api/cxx-api.cc
Implements OfflinePunctuation::Create (maps to SherpaOnnxOfflinePunctuationConfig and calls SherpaOnnxCreateOfflinePunctuation), adds private constructor wrapping SherpaOnnxOfflinePunctuation*, Destroy (calls SherpaOnnxDestroyOfflinePunctuation), and AddPunctuation (calls SherpaOfflinePunctuationAddPunct, converts returned char* to std::string, frees it with SherpaOfflinePunctuationFreeText).
Examples: source
cxx-api-examples/punctuation-cxx-api.cc
Adds example demonstrating creating OfflinePunctuation, configuring model path/threads/provider, calling AddPunctuation on sample bilingual text, and printing original and punctuated output.
Examples: build
cxx-api-examples/CMakeLists.txt
Adds executable punctuation-cxx-api and links it to sherpa-onnx-cxx-api.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    actor Client
    participant CXX as OfflinePunctuation (C++)
    participant C as C API
    participant Model as Punctuation Engine

    rect rgba(200,235,255,0.25)
    note over Client,CXX: Create
    Client->>CXX: OfflinePunctuation::Create(config)
    CXX->>C: SherpaOnnxCreateOfflinePunctuation(mapped_config)
    C-->>CXX: SherpaOnnxOfflinePunctuation*
    CXX-->>Client: OfflinePunctuation wrapper
    end

    rect rgba(220,255,220,0.15)
    note over Client,CXX: AddPunctuation
    Client->>CXX: AddPunctuation(text)
    CXX->>C: SherpaOfflinePunctuationAddPunct(text)
    C->>Model: Process text
    Model-->>C: punctuated char*
    C-->>CXX: char*
    CXX->>C: SherpaOfflinePunctuationFreeText(char*)
    CXX-->>Client: std::string result
    end

    rect rgba(255,235,200,0.15)
    note over Client,CXX: Destroy
    Client->>CXX: Destroy(ptr)
    CXX->>C: SherpaOnnxDestroyOfflinePunctuation(ptr)
    C-->>CXX: (freed)
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

I nibble code like clover sprigs,
New dots and commas on my twigs—
A wrapper cradles each soft thread,
I hop, I stitch, the text is read.
Small paws clap; the silence sings. 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between abb746f and 9281e48.

📒 Files selected for processing (1)
  • cxx-api-examples/CMakeLists.txt (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • cxx-api-examples/CMakeLists.txt
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
sherpa-onnx/c-api/cxx-api.cc (2)

842-844: Use the passed-in pointer in Destroy() for consistency and clarity

Current implementation ignores the parameter and uses p_. Most wrappers here call the underlying C destroy with the provided pointer. Align for consistency and to avoid surprises if Destroy() is ever called outside MoveOnly’s destructor.

Apply this diff:

 void OfflinePunctuation::Destroy(const SherpaOnnxOfflinePunctuation *p) const {
-  SherpaOnnxDestroyOfflinePunctuation(p_);
+  SherpaOnnxDestroyOfflinePunctuation(p);
 }

846-851: Add a defensive null check in AddPunctuation()

The C API appears to always return a valid buffer, but adding a guard costs nothing and avoids UB if a future change returns nullptr on error.

Apply this diff:

 std::string OfflinePunctuation::AddPunctuation(const std::string &text) const {
-  const char *result = SherpaOfflinePunctuationAddPunct(p_, text.c_str());
-  std::string ans(result);
-  SherpaOfflinePunctuationFreeText(result);
-  return ans;
+  const char *result = SherpaOfflinePunctuationAddPunct(p_, text.c_str());
+  if (!result) {
+    return {};
+  }
+  std::string ans(result);
+  SherpaOfflinePunctuationFreeText(result);
+  return ans;
 }
sherpa-onnx/c-api/cxx-api.h (1)

697-699: Minor grammar: “punctuation” is uncountable here

Nit: singular reads better.

-  // Add punctuations to the input text and return it.
+  // Add punctuation to the input text and return it.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between e536e6e and c052ba7.

📒 Files selected for processing (2)
  • sherpa-onnx/c-api/cxx-api.cc (1 hunks)
  • sherpa-onnx/c-api/cxx-api.h (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (2)
sherpa-onnx/c-api/cxx-api.cc (1)
sherpa-onnx/c-api/c-api.cc (8)
  • SherpaOnnxCreateOfflinePunctuation (1898-1922)
  • SherpaOnnxCreateOfflinePunctuation (1898-1899)
  • SherpaOnnxDestroyOfflinePunctuation (1924-1927)
  • SherpaOnnxDestroyOfflinePunctuation (1924-1925)
  • SherpaOfflinePunctuationAddPunct (1929-1938)
  • SherpaOfflinePunctuationAddPunct (1929-1930)
  • SherpaOfflinePunctuationFreeText (1940-1940)
  • SherpaOfflinePunctuationFreeText (1940-1940)
sherpa-onnx/c-api/cxx-api.h (3)
sherpa-onnx/c-api/cxx-api.cc (19)
  • OfflinePunctuation (839-840)
  • Create (49-111)
  • Create (49-50)
  • Create (287-293)
  • Create (287-288)
  • Create (393-441)
  • Create (393-393)
  • Create (491-533)
  • Create (491-491)
  • Create (606-620)
  • Create (606-607)
  • Create (647-650)
  • Create (647-647)
  • Create (686-712)
  • Create (686-687)
  • Create (776-783)
  • Create (776-779)
  • AddPunctuation (846-851)
  • AddPunctuation (846-846)
sherpa-onnx/python/csrc/offline-punctuation.cc (1)
  • sherpa_onnx (11-51)
sherpa-onnx/csrc/offline-punctuation.cc (1)
  • sherpa_onnx (15-53)
🔇 Additional comments (3)
sherpa-onnx/c-api/cxx-api.cc (1)

827-837: Create() config translation and lifetime handling look correct

  • Zero-initialization + field mapping is consistent with the rest of the C++ wrappers.
  • Passing c_str() is safe here since the C API consumes it during the call.
  • Returning a MoveOnly wrapper around the C pointer follows the existing pattern.
sherpa-onnx/c-api/cxx-api.h (2)

679-689: Config structs are straightforward and align with the C API

The fields match the underlying C config (ct_transformer, num_threads, debug, provider). Defaults mirror conventions elsewhere. Looks good.


690-703: C++ wrapper class shape matches existing MoveOnly pattern

Create/Destroy/AddPunctuation + private explicit ctor are consistent with other components (e.g., TTS, VAD). Public API surface is minimal and clear.

@csukuangfj csukuangfj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Thank you for your contribution!

Can you also add an example to cxx-api-examples to show how to use the added APIs?

@csukuangfj
csukuangfj requested a review from Copilot August 19, 2025 07:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a C++ wrapper API for offline punctuation functionality, enabling automatic punctuation restoration for text input. The implementation follows the existing C++ API design patterns in the codebase.

Key changes:

  • Added OfflinePunctuation class with configuration structs for model settings
  • Implemented core methods for creating, destroying, and processing text with punctuation
  • Provided C++ wrapper interface that bridges to underlying C API functions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
sherpa-onnx/c-api/cxx-api.h Added OfflinePunctuation class declaration and configuration structs
sherpa-onnx/c-api/cxx-api.cc Implemented OfflinePunctuation class methods with C API integration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

OfflinePunctuation::OfflinePunctuation(const SherpaOnnxOfflinePunctuation *p)
: MoveOnly<OfflinePunctuation, SherpaOnnxOfflinePunctuation>(p) {}

void OfflinePunctuation::Destroy(const SherpaOnnxOfflinePunctuation *p) const {

Copilot AI Aug 19, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Destroy method ignores the parameter p and uses the member variable p_ instead. This could lead to incorrect cleanup if the parameter doesn't match the instance's pointer. Either use the parameter p or remove it from the method signature.

Suggested change
void OfflinePunctuation::Destroy(const SherpaOnnxOfflinePunctuation *p) const {
void OfflinePunctuation::Destroy() const {

Copilot uses AI. Check for mistakes.
@Aruxxxi

Aruxxxi commented Aug 19, 2025

Copy link
Copy Markdown
Contributor Author

Looks good to me.

Thank you for your contribution!

Can you also add an example to cxx-api-examples to show how to use the added APIs?

sure!

Comment thread sherpa-onnx/c-api/cxx-api.cc Outdated
: MoveOnly<OfflinePunctuation, SherpaOnnxOfflinePunctuation>(p) {}

void OfflinePunctuation::Destroy(const SherpaOnnxOfflinePunctuation *p) const {
SherpaOnnxDestroyOfflinePunctuation(p_);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you replace p_ with p?

Also, there are existing places in this file that should also be changed to p.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, although i dont know why; i think they are same when use the Destroy method.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (1)
sherpa-onnx/c-api/cxx-api.cc (1)

842-844: Good: Destroy() uses the parameter, not the member

This addresses prior feedback about using the method parameter (p) instead of the member (p_) for destruction and aligns with the pattern requested in earlier review comments.

🧹 Nitpick comments (2)
sherpa-onnx/c-api/cxx-api.cc (2)

827-837: Minor: Align Create() local naming with file convention

Most Create() methods in this file use auto p = ...; return Type(p);. Consider renaming punct to p for consistency and drop the explicit type.

-  const SherpaOnnxOfflinePunctuation *punct = SherpaOnnxCreateOfflinePunctuation(&c);
-  return OfflinePunctuation(punct);
+  auto p = SherpaOnnxCreateOfflinePunctuation(&c);
+  return OfflinePunctuation(p);

824-826: Follow-up: Please add a cxx-api example and minimal doc blurb

Per the review thread, an example in cxx-api-examples showing OfflinePunctuation::Create and AddPunctuation would be helpful. A short README snippet mirroring other APIs would complete the feature.

I can scaffold the example (build targets, snippet, and a minimal README section). Want me to draft that?

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between c052ba7 and 4134ab2.

📒 Files selected for processing (1)
  • sherpa-onnx/c-api/cxx-api.cc (1 hunks)
🔇 Additional comments (1)
sherpa-onnx/c-api/cxx-api.cc (1)

846-851: Ignore C API prefix change suggestion

The functions SherpaOfflinePunctuationAddPunct and SherpaOfflinePunctuationFreeText are correctly declared in sherpa-onnx/c-api/c-api.h and defined in sherpa-onnx/c-api/c-api.cc. There is no symbol named SherpaOnnxOfflinePunctuationAddPunct—renaming would break linkage. Also, the C API always returns a valid buffer (it throws on allocation failure), so no null‐pointer guard is required.

Likely an incorrect or invalid review comment.

@Aruxxxi

Aruxxxi commented Aug 19, 2025

Copy link
Copy Markdown
Contributor Author

Looks good to me.

Thank you for your contribution!

Can you also add an example to cxx-api-examples to show how to use the added APIs?

done

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (3)
cxx-api-examples/punctuation-cxx-api.cc (3)

37-37: Remove incomplete usage note or provide sample output.

The usage text says “The output text should look like below:” but shows nothing after. Either add a sample or drop the line to avoid confusion. Suggest removing it for now.

- The output text should look like below:

41-41: Align model path in code with the usage instructions.

Your usage block shows extracting the ct-transformer model into a directory. The code points to ./models/punctuation.onnx, which may confuse users. Consider matching the path to the extracted model.

-  punctuation_config.model.ct_transformer = "./models/punctuation.onnx";
+  punctuation_config.model.ct_transformer = "./sherpa-onnx-punct-ct-transformer-zh-en-vocab272727-2024-04-12/model.onnx";

35-35: Fix typo in the sample text: “Fantasitic” → “Fantastic”.

Minor polish to the demo input text.

-  "你好吗how are you Fantasitic 谢谢我很好你怎么样呢"
+  "你好吗how are you Fantastic 谢谢我很好你怎么样呢"
-  std::string text = "你好吗how are you Fantasitic 谢谢我很好你怎么样呢";
+  std::string text = "你好吗how are you Fantastic 谢谢我很好你怎么样呢";

Also applies to: 46-46

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 4134ab2 and 0de3192.

📒 Files selected for processing (1)
  • cxx-api-examples/punctuation-cxx-api.cc (1 hunks)
🔇 Additional comments (1)
cxx-api-examples/punctuation-cxx-api.cc (1)

39-50: Example flow looks good and clear.

Creating the config, building the punctuator, applying AddPunctuation, and printing results is straightforward and matches the new API shape.

Comment thread cxx-api-examples/punctuation-cxx-api.cc Outdated

#include "sherpa-onnx/c-api/cxx-api.h"

int32_t main() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Use standard-conforming int main(); int32_t main() may fail without .

C++ requires main to return int. Using int32_t can be non-portable and requires <cstdint> to be included. Simplest fix: use int.

-int32_t main() {
+int main() {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
int32_t main() {
int main() {
🤖 Prompt for AI Agents
In cxx-api-examples/punctuation-cxx-api.cc around line 21, the main function is
declared as int32_t main(), which is non-standard and can fail without including
<cstdint>; change the signature to int main() (and adjust any return statements
if necessary, e.g., return 0) so the program uses the standard-conforming return
type and no extra header is required.

Comment thread cxx-api-examples/punctuation-cxx-api.cc Outdated
@@ -0,0 +1,50 @@
// cxx-api-examples/fire-red-asr-cxx-api.cc

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// cxx-api-examples/fire-red-asr-cxx-api.cc
// cxx-api-examples/punctuation-cxx-api.cc

Please also change it to your info.

Comment thread cxx-api-examples/punctuation-cxx-api.cc Outdated
// Copyright (c) 2025 Xiaomi Corporation

//
// This file demonstrates how to use FireRedAsr AED with sherpa-onnx's C++ API.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the comment or you can delete it since you have already included in the usage info in the code.

Comment thread cxx-api-examples/punctuation-cxx-api.cc Outdated
tar xvf sherpa-onnx-punct-ct-transformer-zh-en-vocab272727-2024-04-12.tar.bz2
rm sherpa-onnx-punct-ct-transformer-zh-en-vocab272727-2024-04-12.tar.bz2

./bin/sherpa-onnx-offline-punctuation \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update it.

Comment thread cxx-api-examples/punctuation-cxx-api.cc Outdated
//
// clang-format on

#include <chrono> // NOLINT

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove unused headers.

Comment thread cxx-api-examples/punctuation-cxx-api.cc Outdated
@@ -0,0 +1,50 @@
// cxx-api-examples/fire-red-asr-cxx-api.cc

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also update cxx-api-examples/CMakeLists.txt to include this file.

Comment thread cxx-api-examples/CMakeLists.txt Outdated
add_executable(nemo-canary-cxx-api ./nemo-canary-cxx-api.cc)
target_link_libraries(nemo-canary-cxx-api sherpa-onnx-cxx-api)

add_executable(punctuation-cxx-api.cc ./punctuation-cxx-api.cc)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
add_executable(punctuation-cxx-api.cc ./punctuation-cxx-api.cc)
add_executable(punctuation-cxx-api ./punctuation-cxx-api.cc)

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 44255d9 and abb746f.

📒 Files selected for processing (2)
  • cxx-api-examples/CMakeLists.txt (1 hunks)
  • cxx-api-examples/punctuation-cxx-api.cc (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • cxx-api-examples/punctuation-cxx-api.cc

Comment thread cxx-api-examples/CMakeLists.txt Outdated
@csukuangfj

Copy link
Copy Markdown
Collaborator

Thanks!

@csukuangfj
csukuangfj merged commit 8fa9f8e into k2-fsa:master Aug 19, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Aug 25, 2025
@bbbyyl

bbbyyl commented Nov 8, 2025

Copy link
Copy Markdown

good job. I will appreciate if someone could contribute the API for onlinePunctuation of c++;
And I also wonder what is the difference betwen online and offline punctuation except we need to use different model file

1 similar comment
@bbbyyl

bbbyyl commented Nov 8, 2025

Copy link
Copy Markdown

good job. I will appreciate if someone could contribute the API for onlinePunctuation of c++;
And I also wonder what is the difference betwen online and offline punctuation except we need to use different model file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants