Browse Source

improve metadata import/export example

pull/315/head
Matt Pick 5 years ago
parent
commit
491893d43a
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -252,12 +252,12 @@ by adding `external_id` to the imported file. For example:
Input file may look like this:
`import.json`
```JSON
{"text": "EU rejects German call to boycott British lamb.", "external_id": 1}
{"text": "EU rejects German call to boycott British lamb.", "meta": {"external_id": 1}}
```
and the exported file will look like this:
`output.json`
```JSON
{"doc_id": 2023, "text": "EU rejects German call to boycott British lamb.", "labels": ["news"], "username": "root", "metadata": {"external_id": 1}}
{"doc_id": 2023, "text": "EU rejects German call to boycott British lamb.", "labels": ["news"], "username": "root", "meta": {"external_id": 1}}
```
### Tutorial

Loading…
Cancel
Save