Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to create a gramma for Chinese? #22

Open
gembin opened this issue Jul 14, 2017 · 2 comments
Open

is it possible to create a gramma for Chinese? #22

gembin opened this issue Jul 14, 2017 · 2 comments

Comments

@gembin
Copy link

gembin commented Jul 14, 2017

Is it possible to create a gramma for Chinese?
Any doc for the gramma syntax?

@bethard
Copy link
Collaborator

bethard commented Jul 15, 2017

It should be possible to create a grammar for Chinese. Someone has done one for Italian, and I believe someone is currently working on one for French.

The grammar syntax is based on the Joshua format:
https://joshua.incubator.apache.org/6.0/file-formats.html
In short, each line should look like:
nonterminal ||| tokens ||| operators
The valid operators are defined in:
https://github.com/clulab/timenorm/blob/master/src/main/scala/info/bethard/timenorm/scfg/parse/TemporalParse.scala
Sorry it's not better documented, but hopefully by looking at the English grammar you can get a bit of an idea. Feel free to follow up if you have specific questions.

@gembin
Copy link
Author

gembin commented Jul 15, 2017

Thanks, i will try to understand the English grammar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants