Skip to content

Commit

Permalink
Enable logging operations in model file to show model initialization …
Browse files Browse the repository at this point in the history
…configs
  • Loading branch information
SecroLoL committed Jan 9, 2024
1 parent 39f9c98 commit d4d1f33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stanza/models/lemma_classifier/model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import torch
import torch.nn as nn
import os
import logging
from torch.nn.utils.rnn import pad_sequence, pack_padded_sequence, pad_packed_sequence
from stanza.models.common.char_model import CharacterModel, CharacterLanguageModel
from typing import List, Tuple
Expand All @@ -10,6 +11,9 @@
from stanza.models.lemma_classifier.base_model import LemmaClassifier
from stanza.models.lemma_classifier.constants import ModelType

logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')


class LemmaClassifierLSTM(LemmaClassifier):
"""
Model architecture:
Expand Down

0 comments on commit d4d1f33

Please sign in to comment.