Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
文書の文法をチェックすることは、明快さ、プロ意識、正確さを確保するために重要です。 よく書かれた文書は肯定的な印象を残し、誤解を避ける。 文法チェックは、エラーを迅速に特定して修正するのに役立ち、時間を節約し、品質を向上させます。
Aspose.Wordsを使用すると、ユーザーはAiModelType列挙にリストされているOpenAI、Google、およびClaudeモデルのファミリを使用して、文法をチェックし、文書のエラーを検出できます。 CheckGrammarメソッドを使用して、文書内のテキストを分析し、文法上の問題を強調表示します。
次のコード例は、Aspose.WordsのGPT-4o miniモデルを使用して文法をチェックする方法を示しています:
Document doc = new Document("Big document.docx");
String apiKey = System.getenv("API_KEY");
// Use OpenAI generative language models.
IAiModelText model = (OpenAiModel)AiModel.create(AiModelType.GPT_4_O_MINI).withApiKey(apiKey);
CheckGrammarOptions grammarOptions = new CheckGrammarOptions();
grammarOptions.setImproveStylistics(true);
Document proofedDoc = model.checkGrammar(doc, grammarOptions);
proofedDoc.save("AI.AiGrammar.docx");
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.