rasa/nlu/featurizers/dense_featurizer/lm_featurizer.py

Summary

Maintainability
C
1 day
Test Coverage
A
99%

File lm_featurizer.py has 579 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from __future__ import annotations
import numpy as np
import logging

from typing import Any, Text, List, Dict, Tuple, Type
Severity: Major
Found in rasa/nlu/featurizers/dense_featurizer/lm_featurizer.py - About 1 day to fix

    Function _get_model_features_for_batch has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def _get_model_features_for_batch(
    Severity: Minor
    Found in rasa/nlu/featurizers/dense_featurizer/lm_featurizer.py - About 45 mins to fix

      Function _validate_sequence_lengths has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def _validate_sequence_lengths(
      Severity: Minor
      Found in rasa/nlu/featurizers/dense_featurizer/lm_featurizer.py - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status