in tools/validator.py [0:0]
def _consume_description(self) -> None:
"""Consumes second line with a short model description."""
description_lines = []
self._current_index = 1
# Allow an empty line between handle and description.
if not self._lines[self._current_index]:
self._current_index += 1
while self._lines[self._current_index] and not self._lines[
self._current_index].startswith("<!--"):
description_lines.append(self._lines[self._current_index])
self._current_index += 1
self._parsed_description = " ".join(description_lines)
if not self._parsed_description:
raise MarkdownDocumentationError(
"Second line of the documentation file has to contain a short "
"description. For example 'Word2vec text embedding model.'.")