Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The AsposeAI
class integrates external AI models (e.g., from Hugging Face) into OCR recognition results for table layout correction and intelligent postprocessing.
public AsposeAI();
public AsposeAI(ILogger? logger);
You can also pass optional logging and customization callbacks.
IOcrAIPostProcessor
AsposeAI.SetPostProcessor(new TableAIProcessor())
AsposeAI
Core class to load, configure, and apply AI models (e.g., for table correction) to OCR results.
TableAIProcessor
Built-in AI postprocessor that uses a language model to improve table layout detection and formatting.
ILogger logger = new ConsoleLogger(); // can be null
AsposeAIModelConfig modelConfig = new AsposeAIModelConfig
{
AllowAutoDownload = true,
DirectoryModelPath = "D://test",
};
AsposeAI ai = new AsposeAI(logger);
TableAIProcessor processor = new TableAIProcessor(AITableDetectionMode.AUTO)
ai.SetPostProcessor(processor, modelConfig);
ai.RunPostprocessor(res);
Console.WriteLine("CORRECTED RESULT\n");
Console.WriteLine(processor.GetResult()[0].RecognitionText)
ai.Dispose();
Table 2. Result of Polarity of Twitter Dataset Trend Name Positive Sentiments Negative Sentiments Neutral Sentiments Tweets used #GST4India 2427 123 2450 5000 #startupindia 924 192 1384 2500 #SwachBharat 1983 409 2138 4530 #FinBudget 7791 4662 12547 25000 #Digital india 1238 411 3351 5000 #RailwayBudget 1257 618 2115 4000 #MakeInIndia 3383 454 6163 10000 #Kashmir 923 1399 1678 4000 International Conference On Recent Advances In Computer Science, Engineering And Technology 75|Page
| Trend Name | Positive Sentiments | Negative Sentiments | Neutral Sentiments | Tweets used | | --- | --- | --- | --- | --- | | #GST4India | 2427 | 123 | 2450 | 5000 | | #startupindia | 924 | 192 | 1384 | 2500 | | #SwachBharat | 1983 | 409 | 2138 | 4530 | | #FinBudget | 7791 | 4662 | 12547 | 25000 | | #Digital india | 1238 | 411 | 3351 | 5000 | | #RailwayBudget | 1257 | 618 | 2115 | 4000 | | #MakeInIndia | 3383 | 454 | 6163 | 10000 | | #Kashmir | 923 | 1399 | 1678 | 4000 |
Pass ILogger
to constructor to track loading and inference.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.