FinancialBERTOptions<T>
Options & Configuration · AiDotNet.Models.Options
Configuration options for FinancialBERT model - a domain-adapted BERT for comprehensive financial analysis.
Inheritance: ModelOptions → FinancialBERTOptions<T>
For Beginners
FinancialBERT provides comprehensive financial NLP:
The Key Insight: While FinBERT focuses on sentiment and SEC-BERT on regulatory filings, FinancialBERT provides broader coverage of the financial domain including analyst reports, market commentary, corporate communications, and financial news.
What Problems Does FinancialBERT Solve?
- Multi-task financial text classification
- Extracting insights from analyst reports
- Processing corporate press releases
- Analyzing market commentary and research notes
- Understanding financial terminology across contexts
Key Benefits:
- Broader domain coverage than specialized models
- Multi-task learning capability
- Effective for general financial NLP applications
- Good baseline for financial text understanding
How It Works
FinancialBERT is a BERT model adapted for broad financial domain understanding, including news analysis, market commentary, analyst reports, and general financial text.
Reference: Huang et al., “FinancialBERT: A Pre-trained Language Model for Financial Text Mining”, 2023.
Constructors
| Constructor | Summary |
|---|---|
FinancialBERTOptions() |
Initializes a new instance with default FinancialBERT configuration. |
FinancialBERTOptions(FinancialBERTOptions<T> other) |
Initializes a new instance by copying from another instance. |
Properties
| Property | Summary |
|---|---|
bool UseMultiTask { get; set; } |
Whether to use multi-task learning (default: false). |
double DropoutRate { get; set; } |
Dropout rate (default: 0.1). |
int HiddenDimension { get; set; } |
Hidden dimension (default: 768 for BERT-base). |
int IntermediateDimension { get; set; } |
Intermediate feed-forward dimension (default: 3072). |
int MaxSequenceLength { get; set; } |
Maximum sequence length in tokens (default: 512). |
int NumAttentionHeads { get; set; } |
Number of attention heads (default: 12). |
int NumClasses { get; set; } |
Number of output classes (default: 3 for sentiment). |
int NumLayers { get; set; } |
Number of transformer layers (default: 12). |
int VocabularySize { get; set; } |
Vocabulary size (default: 30522 for BERT-base). |
string TaskType { get; set; } |
Task type: “sentiment”, “topic”, “entity”, “multi” (default: “sentiment”). |
Methods
| Method | Summary |
|---|---|
void Validate() |
Validates the FinancialBERT options. |