Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao authored Apr 7, 2022
1 parent 3324ba1 commit 3061742
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ Besides saving memory, one can leverage storage backends for persistence, faster

### Example 3: represent multimodal data in dataclass

The following news article banner can be easily represented by `docarray.dataclass`:
The following news article banner can be easily represented via `docarray.dataclass` and type annotation:


<table>
<tr>
<td>

<img src="https://github.com/jina-ai/docarray/blob/main/docs/fundamentals/dataclass/img/image-mmdoc-example.png?raw=true" alt="A example multimodal document" width="50%">
<img src="https://github.com/jina-ai/docarray/blob/main/docs/fundamentals/dataclass/img/image-mmdoc-example.png?raw=true" alt="A example multimodal document" width="100%">
</td>
<td>
Expand All @@ -131,8 +131,8 @@ class WPArticle:


a = WPArticle(
banner='cat-dog-flight.png',
headline='Everything to know about flying with pets, from picking your seats to keeping your animal calm',
banner='https://.../cat-dog-flight.png',
headline='Everything to know about flying with pets, ...',
meta={
'author': 'Nathan Diller',
'Column': 'By the Way - A Post Travel Destination',
Expand Down

0 comments on commit 3061742

Please sign in to comment.