FinancialNLPModelBase<T>

Base Classes · AiDotNet.Finance.Base

Base class for all financial NLP models, implementing the dual-mode pattern.

Inheritance: NeuralNetworkBase<T> → FinancialModelBase<T> → FinancialNLPModelBase<T>

Implements: IFinancialNLPModel<T>, IShapeContract

Known derived types: BloombergGPT<T>, FinBERTTone<T>, FinBERT<T>, FinGPT<T>, FinMA<T>, FinancialBERT<T>, InvestLM<T>, SECBERT<T>

Properties

Property Summary
int HiddenDimension { get; }
int MaxSequenceLength { get; }
int NumSentimentClasses { get; }
int VocabularySize { get; }

Methods

Method Summary
Dictionary<string, T> GetFinancialMetrics()
IReadOnlyList<OutputAxisContract> OutputAxesFor(int inputRank)
ModelInputShapeConstraint GetInputShapeConstraint() Declares the token-id geometry this model accepts, in place of the [batch, sequence, features] geometry a numeric financial model publishes.
SentimentResult<T>[] AnalyzeSentiment(string[] texts)
Tensor<T> AnalyzeSentiment(Tensor<T> tokenIds)
Tensor<T> GetEmbeddings(Tensor<T> tokenIds)
Tensor<T> GetSequenceEmbedding(Tensor<T> tokenIds)
int[] Tokenize(string text, int? maxLength)
string Detokenize(int[] tokenIds)