Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
pymemri
Commits
bbd68116
Commit
bbd68116
authored
2 years ago
by
Eelco van der Wel
Browse files
Options
Download
Plain Diff
Merge branch 'eelco/translation_item' into 'dev'
add Translation schema See merge request
!283
parents
a595569e
b785052a
dev
aziz/tweet_schema
disable_cert_verify
eelco/export-schema-json
v0.1.2
v0.1.0
v0.0.52
v0.0.51
v0.0.50
v0.0.48
v0.0.47
v0.0.46
v0.0.45
v0.0.44
v0.0.43
v0.0.42
1 merge request
!283
add Translation schema
Pipeline
#12744
passed with stages
in 2 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pymemri/data/schema/_central_schema.py
+8
-0
pymemri/data/schema/_central_schema.py
with
8 additions
and
0 deletions
+8
-0
pymemri/data/schema/_central_schema.py
+
8
-
0
View file @
bbd68116
...
...
@@ -20,6 +20,7 @@ class Item(ItemBase):
# Edges
language
:
List
[
"Language"
]
=
[]
translation
:
List
[
"Translation"
]
=
[]
label
:
List
[
"CategoricalPrediction"
]
=
[]
...
...
@@ -645,3 +646,10 @@ class EmailMessage(Message):
cc
:
List
[
"Account"
]
=
[]
message
:
List
[
"EmailMessage"
]
=
[]
replyTo
:
List
[
"Account"
]
=
[]
class
Translation
(
Item
):
value
:
Optional
[
str
]
=
None
translatedProperty
:
Optional
[
str
]
=
None
srcLang
:
Optional
[
str
]
=
None
tgtLang
:
Optional
[
str
]
=
None
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets