Преглед изворни кода

Feat: support pic base bullet for PPT (#6406)

### What problem does this PR solve?

support pic base bullet for PPT

modify one mistake in document

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
tags/v0.18.0
Stephen Hu пре 7 месеци
родитељ
комит
d77380f024
No account linked to committer's email address
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1
    1
      deepdoc/parser/ppt_parser.py
  2. 1
    1
      docs/references/http_api_reference.md

+ 1
- 1
deepdoc/parser/ppt_parser.py Прегледај датотеку

super().__init__() super().__init__()


def __get_bulleted_text(self, paragraph): def __get_bulleted_text(self, paragraph):
is_bulleted = bool(paragraph._p.xpath("./a:pPr/a:buChar")) or bool(bool(paragraph._p.xpath("./a:pPr/a:buAutoNum")) )
is_bulleted = bool(paragraph._p.xpath("./a:pPr/a:buChar")) or bool(paragraph._p.xpath("./a:pPr/a:buAutoNum")) or bool(paragraph._p.xpath("./a:pPr/a:buBlip"))
if is_bulleted: if is_bulleted:
return f"{' '* paragraph.level}.{paragraph.text}" return f"{' '* paragraph.level}.{paragraph.text}"
else: else:

+ 1
- 1
docs/references/http_api_reference.md Прегледај датотеку



- `dataset_id`: (*Path parameter*) - `dataset_id`: (*Path parameter*)
The associated dataset ID. The associated dataset ID.
- `document_ids`: (*Path parameter*)
- `document_id`: (*Path parameter*)
The associated document ID. The associated document ID.
- `keywords`(*Filter parameter*), `string` - `keywords`(*Filter parameter*), `string`
The keywords used to match chunk content. The keywords used to match chunk content.

Loading…
Откажи
Сачувај