BLKSerene/Wordless

View on GitHub
wordless/wl_nlp/wl_nlp_utils.py

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

                    if prefer_raw:
                        # Always use original tokens
                        results_modified.extend(tokens_raw_temp)
                    # eg. POS tagging
                    else:
Severity: Major
Found in wordless/wl_nlp/wl_nlp_utils.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if len_raw_temp_tokens == len_processed_temp_tokens:
                            results_modified.extend(results_temp)
                        elif len_raw_temp_tokens < len_processed_temp_tokens:
                            results_modified.extend(results_temp[:len_raw_temp_tokens])
                        elif len_raw_temp_tokens > len_processed_temp_tokens:
    Severity: Major
    Found in wordless/wl_nlp/wl_nlp_utils.py - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status