Coder Social home page Coder Social logo

Comments (3)

kristiank avatar kristiank commented on August 11, 2024

Relevant code and pointers:

The Estonian linearization puts in the "default" subject.

FeelsFetalMovements level = mkS (mkCl (mkNP (mkN "patsient")) (mkVP (mkVP (mkV2 (mkV "tundma" "tunda" "tunneb")) (mkNP (mkN "loote" (mkN "liigutusi")))) level)) ;

Whereas the Snomed linearization only puts the level-record

FeelsFetalMovements level = level ;

which is simply
Strong = {s = "276371006 |Strong fetal movements (finding)|"} ;

from gf-midwife.

inariksit avatar inariksit commented on August 11, 2024

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".

Not sure what you mean. If we look at the output (annotations mine):

> p "patsient tunneb hästi looteliigutusi"
FeelsFetalMovements Strong   -- This is the correct parse from MidwifeEst

The parser failed at token 1: "patsient" -- This is the output from trying to parse the sentence in MidwifeSno

If you have all languages imported, and only want to parse in one, you can add the -lang=Est flag in the command, like this:

Midwife> p -lang=Est "patsient tunneb hästi looteliigutusi"
FeelsFetalMovements Strong

from gf-midwife.

kristiank avatar kristiank commented on August 11, 2024

If you have all languages imported, and only want to parse in one, you can add the -lang= flag in the command

Okay, this explains it. I guess it would have been more self-evident for me, if the fault message in the output would somehow be marked by language.

Thank you very much!

from gf-midwife.

Related Issues (2)

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.