Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link short examples #61

Merged
merged 12 commits into from
Dec 27, 2020
2 changes: 1 addition & 1 deletion gwadoc/doc_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
relations.similar.proj.querywn = "sim"
relations.similar.proj.eurown = "near_synonym"
relations.similar.proj.plwordnet = "podobny"
relations.similar.proj.pointer = "&"
relations.similar.proj.pointer = "*!"


### Relation: role
Expand Down
31 changes: 19 additions & 12 deletions gwadoc/doc_en.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@
concept A."""
relations.hyponym.ex.en = "`dog <ILIURL/46360>`_ has hyponym `animal <ILIURL/35563>`_"
relations.hyponym.exe.en = """
* `beef <ILIURL/48244>`_ has hyponym `meat <ILIURL/77100>`_
* `pear <ILIURL/77892>`_ has hyponym `edible fruit <ILIURL/77500>`_
* `dictionary <ILIURL/70226>`_ has hyponym `wordbook <ILIURL/70225>`_
* `beef <ILIURL/48244>`_ is a hyponym `meat <ILIURL/77100>`_
* `pear <ILIURL/77892>`_ is a hyponym `edible fruit <ILIURL/77500>`_
* `dictionary <ILIURL/70226>`_ is a hyponym `wordbook <ILIURL/70225>`_
"""
relations.hyponym.test.en = """
Hyponymy-relation between nouns (EWN test 9)
Expand Down Expand Up @@ -1326,7 +1326,8 @@
A relation between two concepts where concept A makes up a part of
concept B.
"""
relations.meronym.ex.en = "`hand <ILIURL/48471>`_ has part-meronym `finger <ILIURL/53712>`_"

relations.meronym.ex.en = "`hand <ILIURL/66153>`_ has part-meronym `finger <ILIURL/66162>`_"
relations.meronym.exe.en = """
* `hat <ILIURL/54674>`_ has part-meronym `crown <ILIURL/52548>`_
* `people <ILIURL/79059>`_ has member-meronym `person <ILIURL/35562>`_
Expand Down Expand Up @@ -1363,7 +1364,8 @@
A relation between two concepts where concept A makes up a
part of concept B.
"""
relations.holonym.ex.en = "`finger <ILIURL/53712>`_ has part-holonym `hand <ILIURL/48471>`_"

relations.holonym.ex.en = "`finger <ILIURL/66162>`_ has part-holonym `hand <ILIURL/66153>`_"
relations.holonym.exe.en = """
* `eye <ILIURL/64868>`_ has part-holonym `face <ILIURL/87210>`_
* `planet <ILIURL/85986>`_ has member-holonym `solar system <ILIURL/86215>`_
Expand Down Expand Up @@ -1994,7 +1996,8 @@
and vice-versa — for this reason it should only link adjectives to
nouns and vice-versa.
"""
relations.attribute.ex.en = "fertile <ILIURL/5483>`_ has attributes `fecundity <ILIURL/110773>`_ "

relations.attribute.ex.en = "`fertile <ILIURL/5483>`_ has attributes `fecundity <ILIURL/110773>`_ "
relations.attribute.exe.en = """
* `fertile <ILIURL/5483>`_ has attributes `fecundity <ILIURL/110773>`_
* `fecundity <ILIURL/110773>`_ has attributes `fertile <ILIURL/5483>`_
Expand Down Expand Up @@ -2154,7 +2157,6 @@
word, in which case the two words are antonyms of each other
"""
relations.antonym.dfn.en = """

Two words are antonyms if their meanings are opposite in some way such as:

a) The two words show binary opposition: `superior <ILIURL/93443>`_ vs `inferior <ILIURL/90690>`_ (simple)
Expand All @@ -2172,14 +2174,12 @@
of C, then A is not necessarily and antonym of A. Consider *domestic*
⇔ *national* ⇔ *international*: it does not follow that *domestic*
⇔ *international*, or *sister* ⇔ *brother* ⇔ *sister* does not imply *sister* ⇔ *sister*.


"""
relations.antonym.ex.en = "`smart <ILIURL/2474>`_ has antonym `stupid <ILIURL/2478>`_"
relations.antonym.exe.en = """
* `man <ILIURL/48657>`_ has antonym `woman <ILIURL/94168>`_
* `man <ILIURL/91182>`_ has antonym `woman <ILIURL/94168>`_
* `superior <ILIURL/93443>`_ has antonym `inferior <ILIURL/90690>`_
* `buy <ILIURL/32788>`_ has antonym `sell <ILIURL/41243>`_
* `buy <ILIURL/32788>`_ has antonym `sell <ILIURL/32953>`_
* `northen <ILIURL/8760>`_ has antonym `southern <ILIURL/8772>`_
* `homosexual <ILIURL/90552>`_ has antonym `heterosexual <ILIURL/6566>`_
* `sister <ILIURL/93015>`_ has antonym `brother <ILIURL/88710>`_
Expand Down Expand Up @@ -2306,7 +2306,8 @@
<SynsetRelation relType="other" dc:type="emotion" target="example-en-1234-n"/>

"""
relations.other.ex.en = "doctor <ILIURL/89560>`_ other `hospital <ILIURL/79536>`_"

relations.other.ex.en = "`doctor <ILIURL/89560>`_ other `hospital <ILIURL/79536>`_"
relations.other.exe.en = """
* `curator <ILIURL/89345>`_ other `museum <ILIURL/56456>`_
* `priest <ILIURL/92229>`_ other `church <ILIURL/40809>`_
Expand Down Expand Up @@ -2481,6 +2482,7 @@
relations.feminine_form_of.df.en= "A concept used to refer to female members of a class"
relations.feminine_form_of.ex.en = "`sow <ILIURL/48204>`_ is a female `pig <ILIURL/48199>`_"


### Relation: Feminine form

relations.has_feminine_form.name.en = "Has Feminine form"
Expand All @@ -2501,6 +2503,7 @@
relations.has_masculine_form.ex.en = "pig <ILIURL/48199>`_ has male `boar <ILIURL/48203>`_ "



### Relation: Young Form

relations.young_form_of.name.en = "Young Form"
Expand All @@ -2514,6 +2517,7 @@
relations.has_young_form.ex.en = "`pig <ILIURL/48199>`_ has young `piglet <ILIURL/48200>`_"



### Relation: Diminuative

relations.diminutive_of.name.en = "Diminutive Form"
Expand All @@ -2527,6 +2531,7 @@
relations.has_diminutive.ex.en = "`kitchen <ILIURL/55397>`_ has diminutive `kitchenette <ILIURL/55399>`_ "



### Relation: Augmentative

relations.augmentative_of.name.en = "Augmentative Form"
Expand All @@ -2540,6 +2545,7 @@
relations.has_augmentative.ex.en = "`house <ILIURL/54960>`_ has larger `great house <ILIURL/7550>`_ "



### Relation: Gradable Antonym

relations.anto_gradable.name.en = "Gradable Antonym"
Expand All @@ -2566,3 +2572,4 @@
relations.ir_synonym.name.en = "Inter-register Synonym"
relations.ir_synonym.df.en = "A concept that means the same except for the style or connotation"
relations.ir_synonym.ex.en = "`loot <ILIURL/106350>`_ is an inter-register synonym of `money <ILIURL/107057>`_"