Browse Source
Merge pull request #315 from matthewpick/fix-metadata-import-readme
Improve metadata import/export example
pull/334/head
Hiroki Nakayama
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
README.md
|
@ -250,12 +250,12 @@ by adding `external_id` to the imported file. For example: |
|
|
Input file may look like this: |
|
|
Input file may look like this: |
|
|
`import.json` |
|
|
`import.json` |
|
|
```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: |
|
|
and the exported file will look like this: |
|
|
`output.json` |
|
|
`output.json` |
|
|
```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 |
|
|
### Tutorial |
|
|