Skip to content

Commit

Permalink
Merge pull request #135 from latin-language-toolkit/bobs_relation
Browse files Browse the repository at this point in the history
Add another label set
  • Loading branch information
LFDM committed Jun 7, 2014
2 parents 65b67ec + 0f88931 commit c13616c
Show file tree
Hide file tree
Showing 2 changed files with 343 additions and 0 deletions.
123 changes: 123 additions & 0 deletions app/static/configs/bob_test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"main" : {
"template" : "templates/main_with_sidepanel.html",
"retrievers" : {
"TreebankRetriever" : {
"resource" : "fakePerseids"
}
},
"plugins" : [
"text",
"search",
"morph",
"relation",
"depTree",
"history"
]
},

"navbar" : {
"template" : "templates/navbar1.html",
"search" : true,
"navigation" : true
},

"resources" : {
"fakePerseids" : {
"route" : "http://74.70.97.104:8085/xml_server/:doc",
"params" : [
"doc",
"s"
]
},

"fakeGold" : {
"route" : "http://74.70.97.104:8085/xml_server/gold:gold",
"params" : [
"gold",
"s"
]
},

"lexInvFusekiEndpoint" : {
"route" : "http://sosol.perseus.tufts.edu/fuseki/ds/query?format=json"
},

"morphologyService" : {
"route" : "http://services.perseids.org/bsp/morphologyservice/analysis/word?lang=lat&engine=morpheuslat"
}
},

"plugins" : {
"text" : {
"name" : "text",
"main" : true,
"template" : "templates/text2.html"
},

"depTree" : {
"name" : "depTree",
"main" : true,
"contextMenu" : true,
"contextMenuTemplate": "templates/arethusa.dep_tree/context_menu.html",
"template" : "templates/dep_tree.html"
},

"search" : {
"name" : "search",
"template" : "templates/search.html",
"regex" : true
},

"morph" : {
"name" : "morph",
"retrievers" : {
"BspMorphRetriever" : {
"resource" : "morphologyService"
}
},
"template" : "templates/morph3.html",
"contextMenu" : true,
"contextMenuTemplate": "templates/arethusa.morph/context_menu.html",
"lexicalInventory" : {
"retriever" : {
"LexicalInventoryRetriever" : {
"resource" : "lexInvFusekiEndpoint"
}
}
},
"matchAll" : true,
"fileUrl" : "./static/configs/morph/attributes.json"
},

"relation" : {
"name" : "relation",
"template" : "templates/relation.html",
"contextMenu" : true,
"contextMenuTemplate": "templates/arethusa.relation/context_menu.html",
"fileUrl" : "./static/configs/relation/bobs_relation.json"
},

"review" : {
"name" : "review",
"template" : "templates/arethusa.review/review.html",
"retrievers" : {
"TreebankRetriever" : {
"resource" : "fakeGold"
}
}
},

"history" : {
"name" : "history",
"listener" : true,
"maxSize" : 5,
"template" : "templates/history.html"
},

"comment" : {
"name" : "comment",
"template" : "templates/comment2.html"
}
}
}
220 changes: 220 additions & 0 deletions app/static/configs/relation/bobs_relation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
{
"relations" : {
"labels" : {
"SBJ" : {
"short" : "SBJ",
"long" : "subject"
},
"MnVb" : {
"short" : "MnVb",
"long" : "main verb"
},
"Poss" : {
"short" : "Poss",
"long" : "possessive"
},
"OBJ" : {
"short" : "OBJ",
"long" : "object",
"nested" : {
"DirObj" : {
"short" : "DirObj",
"long" : "direct object"
},
"InObj" : {
"short" : "InObj",
"long" : "indirect object"
},
"OPrep" : {
"short" : "OPrep",
"long" : "object of preposition",
"nested": {
"acp" : {
"short" : "acp",
"long" : "accompaniment"
}
}
}
}
},
"ATR" : {
"short" : "ATR",
"long" : "attribute"
},
"Pnom" : {
"short" : "Pnom",
"long" : "predicate nominal"
},
"Prep" : {
"short" : "Prep",
"long" : "preposition"
},
"ADV" : {
"short" : "ADV",
"long" : "adverb",
"nested" : {
"Inst" : {
"short" : "Inst",
"long" : "instrument"
},
"Spr" : {
"short" : "Spr",
"long" : "separation"
},
"Mnr" : {
"short" : "Mnr",
"long" : "manner"
},
"Qty" : {
"short" : "Qty",
"long" : "quantity"
},
"Cau" : {
"short" : "Cau",
"long" : "cause"
},
"Plc" : {
"short" : "Plc",
"long" : "place"
},
"acp" : {
"short" : "acp",
"long" : "accompaniment"
},
"Rsp" : {
"short" : "Rsp",
"long" : "respect"
},
"Lmt" : {
"short" : "Lmt",
"long" : "limit"
},
"Dur" : {
"short" : "Dur",
"long" : "duration"
},
"Twh" : {
"short" : "Twh",
"long" : "time when"
},
"Twin" : {
"short" : "Twin",
"long" : "time within"
},
"Dgr" : {
"short" : "Dgr",
"long" : "degree of difference"
},
"Rfr" : {
"short" : "Rfr",
"long" : "reference"
}
}
},
"Agt" : {
"short" : "Agt",
"long" : "agent"
},
"APOS" : {
"short" : "APOS",
"long" : "apposition"
},
"COORD" : {
"short" : "COORD",
"long" : "coordinator"
},
"SbConj" : {
"short" : "SbConj",
"long" : "subordinated conjunction"
},
"SntAdv" : {
"short" : "SntAdv",
"long" : "sentence adverbial"
},
"AuxV" : {
"short" : "AuxV",
"long" : "auxiliary verb"
},
"AuxZ" : {
"short" : "AuxZ",
"long" : "emphatic adverbial"
},
"Adr" : {
"short" : "Adr",
"long" : "adress"
},
"CL" : {
"short" : "CL",
"long" : "clause",
"nested" : {
"Comp" : {
"short" : "Comp",
"long" : "complement"
},
"Temp" : {
"short" : "Temp",
"long" : "temporal"
},
"Caus" : {
"short" : "Caus",
"long" : "causal"
},
"Conces" : {
"short" : "Conces",
"long" : "concessive"
},
"Cond" : {
"short" : "Cond",
"long" : "conditional"
},
"Rel" : {
"short" : "Rel",
"long" : "relative"
},
"Cir" : {
"short" : "Cir",
"long" : "circumstance"
},
"Prp" : {
"short" : "Prp",
"long" : "purpose"
},
"IndCom" : {
"short" : "IndCom",
"long" : "indirect command"
},
"Rslt" : {
"short" : "Rslt",
"long" : "result"
},
"Sbt" : {
"short" : "Sbt",
"long" : "substantive"
},
"Is" : {
"short" : "Is",
"long" : "indirect statement"
},
"IQ" : {
"short" : "IQ",
"long" : "indirect question"
},
"Abs" : {
"short" : "Abs",
"long" : "absolute"
}
}
}
},
"suffixes" : {
"CO" : {
"short" : "CO",
"long" : "coordinated"
},
"AP" : {
"short" : "AP",
"long" : "appositioned"
}
}
}
}

0 comments on commit c13616c

Please sign in to comment.