Introduction to the ZPar Source Structure
The ROOT
folder
zpar
├── dist/ ... Folder for compiled binary excutables
├── doc/ ... Folder for HTML documents
├── Makefile ... Main Makefile
├── Makefile.ccg ... Makefile rules for CCG Parser
├── Makefile.common ... Common Makefile rules
├── Makefile.d/ ... Makefile rules for different tasks
├── Makefile.doc2snt ... Makefile rules for doc2snt
├── Makefile.misc ... Miscellaneous Makefile rules
├── Makefile.zpar.en ... Makefile rules for English
├── Makefile.zpar.es ... Makefile rules for Spanish
├── Makefile.zpar.ge ... Makefile rules for generic ZPar
├── Makefile.zpar.zh ... Makefile rules for Chinese
├── obj/ ... Folder for compiled binary excutables
├── README ... Readme file
├── scripts/ ... Folder for miscellaneous scripts
└── src/ ... Folder for source codes
The src
folder
zpar/src/
├── chinese/ ... Chinese treebanks and systems (e.g segmentor)
├── common/ ... language independent systems (e.g parsers)
├── english/ ... Egnlish treebanks and systems
├── generic/ ... language independent linguistics
├── include/ ... all header files
├── libs/ ... cpp for header
├── spanish/ ... Spanish treebanks
└── test.cpp ... sandbox
The src/include
folder
zpar/src/include
├── agendachart.h
├── agenda.h
├── base64.h
├── bigram.h
├── bitarray.h
├── buffer.h
├── chart.h
├── definitions.h
├── file_utils.h
├── hash_combined.h
├── hash.h
├── hash_simple.h
├── hash_small.h
├── hash_stream.h
├── hash_utils.h
├── knowledge/ ... rules
├── learning/ ... machine learning
├── linguistics/ ... linguistic structures
├── linkedlist.h
├── options.h
├── pair_stream.h
├── pool.h
├── reader.h
├── set.h
├── stack.h
├── table2.h
├── tokenizer.h
├── tuple2.h
├── tuple3.h
├── tuple4.h
├── utf.h
├── utils.h
├── vector_stream.h
└── writer.h
The src/common
folder
zpar/src/common
├── conparser/ ... constituent parsers
├── deplabeler/
├── depparser/ ... dependency parsers
└── tagger/ ... POS taggers
The src/chinese
folder
zpar/src/chinese
├── cfg/
├── cfg.h
├── charcat.h
├── conparser/ ... Chinese constituency parser (joint word segmentor)
├── dependency/ ... Chinese dependency parser (joint word segmentor)
├── dep.h
├── doc2snt/ ... Chinese sentence segmentor
├── joint/
├── pos/
├── segmentor/ ... Chinese word segmentor
├── tagger/ ... Chinese POS tagger (joint word segmentor)
├── tags.h
├── utfword.h
└── zpar.cpp
The src/english
folder
zpar/src/english
├── cfg/
├── cfg.h
├── charcat.h
├── dependency/ ... Egnlish dependency parser
├── dep.h
├── morph/
├── pos/
├── tags.h
└── zpar.en.cpp
The scripts
folder
The scripts
folder contains
the script files mentioned in the other documents
in this manual.
zpar/scripts/
├── ccg/ ... CCG
├── cfg/ ... constituent grammar tools
├── dep/ ... dependency grammar tools
├── lang/ ... includes treebank binairzers
├── ml/
├── pos/ ... POS tagger tools
├── tools/ ... includes encoding switch
└── var/
The scripts
folder
The CMake
folder contains
the related files for cmake compiling, which accompany adding
related library for development.
zpar/CMake/
├── setting ... implement setting
├── configure.py ... configure
├── src ... link to original src fold