by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    nihiya
    @nihiya
    how to install lango from python interpreter
    Michael Young
    @ayoungprogrammer
    @nihiya the easiest way is to run pip install lango
    ahmedbahaaeldin
    @ahmedbahaaeldin
    i cant install lango from pip or conda
    Michael Young
    @ayoungprogrammer
    @ahmedbahaaeldin What error are you getting? Which version of python are you using
    ahmedbahaaeldin
    @ahmedbahaaeldin
    Ohh wow you replied , it finally worked after several hours , my problem was outdated pip version
    i have another question concerning the NLquery ,where should i contact you
    Michael Young
    @ayoungprogrammer
    hey @ahmedbahaaeldin I can help you here or you can email me at michaelyoung1995 (at) gmail.com
    ahmedbahaaeldin
    @ahmedbahaaeldin
    thank you @ayoungprogrammer , i want to know in your NLquery project , how can i make the sparql query for wikidata generic , like writing a program that figure out the "q" and property number in someway , not hard coded
    Michael Young
    @ayoungprogrammer
    @ahmedbahaaeldin Do you mean entity disambiguation for finding out the "q" and property number? If you look at https://github.com/ayoungprogrammer/nlquery/blob/master/nlquery/wikidata.py, the SPARQL query maker resolves "q" and property number by disambiguating the surface forms of the text to the wikidata IDs. The property numbers are not hardcoded except for some specific cases.
    ahmedbahaaeldin
    @ahmedbahaaeldin
    so if i used the function as it is , it is kind of dynamic to any question type and entities ?
    Michael Young
    @ayoungprogrammer
    The function _find_entity will try to disambiguate entity IDS given the surface forms you provide but question type is hardcoded but theres only 5 kinds of questions you can really ask (who, when, what, where, how many). So to answer your question, it is dynamic
    ahmedbahaaeldin
    @ahmedbahaaeldin
    can you give me any source or any tutorials to know how to code my own function that search wiki data database dynamically ? i have some good basics in sparql for dbpedia
    Michael Young
    @ayoungprogrammer
    @ahmedbahaaeldin I'm not too sure what you're asking. I don't have any tutorials on it but https://github.com/ayoungprogrammer/nlquery/blob/master/nlquery/wikidata.py will give you the best place to start in doing that.
    ahmedbahaaeldin
    @ahmedbahaaeldin
    Hello , can you please give any guide for how to write parsing rules for example like this : What is the budget of Film whose director is Jason Cameron , i wrote in the subj_t this rule : ( NP ( DT ( NN:prop-o )) (PP ( IN )( NP ( NNP:subject-o ) ) ( SBAR ( WP$ ) ( S ( NP ( NN )) ( VP ( VBZ ) ( NP ( NNP:subject1-o) ( NNP:subject2-o) but its not working , any help ?
    Michael Young
    @ayoungprogrammer

    subj_t: ( NP ( NP:prop-o ) ( PP ( IN ) ( NP ( NP:subject-o ) ( SBAR:sbar_t ) ) )

    sbar_t: ( SBAR ( WP$ ) ( S ( NP:subject1-o) ( VP ( VPZ ) ( NP:subject2-o)))

    this is probably closer to what you want
    @ahmedbahaaeldin
    ahmedbahaaeldin
    @ahmedbahaaeldin
    @ayoungprogrammer hello sir , is there is a version of your project for python 3.6 ?
    Michael Young
    @ayoungprogrammer
    @ahmedbahaaeldin Sorry not yet, I was thinking of upgrading it, but I'm pretty busy right now :( feel free to make a pull request!
    Dinda Ockta N
    @DindaOcktaN_twitter
    I want datasets about complete parser rules for my app about QnA. can you provide references?