Aspose.Words for .NET OpenAI, Google, Claude AI 모델을 사용하여 문서의 문법 오류를 감지하고 강조 표시합니다. CheckGrammar 메서드는 DOC, DOCX, RTF, PDF, HTML, Markdown, ODT, TXT, EPUB 파일을 분석하고 문법 문제를 표시합니다 — 수동 교정 없이도 깔끔하고 전문적인 콘텐츠를 제공할 수 있도록 도와줍니다.
인증을 위해서는 선택한 AI 제공업체의 API 키가 필요합니다. 지원되는 모델 전체 목록은 API Reference를 참조하세요.
오늘 바로 C# 문법 검사를 시작하세요 — 위의 실시간 데모를 사용해 보세요.
dotnet add package Aspose.Words
복사
using Aspose.Words;
Document doc = new Document("Document.docx");
string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// OpenAI의 생성 언어 모델을 사용하십시오.
AiModel model = AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
CheckGrammarOptions grammarOptions = new CheckGrammarOptions();
grammarOptions.ImproveStylistics = true;
Document proofedDoc = model.CheckGrammar(doc, grammarOptions);
proofedDoc.Save("Output.docx");
using Aspose.Words;
Document doc = new Document("Document.docx");
// Pass an empty string if the self-hosted model does not require an API key.
AiModel model = new CustomAiModel("my-model-24b", "https://your-server.com/v1").WithApiKey("");
CheckGrammarOptions grammarOptions = new CheckGrammarOptions();
grammarOptions.ImproveStylistics = true;
Document proofedDoc = model.CheckGrammar(doc, grammarOptions);
proofedDoc.Save("Output.docx");
class CustomAiModel : OpenAiModel
{
private readonly string mUrl;
internal CustomAiModel(string name, string url) : base(name) { mUrl = url; }
public override string Url => mUrl;
}
시스템에 "Aspose.Words for .NET" 을 설치하는 세 가지 대체 옵션이 있습니다. 귀하의 요구 사항과 유사한 것을 선택하고 단계별 지침을 따르십시오.
우리 제품은 완전히 크로스 플랫폼이며 모든 주요 .NET 구현을 지원합니다.
.NET 코드가 기본 하드웨어나 운영 체제에 의존하지 않고 가상 머신에만 의존하는 한 Windows, macOS, Android, iOS 및 Linux용 모든 종류의 소프트웨어를 자유롭게 개발할 수 있습니다. 해당 버전의 .NET Framework, .NET Core, Windows Azure, Mono 또는 Xamarin 설치했는지 확인하세요.
C#, F#, VB.NET 애플리케이션을 생성하려면 Microsoft Visual Studio, Xamarin 및 MonoDevelop 통합 개발 환경을 사용하는 것이 좋습니다.
자세한 내용은 제품 설명서 를 참조하십시오.