1
1
#!/usr/bin/env python3
2
2
3
3
"""
4
- (C) 2019 Damir Cavar, Oren Baldinger, Maanvitha Gongalla, Anurag Kumar, Murali Kammili
4
+ (C) 2020 by Semiring Inc., Damir Cavar
5
+
6
+ Contributions to earlier versions by Oren Baldinger, Maanvitha Gongalla, Anurag Kumar, Murali Kammili
5
7
6
8
Functions for manipulating and expanding a JSON-NLP object
7
9
14
16
from typing import List
15
17
16
18
name = "pyjsonnlp"
17
- __version__ = "0.2.33 "
19
+ __version__ = "0.6 "
18
20
19
21
20
22
def get_base () -> OrderedDict :
@@ -27,6 +29,7 @@ def get_base() -> OrderedDict:
27
29
return OrderedDict ({
28
30
"meta" : {
29
31
"DC.conformsTo" : __version__ ,
32
+ "DC.author" : "" ,
30
33
"DC.source" : "" , # where did the corpus come from
31
34
"DC.created" : datetime .datetime .now ().replace (microsecond = 0 ).isoformat (),
32
35
"DC.date" : datetime .datetime .now ().replace (microsecond = 0 ).isoformat (),
@@ -46,7 +49,6 @@ def get_base() -> OrderedDict:
46
49
"counts" : {},
47
50
},
48
51
"conll" : {},
49
- #"documents": {}
50
52
"documents" : []
51
53
})
52
54
@@ -57,6 +59,7 @@ def get_base_document(doc_id: int) -> OrderedDict:
57
59
return OrderedDict ({
58
60
"meta" : {
59
61
"DC.conformsTo" : __version__ ,
62
+ "DC.author" : "" ,
60
63
"DC.source" : "" , # where did the corpus come from
61
64
"DC.created" : datetime .datetime .now ().replace (microsecond = 0 ).isoformat (),
62
65
"DC.date" : datetime .datetime .now ().replace (microsecond = 0 ).isoformat (),
@@ -79,9 +82,9 @@ def get_base_document(doc_id: int) -> OrderedDict:
79
82
"conllId" : "" ,
80
83
"text" : "" ,
81
84
"tokenList" : [],
82
- # "clauses": {} ,
83
- "sentences" : {} ,
84
- "paragraphs" : {} ,
85
+ "clauses" : [] ,
86
+ "sentences" : [] ,
87
+ "paragraphs" : [] ,
85
88
"dependencies" : [],
86
89
"coreferences" : [],
87
90
"constituents" : [],
0 commit comments