BLKSerene/Wordless

View on GitHub
wordless/wl_nlp/wl_token_processing.py

Summary

Maintainability
C
B
-3 hrs
Test Coverage

Avoid deeply nested control flow statements.
New

                    for sentence_seg in sentence:
                        for i, token in enumerate(sentence_seg):
                            if token in stop_words:
                                sentence_seg[i] = ''
        else:
Severity: Major
Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    New

                        for sentence_seg in sentence:
                            for i, token in enumerate(sentence_seg):
                                if token.lower() in stop_words:
                                    sentence_seg[i] = ''
    
    
    Severity: Major
    Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      New

                          for token in sentence_seg:
                              token.tag = token.tag.lower()
      
          # Words
          if settings['words']:
      Severity: Major
      Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Fixed

        Severity: Major
        Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Fixed

          Severity: Major
          Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Fixed

            Severity: Major
            Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Fixed

              Severity: Major
              Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Fixed

                Severity: Major
                Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Fixed

                  Severity: Major
                  Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Fixed

                    Severity: Major
                    Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Fixed

                      Severity: Major
                      Found in wordless/wl_nlp/wl_token_processing.py - About 45 mins to fix

                        There are no issues that match your filters.

                        Category
                        Status