Пример #1
0
GAILA_PHASE_1_CHINESE_LEXICON = OntologyLexicon(
    ontology=GAILA_PHASE_1_ONTOLOGY,
    ontology_node_to_word=(
        (FOOD, LexiconEntry("shr2 wu4", NOUN, counting_classifier="jung3")),
        (PERSON, LexiconEntry("ren2", NOUN)),
        (GROUND, LexiconEntry("di4 myan4", NOUN, counting_classifier="jang1")),
        (NONHUMAN_ANIMAL,
         LexiconEntry("dung4 wu4", NOUN, counting_classifier="jr1")),
        (BED, LexiconEntry("chwang2", NOUN, counting_classifier="jang1")),
        (PAPER, LexiconEntry("jr3", NOUN, counting_classifier="jang1")),
        (MOM, LexiconEntry("ma1 ma1", PROPER_NOUN)),
        (BALL, LexiconEntry("chyou2", NOUN)),
        (TABLE, LexiconEntry("jwo1 dz", NOUN, counting_classifier="jang1")),
        (PUT, LexiconEntry("fang4", VERB)),
        (PUSH, LexiconEntry("twei1", VERB)),
        (BOOK, LexiconEntry("shu1", NOUN, counting_classifier="ben3")),
        (HOUSE, LexiconEntry("wu1", NOUN, counting_classifier="jyan1")),
        (CAR, LexiconEntry("chi4 che1", NOUN, counting_classifier="lyang4")),
        (WATER,
         LexiconEntry("shwei3", NOUN, [MASS_NOUN],
                      counting_classifier="bei1")),
        (JUICE,
         LexiconEntry("gwo3 jr1",
                      NOUN, [MASS_NOUN],
                      counting_classifier="bei1")),
        (CUP, LexiconEntry("bei1 dz", NOUN)),
        (BOX, LexiconEntry("syang1 dz", NOUN)),
        (CHAIR, LexiconEntry("yi3 dz", NOUN, counting_classifier="ba3")),
        (HEAD, LexiconEntry("tou2", NOUN)),
        (MILK,
         LexiconEntry("nyou2 nai3",
                      NOUN, [MASS_NOUN],
                      counting_classifier="bei1")),
        (HAND, LexiconEntry("shou3", NOUN, counting_classifier="jr1")),
        (TRUCK, LexiconEntry("ka3 che1", NOUN, counting_classifier="lyang4")),
        (DOOR, LexiconEntry("men2", NOUN, counting_classifier="shan4")),
        (HAT, LexiconEntry("mau4 dz", NOUN, counting_classifier="ding3")),
        (COOKIE,
         LexiconEntry("chyu1 chi2 bing3", NOUN, counting_classifier="kwai4")),
        (DAD, LexiconEntry("ba4 ba4", PROPER_NOUN)),
        (BABY, LexiconEntry("bau3 bau3", NOUN)),
        (DOG, LexiconEntry("gou3", NOUN, counting_classifier="jr1")),
        (CAT, LexiconEntry("mau1", NOUN, counting_classifier="jr1")),
        (BIRD, LexiconEntry("nyau3", NOUN, counting_classifier="jr1")),
        (BEAR, LexiconEntry("syung2", NOUN, counting_classifier="jr1")),
        (COW, LexiconEntry("niu2", NOUN, counting_classifier="tiao2")),
        (BEEF, LexiconEntry("niu2 rou1", NOUN, counting_classifier="kwai4")),
        (CHICKEN, LexiconEntry("ji1", NOUN, counting_classifier="zhi1")),
        (GO, LexiconEntry("chyu4", VERB)),
        (COME, LexiconEntry("lai2", VERB)),
        (TAKE, LexiconEntry("na2", VERB)),
        (EAT, LexiconEntry("chr1", VERB)),
        (GIVE, LexiconEntry("gei3", VERB, properties=[ALLOWS_DITRANSITIVE])),
        (SPIN, LexiconEntry("sywan2 jwan3", VERB)),
        (SIT, LexiconEntry("dzwo4", VERB)),
        (DRINK, LexiconEntry("he1", VERB)),
        (FALL, LexiconEntry("dye2 dau3", VERB)),
        # throw isn't ditransitive in Chinese
        (THROW, LexiconEntry("reng1", VERB)),
        (MOVE, LexiconEntry("yi2 dung4", VERB)),
        (JUMP, LexiconEntry("tyau4", VERB)),
        (HAS, LexiconEntry("you3", VERB)),
        (ROLL, LexiconEntry("gwun3", VERB)),
        (FLY, LexiconEntry("fei1", VERB)),
        (RED, LexiconEntry("hung2 se4", ADJECTIVE)),
        (BLUE, LexiconEntry("lan2 se4", ADJECTIVE)),
        (GREEN, LexiconEntry("lyu4 se4", ADJECTIVE)),
        (BLACK, LexiconEntry("hei1 se4", ADJECTIVE)),
        (WHITE, LexiconEntry("bai2 se4", ADJECTIVE)),
        (TRANSPARENT, LexiconEntry("tou4 ming2", ADJECTIVE)),
        (LIGHT_BROWN, LexiconEntry("chyan3 he2 se4", ADJECTIVE)),
        (DARK_BROWN, LexiconEntry("shen1 dzung1 se4", ADJECTIVE)),
        (WATERMELON, LexiconEntry("syi1 gwa1", NOUN)),
        (PASS, LexiconEntry("di4", VERB)),
        (WALK, LexiconEntry("bu4 sying2", VERB)),
    ),
)
Пример #2
0
from adam.language_specific.english.english_phase_1_lexicon import (
    GAILA_PHASE_1_ENGLISH_LEXICON,
)
from adam.ontology.phase2_ontology import (
    GAILA_PHASE_2_ONTOLOGY,
    CHAIR_5,
    CUP_2,
    CUP_3,
    CUP_4,
    CHAIR_2,
    CHAIR_3,
    CHAIR_4,
)

GAILA_PHASE_2_CHINESE_LEXICON = OntologyLexicon(
    ontology=GAILA_PHASE_2_ONTOLOGY,
    ontology_node_to_word=[
        word
        for word in GAILA_PHASE_1_CHINESE_LEXICON._ontology_node_to_word.items()  # pylint: disable=protected-access
    ]
    + [
        (CUP_2, LexiconEntry("bei1 dz", NOUN)),
        (CUP_3, LexiconEntry("bei1 dz", NOUN)),
        (CUP_4, LexiconEntry("bei1 dz", NOUN)),
        (CHAIR_2, LexiconEntry("yi3 dz", NOUN, counting_classifier="ba3")),
        (CHAIR_3, LexiconEntry("yi3 dz", NOUN, counting_classifier="ba3")),
        (CHAIR_4, LexiconEntry("yi3 dz", NOUN, counting_classifier="ba3")),
        (CHAIR_5, LexiconEntry("yi3 dz", NOUN, counting_classifier="ba3")),
    ],
)
Пример #3
0
from adam.language.lexicon import LexiconEntry
from adam.language.ontology_dictionary import OntologyLexicon
from adam.language_specific.english.english_phase_1_lexicon import (
    GAILA_PHASE_1_ENGLISH_LEXICON, )
from adam.ontology.phase2_ontology import (
    GAILA_PHASE_2_ONTOLOGY,
    CHAIR_5,
    CUP_2,
    CUP_3,
    CUP_4,
    CHAIR_2,
    CHAIR_3,
    CHAIR_4,
)

GAILA_PHASE_2_ENGLISH_LEXICON = OntologyLexicon(
    ontology=GAILA_PHASE_2_ONTOLOGY,
    ontology_node_to_word=[
        word for word in
        GAILA_PHASE_1_ENGLISH_LEXICON._ontology_node_to_word.items()  # pylint: disable=protected-access
    ] + [
        (CUP_2, LexiconEntry("cup", NOUN, plural_form="cups")),
        (CUP_3, LexiconEntry("cup", NOUN, plural_form="cups")),
        (CUP_4, LexiconEntry("cup", NOUN, plural_form="cups")),
        (CHAIR_2, LexiconEntry("chair", NOUN, plural_form="chairs")),
        (CHAIR_3, LexiconEntry("chair", NOUN, plural_form="chairs")),
        (CHAIR_4, LexiconEntry("chair", NOUN, plural_form="chairs")),
        (CHAIR_5, LexiconEntry("chair", NOUN, plural_form="chairs")),
    ],
)
Пример #4
0
GAILA_PHASE_1_ENGLISH_LEXICON = OntologyLexicon(
    ontology=GAILA_PHASE_1_ONTOLOGY,
    ontology_node_to_word=(
        (FOOD, LexiconEntry("food", NOUN, plural_form="foods")),
        (PERSON, LexiconEntry("person", NOUN, plural_form="people")),
        (GROUND, LexiconEntry("ground", NOUN, plural_form="grounds")),
        (NONHUMAN_ANIMAL, LexiconEntry("animal", NOUN, plural_form="animals")),
        (MOM, LexiconEntry("Mom", PROPER_NOUN)),
        (BALL, LexiconEntry("ball", NOUN, plural_form="balls")),
        (WATERMELON, LexiconEntry("watermelon", NOUN, plural_form="watermelons")),
        (TABLE, LexiconEntry("table", NOUN, plural_form="tables")),
        (PUT, LexiconEntry("put", VERB, verb_form_sg3_prs="puts")),
        (PUSH, LexiconEntry("push", VERB, verb_form_sg3_prs="pushes")),
        (BOOK, LexiconEntry("book", NOUN, plural_form="books")),
        (HOUSE, LexiconEntry("house", NOUN, plural_form="houses")),
        (CAR, LexiconEntry("car", NOUN, plural_form="cars")),
        (WATER, LexiconEntry("water", NOUN, [MASS_NOUN])),
        (JUICE, LexiconEntry("juice", NOUN, [MASS_NOUN])),
        (CUP, LexiconEntry("cup", NOUN, plural_form="cups")),
        (BOX, LexiconEntry("box", NOUN, plural_form="boxes")),
        (CHAIR, LexiconEntry("chair", NOUN, plural_form="chairs")),
        (HEAD, LexiconEntry("head", NOUN, plural_form="heads")),
        (PAPER, LexiconEntry("paper", NOUN, plural_form="papers")),
        (BEAR, LexiconEntry("bear", NOUN, plural_form="bears")),
        (COW, LexiconEntry("cow", NOUN, plural_form="cows")),
        (BEEF, LexiconEntry("beef", NOUN, plural_form="beefs")),
        (CHICKEN, LexiconEntry("chicken", NOUN, plural_form="chickens")),
        (BED, LexiconEntry("bed", NOUN, plural_form="beds")),
        (MILK, LexiconEntry("milk", NOUN, [MASS_NOUN])),
        (HAND, LexiconEntry("hand", NOUN, plural_form="hands")),
        (TRUCK, LexiconEntry("truck", NOUN, plural_form="trucks")),
        (DOOR, LexiconEntry("door", NOUN, plural_form="doors")),
        (HAT, LexiconEntry("hat", NOUN, plural_form="hats")),
        (COOKIE, LexiconEntry("cookie", NOUN, plural_form="cookies")),
        (DAD, LexiconEntry("Dad", PROPER_NOUN)),
        (BABY, LexiconEntry("baby", NOUN, plural_form="babies")),
        (DOG, LexiconEntry("dog", NOUN, plural_form="dogs")),
        (CAT, LexiconEntry("cat", NOUN, plural_form="cats")),
        (BIRD, LexiconEntry("bird", NOUN, plural_form="birds")),
        (GO, LexiconEntry("go", VERB, verb_form_sg3_prs="goes")),
        (COME, LexiconEntry("come", VERB, verb_form_sg3_prs="comes")),
        (TAKE, LexiconEntry("take", VERB, verb_form_sg3_prs="takes")),
        (EAT, LexiconEntry("eat", VERB, verb_form_sg3_prs="eats")),
        (
            GIVE,
            LexiconEntry(
                "give", VERB, verb_form_sg3_prs="gives", properties=[ALLOWS_DITRANSITIVE]
            ),
        ),
        (SPIN, LexiconEntry("spin", VERB, verb_form_sg3_prs="spins")),
        (SIT, LexiconEntry("sit", VERB, verb_form_sg3_prs="sits")),
        (DRINK, LexiconEntry("drink", VERB, verb_form_sg3_prs="drinks")),
        (FALL, LexiconEntry("fall", VERB, verb_form_sg3_prs="falls")),
        (
            THROW,
            LexiconEntry(
                "throw",
                VERB,
                verb_form_sg3_prs="throws",
                properties=[ALLOWS_DITRANSITIVE],
            ),
        ),
        (
            PASS,
            LexiconEntry(
                "pass", VERB, verb_form_sg3_prs="passes", properties=[ALLOWS_DITRANSITIVE]
            ),
        ),
        (MOVE, LexiconEntry("move", VERB, verb_form_sg3_prs="moves")),
        (WALK, LexiconEntry("walk", VERB, verb_form_sg3_prs="walks")),
        (JUMP, LexiconEntry("jump", VERB, verb_form_sg3_prs="jumps")),
        (HAS, LexiconEntry("have", VERB, verb_form_sg3_prs="has")),
        (ROLL, LexiconEntry("roll", VERB, verb_form_sg3_prs="rolls")),
        (FLY, LexiconEntry("fly", VERB, verb_form_sg3_prs="flies")),
        (RED, LexiconEntry("red", ADJECTIVE)),
        (BLUE, LexiconEntry("blue", ADJECTIVE)),
        (GREEN, LexiconEntry("green", ADJECTIVE)),
        (BLACK, LexiconEntry("black", ADJECTIVE)),
        (WHITE, LexiconEntry("white", ADJECTIVE)),
        (TRANSPARENT, LexiconEntry("transparent", ADJECTIVE)),
        (LIGHT_BROWN, LexiconEntry("light brown", ADJECTIVE)),
        (DARK_BROWN, LexiconEntry("dark brown", ADJECTIVE)),
    ),
)
from adam.language.dependency.universal_dependencies import NOUN
from adam.language.lexicon import LexiconEntry
from adam.language.ontology_dictionary import OntologyLexicon
from adam.language_specific.english.english_phase_2_lexicon import (
    GAILA_PHASE_2_ENGLISH_LEXICON, )
from adam.ontology.integrated_learner_experiement_ontology import (
    INTEGRATED_EXPERIMENT_ONTOLOGY,
    ZUP,
    SPAD,
    DAYGIN,
    MAWG,
    TOMBUR,
    GLIM,
)

INTEGRATED_EXPERIMENT_ENGLISH_LEXICON = OntologyLexicon(
    ontology=INTEGRATED_EXPERIMENT_ONTOLOGY,
    ontology_node_to_word=[
        word for word in
        GAILA_PHASE_2_ENGLISH_LEXICON._ontology_node_to_word.items()  # pylint: disable=protected-access
    ] + [
        (ZUP, LexiconEntry("zup", NOUN, plural_form="zups")),
        (SPAD, LexiconEntry("spad", NOUN, plural_form="spads")),
        (DAYGIN, LexiconEntry("daygin", NOUN, plural_form="daygins")),
        (MAWG, LexiconEntry("mawg", NOUN, plural_form="mawg")),
        (TOMBUR, LexiconEntry("tombur", NOUN, plural_form="tomburs")),
        (GLIM, LexiconEntry("glim", NOUN, plural_form="glims")),
    ],
)