Multilingual Shapeworld

The language file for the ERG (trunk version) can be found here. Below an incomplete list of words and constructions which another language would ideally provide. Note that not all of the entries are required for every data generator.

DMRS demo

Attributes:

  • shape, square, rectangle, triangle, pentagon, cross, circle, semicircle, ellipse
  • red, green, blue, yellow, magenta, cyan, white

Relations:

  • left, right, above, below, behind, front
  • leftmost, rightmost, topmost, lowest
  • closer, farther, closest, farthest
  • smaller, bigger, smallest, biggest
  • darker, lighter, darkest, lightest

Quantifier (others possible here):

  • existential (e.g., “shape is green”)
  • a, two, three, four, five (semantics: >=)
  • exactly one/two/three/four/five (semantics: ==)
  • the, both, the three, the four, the five (semantics: == and no others)
  • no, half, most, all

Constructions (incomplete):

  • attribute to relation (e.g., “square” –> “is a square”)
  • relation to attribute (e.g., “is above a square” –> “which is above a square”)

More to come…

shapeworld/realizers/dmrs/resources/ace -g ~/git/jacy/ace/config.tdl -G shapeworld/realizers/dmrs/resources/japanese.dat

python3 generate.py -d /home/bond/tmp/shape -t agreement -n oneshape_simple -l japanese

Translations with Open Multilingual Wordnet

bigger large or big relative to something else

topmost at or nearest to the top

rectangle a parallelogram with four right angles

yellow of the color intermediate between green and orange in the color spectrum; of something resembling the color of an egg yolk

cross a marking that consists of lines that cross each other

closest at or within a short distance in space or time or having elements near each other

rightmost farthest to the right

lighter (used of color) having a relatively small amount of coloring agent

above in or to a place that is higher

left being or located on or directed toward the side of the body to the west when facing north

lightest (used of color) having a relatively small amount of coloring agent

cyan of a bluish shade of green

green of the color between blue and yellow in the color spectrum; similar to the color of fresh grass

black being of the achromatic color of maximum darkness; having little or no hue owing to absorption of almost all incident light

circle ellipse in which the two axes are of equal length; a plane curve generated by one point moving at a constant distance from a fixed point

closer at or within a short distance in space or time or having elements near each other

farthest (comparatives of `far’) most remote in space or time or order

pentagon a five-sided polygon

leftmost farthest to the left

magenta of deep purplish red

right being or located on or directed toward the side of the body to the east when facing north

square (geometry) a plane rectangle with four equal sides and four right angles; a four-sided regular polygon

white being of the achromatic color of maximum lightness; having little or no hue owing to reflection of almost all incident light

shape any spatial attributes (especially as defined by outline)

darker (used of color) having a dark hue

red of a color at the end of the color spectrum (next to orange); resembling the color of blood or cherries or tomatoes or rubies

ellipse a closed plane curve resulting from the intersection of a circular cone and a plane cutting completely through it

semicircle a plane figure with the shape of half a circle

triangle a three-sided polygon

darkest (used of color) having a dark hue

farther more distant in especially space or time

blue of the color intermediate between green and violet; having a color similar to that of a clear unclouded sky

biggest above average in size or number or quantity or magnitude or extent

smaller small or little relative to something else

smallest limited or below average in number or quantity or magnitude or extent

below in or to a place that is lower

lowest in the lowest position; nearest the ground

Trouble Shooting

With Jacy we have issues that the generator expects _pred_x_0_rel and the interface seems to strip off _rel, and it distinguished between strings and types.

Moving to semantic-interface-2016   := ”../jacy.smi”. fixes the string/type issue, I don’t know how to deal with the _rel issue.

Last update: 2017-08-10 by FrancisBond [edit]