Coder Social home page Coder Social logo

gf-midwife's People

Contributors

kristiank avatar

Watchers

 avatar  avatar

gf-midwife's Issues

Estonian verb subject gets dropped when Sno is imported

All works when only Estonian language is imported

> i MidwifeEst.gf
> Midwife
> p "patsient tunneb hästi looteliigutusi"
FeelsFetalMovements Strong

But after importing Snomedish it works, but the somehow parser fails

> i MidwifeSno.gf
> p "patsient tunneb hästi looteliigutusi"
FeelsFetalMovements Strong

The parser failed at token 1: "patsient"

All still works, but I can't understand why the parser fails. Before restarting the gf environment and re-importing the grammars for writing this issue, then the subject (patsient) simply vanished and I could only parse "tunneb hästi looteliigutusi".

Expecting a function type

I have the abstract

abstract ClinicalSituation = {

  flags startcat = Statement ;

  cat
    Statement ;
    ClinicalFinding ;
    Person ;

  data
    -- A situation consists of
    Situation : Person -> ClinicalFinding -> Statement ;


    SCT444295003_Father_of_subject_person,
    SCT444301002_Mother_of_subject_person : Person ;

    SCT77176002_Smoker_finding : ClinicalFinding ;

}

and a concrete

concrete ClinicalSituationSno of ClinicalSituation =
  open Prelude in {

  lincat
    Statement       = {s : Str} ;
    ClinicalFinding = {s : Str} ;
    Person          = {s : Str} ;

  lin
    -- A situation consists of
    -- Situation : SubjectRelationshipContext -> AssociatedFinding -> Statement ;
    Situation person clinicalfinding = {s = "243796009 |Situation with explicit context (situation)|"
                                          ++ " : "
                                          ++ "408732007 |Subject relationship context (attribute)|" ++ " = " ++ person.s " , "
                                          ++ "246090004 |Associated finding (attribute)|" ++ " = " ++ clinicalfinding.s
      };

    SCT444295003_Father_of_subject_person = {s = "SCT444295003_Father_of_subject_person"} ;
    SCT444301002_Mother_of_subject_person = {s = "SCT444301002_Mother_of_subject_person"} ;

    SCT77176002_Smoker_finding = {s = "SCT77176002_Smoker_finding"} ;

}

and the compiler says to me:

> i ClinicalSituationSno.gf 
- compiling ClinicalSituationSno.gf... 

ClinicalSituationSno.gf:
   ClinicalSituationSno.gf:14-18:
     Happened in linearization of Situation
      A function type is expected for person.s instead of type Str

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.