SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- corpus_mappings = {
- "mappings": {
- "properties": {
- "corpus": {"type": "text"},
- "keywords": {"type": "keyword"},
- "labels": {"type": "keyword"},
- "start": {"type": "integer"},
- "end": {"type": "integer"}
- }
- }
- }
- doc = {
- "_index": conf.path_index,
- "_op_type": "insert",
- "_source": {
- "corpus": txt,
- "keywords": keywords,
- "labels": labels,
- "start": start_char,
- "end": end_char
- }
- }
- Error: elasticsearch.exceptions.RequestError: RequestError(400, 'action_request_validation_exception', 'Validation Failed: 1: no requests added;')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.