"use server"; import { AsyncRes } from "@/lib/types"; import { NLP } from "sortug-ai"; import ServerWord from "@/zoom/ServerWord"; import { analyzeTHWord, segmentateThai } from "@/pages/api/nlp"; // import db from "../lib/db"; export async function wordAction( text: string, lang: string, ): Promise { console.log(""); return ServerWord({ word: text, lang }); } export async function thaiAnalysis(text: string) { const res = await segmentateThai(text); const res2 = await analyzeTHWord(text); console.log({ res, res2 }); } // export async function ocrAction(file: File): AsyncRes { // const res = await NLP.ocr(file); // return res; // }