Skip to content

Braveoneone/computational_syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

computational_syntax

Coding files from the course LT2214 computational syntax 2024.

Multilingual generation and translation (mini version)

For Chinese language, design a morphology for the main lexical types (N, A, V) with parameters and a couple of paradigms. Test it by implementing the lexicon in the MicroLang module. Define lincat N,A,V,V2 as well as the paradigms in MicroResource. Implement the lexicon part of files MicroLangZh.gf and MicroResZh.gf for Chinese. Define the linearization types of main phrasal categories - the remaining categories in MicroLang. Define the rest of the linearization rules in MicroLang. Implement MicroLangZh.gf and MicroResZh.gf for Chinese, with the lexicon part from above completed with syntax part.

For GF(Grammatical Framework) Download and Installation

Installation

Grammatical Framework Tutorial

Tutorial

How to run my code?

gf

i /MicroLangZh.gf

i /MicroResZh.gf

gr generate Chinese grammar randomly

gr | l generate Chinese sentence randomly

if it shows MicroResZh.gf does not exist

i /yourFilePath/MicroLangZh.gf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published