mathrok
Version:
AI-powered symbolic mathematics library combining traditional Computer Algebra System (CAS) capabilities with natural language processing for math problem solving
40 lines • 1.07 kB
TypeScript
/**
* Natural Language Processing for mathematical expressions
* Converts natural language queries to mathematical expressions
*/
import type { NLPInput, NLPOutput, NLPPattern, MathConfig } from '../../types/ai.js';
/**
* NLP Processor implementation
*/
export declare class NLPProcessor {
private readonly config;
private readonly patterns;
constructor(config: MathConfig);
/**
* Process natural language input
*/
process(input: NLPInput): Promise<NLPOutput>;
/**
* Get supported languages
*/
getSupportedLanguages(): readonly string[];
/**
* Set processing language
*/
setLanguage(language: string): void;
/**
* Add custom pattern
*/
addPattern(pattern: NLPPattern): void;
/**
* Remove custom pattern
*/
removePattern(id: string): void;
private normalizeText;
private replaceMathematicalTerms;
private extractIntentAndEntities;
private matchPattern;
private generateAlternatives;
private detectLanguage;
}
//# sourceMappingURL=index.d.ts.map