Skip to content

Commit c573c0b

Browse files
authored
Merge pull request doccano#315 from matthewpick/fix-metadata-import-readme
Improve metadata import/export example
2 parents 2c15111 + 491893d commit c573c0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,12 @@ by adding `external_id` to the imported file. For example:
250250
Input file may look like this:
251251
`import.json`
252252
```JSON
253-
{"text": "EU rejects German call to boycott British lamb.", "external_id": 1}
253+
{"text": "EU rejects German call to boycott British lamb.", "meta": {"external_id": 1}}
254254
```
255255
and the exported file will look like this:
256256
`output.json`
257257
```JSON
258-
{"doc_id": 2023, "text": "EU rejects German call to boycott British lamb.", "labels": ["news"], "username": "root", "metadata": {"external_id": 1}}
258+
{"doc_id": 2023, "text": "EU rejects German call to boycott British lamb.", "labels": ["news"], "username": "root", "meta": {"external_id": 1}}
259259
```
260260

261261
### Tutorial

0 commit comments

Comments
 (0)