Toggle Menu
Prev Up Next

# `langchain_community.document_loaders.parsers.language.cobol`.CobolSegmenter

class langchain_community.document_loaders.parsers.language.cobol.CobolSegmenter(code: str)

  Code segmenter for COBOL.

  Attributes

  `DIVISION_PATTERN` |
  `PARAGRAPH_PATTERN` |
  `SECTION_PATTERN` |

  Methods

  `__init__`(code) |
  `extract_functions_classes`() |
  `is_valid`() |
  `simplify_code`() |

  Parameters

    code (str) –

  __init__(code: str)
    Parameters

      code (str) –

  extract_functions_classes() → List[str]
    Return type

      List[str]

  is_valid() → bool
    Return type

      bool

  simplify_code() → str
    Return type

      str