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

Update mira.py #75

Open
wants to merge 2,279 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2279 commits
Select commit Hold shift + click to select a range
1197fb6
Update lexical weights in online grammar extraction
mjdenkowski Mar 11, 2014
efbc43b
Merge branch 'master' of github.com:redpony/cdec
mjdenkowski Mar 11, 2014
10a6688
add support for internal tree structure on SCFG rules
redpony Mar 12, 2014
bcff95c
Merge branch 'master' of https://github.com/redpony/cdec
redpony Mar 12, 2014
70ef91b
tree_fragment stuff
redpony Mar 12, 2014
b2b25c9
XML file tokenization for all your WMT needs.
mjdenkowski Mar 13, 2014
80f465a
missing commit
redpony Mar 14, 2014
2ca6c0d
Merge branch 'master' of https://github.com/redpony/cdec
redpony Mar 14, 2014
3b4b664
missing makefile
redpony Mar 14, 2014
4d653c9
missing commit
redpony Mar 14, 2014
cc87bfe
possible gcc comp error
redpony Mar 14, 2014
5250fd6
Merge remote-tracking branch 'upstream/master'
pks Mar 16, 2014
606e3e3
star function
redpony Mar 18, 2014
55beb71
star bool
redpony Mar 18, 2014
2a9ee1f
chris edits
Mar 18, 2014
0bcf79a
Fix number of jobs in mira script
mjdenkowski Mar 19, 2014
aeae0ee
fix meteor bugs with mira
Mar 20, 2014
a1ff38d
fix comment
Mar 20, 2014
6d94c34
don't get blocked on zombies
Mar 20, 2014
824ef65
fix crashes in mira
Mar 20, 2014
63a3894
Include full argv (including command) as arg 2 of execvp()
Mar 20, 2014
34785db
breadth first iterator for tree fragment
redpony Mar 27, 2014
ca29417
remove warnings
redpony Mar 27, 2014
8372086
almost complete tree to string translator
redpony Mar 31, 2014
dd47fa2
Include new bilex file
mjdenkowski Mar 31, 2014
8dc828a
minimally tested t2s translator
redpony Apr 1, 2014
2999e2b
Merge branch 'master' of https://github.com/redpony/cdec
redpony Apr 1, 2014
6a3e80b
tree2string test, fix for edge case
redpony Apr 1, 2014
241a993
deal with multiple grammars in t2s
redpony Apr 1, 2014
4025e1c
deal with multiple grammars in t2s
redpony Apr 1, 2014
b6925f4
check for empty hg
redpony Apr 2, 2014
32dcedf
deal with pass through rules
redpony Apr 2, 2014
c3ecdd0
speed up fast align by 20% or so
redpony Apr 2, 2014
e67832f
moses conversion script
Apr 3, 2014
c659420
fix floating point issue
Apr 3, 2014
e32e9fd
clean up dead TRule code
redpony Apr 7, 2014
6051462
new version of cythonized code
Apr 7, 2014
b9e6e7e
track node state for smarter union
redpony Apr 8, 2014
9ef6b49
remove accidentally committed file
Apr 8, 2014
b7d8454
track node_hash field
redpony Apr 8, 2014
7242963
setup for hpyplm being optional, different metrics
Apr 8, 2014
71c1f8b
smarter union
redpony Apr 9, 2014
6b00a98
don't hash on an internal id
Apr 9, 2014
5f3ec63
better logging of union stats
Apr 9, 2014
7440176
fix for loading parameters
Apr 10, 2014
6f6c219
Merge branch 'master' of github.com:redpony/cdec
Apr 10, 2014
1014d39
New feature: working implementation (online bilex)
mjdenkowski Apr 10, 2014
659ea32
Refactoring
mjdenkowski Apr 10, 2014
b09d059
rt.ini, hpyplm optional, specify metric
mjdenkowski Apr 10, 2014
649b5ff
fix for bug due to using wrong tree traversal
redpony Apr 16, 2014
a343418
fix rescoring
redpony Apr 18, 2014
f31a19b
Stream mode for grammar extractor
mjdenkowski Apr 18, 2014
5d3585f
Merge branch 'master' of github.com:redpony/cdec
mjdenkowski Apr 18, 2014
116e1ea
stdout feedback
mjdenkowski Apr 18, 2014
bcf989f
Each grammar extractor gets its own process to avoid Cython segfaults.
mjdenkowski Apr 18, 2014
1748e9a
binary derivations with maximal arity-2
redpony Apr 21, 2014
2af1d21
Merge branch 'master' of https://github.com/redpony/cdec
redpony Apr 21, 2014
4078d04
support for multiple xRs states in parser (not yet in rules)
redpony Apr 25, 2014
18a1d98
fix tree-to-string forest so it works with cube pruning assumptions
redpony Apr 25, 2014
d033a04
check for non-rescorable hypergraphs
redpony Apr 26, 2014
aa9d5d4
clean up headers
redpony Apr 27, 2014
6d81c38
Automatically generate some rt.ini options
May 2, 2014
77938f8
turn of span filtering
May 8, 2014
3cec93d
Merge branch 'master' of github.com:redpony/cdec
May 8, 2014
6d34902
Merge branch 'master' of https://github.com/redpony/cdec
redpony May 9, 2014
80778dd
better features
redpony May 9, 2014
8bf3c1b
missing header
May 9, 2014
c11c7af
remove fixed bug warning
redpony May 9, 2014
926ed91
use fma if available
redpony May 15, 2014
cddd94b
Added methods for retrieving unique k-best lists from hypergraphs
May 17, 2014
bb3f703
stub for t2t translator
redpony May 17, 2014
7df4ea7
Merge branch 'master' of https://github.com/redpony/cdec
redpony May 17, 2014
d1de1bb
check for duplicates when creating pass through rules
redpony May 17, 2014
ddd9976
fix unique check
May 17, 2014
23cd40b
Added information on how to recompile pycdec from the pyx files
May 18, 2014
f98c95a
Added a newline
May 18, 2014
4b3038e
Added t2s to the list of known pycdec formalisms
May 23, 2014
2edf602
support per sentence tree-to-string grammars
redpony May 24, 2014
fbb5528
Make sure SufficientStats constructor gets called
May 26, 2014
c5a8358
Merge branch 'master' of https://github.com/redpony/cdec
May 26, 2014
9745950
fix readme
redpony May 26, 2014
dc37257
Merge branch 'master' of https://github.com/redpony/cdec
redpony May 26, 2014
b66e838
fix for nonjoining chars
Jun 3, 2014
2449712
Merge remote-tracking branch 'upstream/master'
pks Jun 12, 2014
72ef434
move string_piece to utils/ from inside klm
redpony Jun 13, 2014
0218401
tree fragment accepts StringPiece instead of string
redpony Jun 13, 2014
cca7e44
stringpiece based parser for tree-to-string rules (foundation for t2t…
redpony Jun 13, 2014
b4ce7c0
new trule datastructure that can store t2s with multiple states (i.e.…
redpony Jun 13, 2014
001804e
Merge remote-tracking branch 'upstream/master'
pks Jun 15, 2014
284c2a9
reduce ambiguity due to pass through rules in t2s translation
redpony Jun 15, 2014
48027e9
Merge remote-tracking branch 'upstream/master'
pks Jun 27, 2014
d124d4a
track spans in t2s translation
redpony Jul 1, 2014
49671a7
Merge remote-tracking branch 'upstream/master'
pks Jul 4, 2014
d7df7aa
fix
pks Jul 18, 2014
8168581
comment about cluster file format
redpony Jul 22, 2014
4c67be1
Merge remote-tracking branch 'upstream/master'
pks Jul 22, 2014
f5bf8c9
fix parallelize.rb
pks Jul 22, 2014
ba5ebf1
Heidelberg LocalConfig.pm
pks Jul 22, 2014
7201ef7
mira qsub
pks Jul 22, 2014
a4b0e95
pro fix
pks Jul 22, 2014
b26d228
ignore
pks Jul 22, 2014
7cdaf68
make PassThrough1..N optional
pks Jul 29, 2014
ddb5935
fix
pks Jul 29, 2014
014714d
fix
pks Aug 2, 2014
f33ab2f
finally
pks Aug 2, 2014
f616df9
Don't depend on realtime in case people don't want to build pycdec.
mjdenkowski Aug 7, 2014
969b001
Option for static linking (./configure --with-static). Currently lim…
mjdenkowski Aug 7, 2014
5dfecf3
word error rate metric
Sep 4, 2014
b40c064
ld commit
Sep 6, 2014
2bc24dd
Merge pull request #50 from pks/master
redpony Sep 7, 2014
c06f127
upgrade to new boost.m4
Sep 8, 2014
643a5d4
make dependencies on MPI libraries explicit
Sep 8, 2014
0194054
fix for some new strictness with new gcc
Sep 8, 2014
24e0ff6
fix bug when there are too few features
Sep 11, 2014
3822a20
migrate to new Cython version
Sep 16, 2014
a861980
scaling weights, return dot and fmap from sampling, iterate over the
wilkeraziz Sep 17, 2014
c20decb
Merge pull request #51 from wilkeraziz/master
redpony Sep 17, 2014
574252c
added missing c++11 headers (could not compile with gcc-4.8)
wilkeraziz Sep 22, 2014
d88186a
Remove unused include.
pauldb89 Sep 23, 2014
dfad5ee
add error message
redpony Sep 28, 2014
6d39ed3
Add test-driver to .gitignore.
pauldb89 Sep 29, 2014
791d72e
Fix time tracking for suffix array construction.
pauldb89 Oct 2, 2014
cf58b49
Update C++ extractor ReadMe.
pauldb89 Oct 2, 2014
53ab488
Correct binary name in extractor ReadMe.
pauldb89 Oct 2, 2014
f762dbb
Import synutils
Oct 7, 2014
00968d1
Apply clang-format
Oct 7, 2014
577e6e7
Make synutils compile
Oct 7, 2014
6c7bf8c
Add ConstReorderFeature
Oct 7, 2014
8c26c19
Move synutils under utils
Oct 7, 2014
8c46c1e
Apply clang-format on ff_const_reorder.*
Oct 8, 2014
83a7a1e
Fix an out-of-bound access bug in maxent
Oct 8, 2014
4ebd159
make tree terminals available to feature functions
redpony Oct 9, 2014
4823bd6
fix const
redpony Oct 9, 2014
a82c420
patch for using ax_pthread
redpony Oct 9, 2014
a04b6a9
fix header names in util/
redpony Oct 9, 2014
186a591
fix header names in mteval/
redpony Oct 9, 2014
b88176d
fix header names in decoder/
redpony Oct 9, 2014
d8d6f0a
support bigger rules in arity feature
Oct 9, 2014
38c192e
Replace deprecated hash_map with unordred_map
Oct 10, 2014
c0097e3
Replace deprecated hash_map with unordred_map
Oct 10, 2014
c8341c0
Allow erasure of part of state
Oct 10, 2014
4649248
Remove using namespace std
Oct 10, 2014
6cb0425
Run clang-format
Oct 10, 2014
cf7f7fd
Trainers for reordering constraint models
Oct 10, 2014
b5f2aa9
Run clang-format
Oct 10, 2014
d4d2d2a
Top-level documentation for ConstReorderFeature
Oct 10, 2014
e632e84
Remove ConstReorderFeatureFactory
Oct 10, 2014
2a33cd8
Eliminate compiler warnings
Oct 10, 2014
71fc710
Merge branch 'const_reorder' of github.com:kho/cdec into const_reorder
Oct 12, 2014
787792a
deal with alignments in tree to string grammars
Oct 12, 2014
f83b953
fix bug
Oct 12, 2014
8c0e4a5
Cherry picked Mr.MIRA compatibility mode code
Oct 12, 2014
697885a
update date on configure.ac
redpony Oct 13, 2014
1b17f61
banner style
redpony Oct 13, 2014
b1ed81e
new kenlm
redpony Oct 13, 2014
cd7bc67
Added alignment to pass through rules in t2s
Oct 13, 2014
b26cda8
Merge branch 'master' of github.com:redpony/cdec
Oct 13, 2014
7d0990b
Add --show_derivations_mask to control what to print when --show_deri…
Oct 15, 2014
c7524d6
Merge pull request #58 from kho/xml
redpony Oct 17, 2014
e0b2257
test sparse vector serialization
Oct 19, 2014
9f055ef
support serialization of TRule with boost serialization
Oct 19, 2014
2bb5f3f
stop switch to boost serialization for hypergraph IO
Oct 19, 2014
fff4dc4
remove json hypergraph format
redpony Oct 19, 2014
816a230
missing test data
redpony Oct 19, 2014
f57542f
remove unnecessary test data
Oct 19, 2014
5f5adc5
remove json from grammar_convert
redpony Oct 19, 2014
e0bd22a
Merge branch 'master' of https://github.com/redpony/cdec
redpony Oct 19, 2014
cba04ba
fix cfg rescore test
redpony Oct 19, 2014
0968a3e
conll2cdec conversion
Oct 24, 2014
13d3dd3
extract features from converted conll files
Oct 25, 2014
e02b6af
remove unused arg
redpony Oct 25, 2014
328f380
bit more info
redpony Oct 25, 2014
34b7c1e
Junhui's implementation of soft syntax constraint features
Nov 1, 2014
af1cea5
typo fix
mjdenkowski Nov 16, 2014
41e89b4
Merge pull request #59 from kho/mrmira
redpony Nov 24, 2014
414e902
conll example in cdec
Nov 28, 2014
448b451
implementation of Rico Sennrich's CKY+ variant; it currently doesn't …
redpony Dec 1, 2014
a219592
Remove synutils.h
Dec 6, 2014
41bf230
Merge branch 'const_reorder' into softsyn
Dec 6, 2014
68fb48b
Remove synutils.h in ff_soft_syn.cc
Dec 6, 2014
1682786
Move non-MaxEnt code out of utils
Dec 6, 2014
2ffd51b
Merge branch 'const_reorder' into softsyn
Dec 6, 2014
e84e4b8
Use ff_const_reorder_common.h instead of tree.h
Dec 6, 2014
cf7cf1e
Remove unnecessary state from SoftSynFeature
Dec 6, 2014
9dff481
Remove unused code
Dec 6, 2014
6dbd2ee
Remove SBitArray and use vector<bool> instead
Dec 6, 2014
83a7d74
Remove index mapping
Dec 6, 2014
8fb14af
Remove unused field in TargetTranslation
Dec 7, 2014
99a1107
Merge branch 'const_reorder_no_state' into softsyn
Dec 9, 2014
2b30e44
Add IgnoredStateSize() to FeatureFunction
Dec 11, 2014
09e9a08
Merge branch 'const_reorder_no_state' into const_reorder_2
Dec 11, 2014
f30a8ff
Merge branch 'softsyn' into softsyn_2
Dec 11, 2014
b455a10
Remove index mapping; also read from attribute "src_tree"
Dec 12, 2014
8fc9d9e
Also read from attribute "src_tree"
Dec 12, 2014
d2c51ae
Warn about possible misuse of IgnoredStateSize() related functions
Dec 17, 2014
1a79175
Merge pull request #61 from kho/ignore_state
redpony Dec 17, 2014
0867694
Merge branch 'ignore_state' into const_reorder_2
Dec 17, 2014
62249e8
Move training routine out of ff_const_reorder_common.h
Dec 17, 2014
b6dd5a6
Combine everything related to maxent to a single file
Dec 17, 2014
7468e8d
Merge with upstream
Dec 17, 2014
6829a0b
Merge branch 'const_reorder_2' into softsyn_2
Dec 17, 2014
a059245
Merge pull request #63 from kho/const_reorder_2
redpony Dec 18, 2014
c684055
Fix a building problem
Dec 18, 2014
a617b8f
Merge pull request #65 from kho/const_reorder_2
redpony Dec 18, 2014
126c54e
Merge branch 'const_reorder_2' into softsyn_2
Dec 18, 2014
db1733f
Merge pull request #64 from kho/softsyn_2
redpony Dec 18, 2014
2723909
Sample dev and test sets with pseudo-documents
mjdenkowski Dec 19, 2014
d8e9f8c
Generalize to sample any number of dev sets
mjdenkowski Dec 20, 2014
8646b68
finnish abbrevs
Dec 29, 2014
5bc712f
foo
redpony Dec 29, 2014
4c4ab51
foo
redpony Dec 29, 2014
a66b193
finnish case markings
redpony Dec 29, 2014
992556c
deal with eur symbol
Dec 30, 2014
1bce604
Stop BOMbs before they decrease quality
kpu Jan 9, 2015
e2d9eb0
tool to dedupilate corpus with hashing
Feb 4, 2015
24cee87
support multiple sparse features on lattice edges
Feb 4, 2015
bf34351
Added dictionary support to PLF
Feb 4, 2015
bda62d4
Updated tests for lattice input
Feb 5, 2015
5b172f9
allow empty feature dictionaries
Feb 5, 2015
452a86f
fixed lattice gold files
Feb 5, 2015
0398975
when ApplyRules resizes nodes_, the reference to `cat` may become inv…
wilkeraziz Feb 19, 2015
6cbdccb
migration to cmake
redpony Mar 3, 2015
bafcdb6
remove perfect hash function stuff, add zip option to extract.cc
redpony Mar 5, 2015
a003126
remove warning
redpony Mar 5, 2015
d99c7b9
deal with libdl
Mar 5, 2015
55b75d9
deal with possible RT lib dependency
Mar 5, 2015
91434e5
fix extra logging
redpony Mar 5, 2015
154b799
Merge branch 'cmake' of https://github.com/redpony/cdec into cmake
redpony Mar 5, 2015
09bfdc0
fix bug
Mar 27, 2015
c2ab0fd
Merge branch 'master' of https://github.com/redpony/cdec
Mar 27, 2015
f66d866
fix sign bug
Mar 27, 2015
8c70e2c
fix libRT use
redpony Apr 2, 2015
b94534e
fix PIC flag on old version of cmake
Apr 2, 2015
d183828
Merge pull request #70 from redpony/cmake
redpony Apr 2, 2015
ccf2768
new instr
Apr 2, 2015
836ed51
Merge pull request #71 from redpony/cmake
redpony Apr 2, 2015
72ade06
flags for zlib etc
redpony Apr 9, 2015
a5d59c8
Merge pull request #72 from redpony/cmake
redpony Apr 9, 2015
af9aa78
added WER as a possible tuning metric
Apr 9, 2015
39ca6d8
added missed files
Apr 9, 2015
1dc8a0f
fix kenlm's use of compression libraries
redpony Apr 9, 2015
967c612
Fixed bug in MPL detection
Apr 10, 2015
9484958
Moses compatibility for tokenizer
Apr 13, 2015
6a8bb15
Parallel tokenization
mjdenkowski Apr 14, 2015
aba14a7
copy scripts
redpony Apr 27, 2015
66bfbba
Update run-system-tests.pl
amittai Apr 29, 2015
5efe612
Merge pull request #73 from amittai/patch-1
redpony May 11, 2015
0a45e30
deal with curly quotes
May 22, 2015
d42f17e
read gz files
redpony May 22, 2015
c3001fe
Update mira.py
amittai May 24, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
244 changes: 244 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
example_extff/libff_example.so*
Testing/
*/Testing/
training/Testing/
utils/Testing/
CTestTestfile.cmake
cmake_install.cmake
CMakeCache.txt
CMakeFiles
utils/dedup_corpus
klm/lm/builder/dump_counts
klm/util/cat_compressed
example_extff/libff_example.1.0.0.dylib
example_extff/libff_example.1.dylib
example_extff/libff_example.dylib
example_extff/ff_example.lo
example_extff/libff_example.la
mteval/meteor_jar.cc
training/utils/grammar_convert
*.a
*.trs
*.aux
*.bbl
*.blg
*.dvi
*.idx
*.log
*.o
*.pdf
*.ps
*.pyc
*.so
*.toc
*swp
*~
.*
./cdec/
Makefile
Makefile.in
aclocal.m4
autom4te.cache/
config.guess
config.h
config.h.in
config.h.in~
config.log
config.status
config.sub
configure
decoder/Makefile
decoder/Makefile.in
decoder/bin/
decoder/cdec
decoder/dict_test
decoder/sv_test
decoder/ff_test
decoder/grammar_test
decoder/hg_test
decoder/logval_test
decoder/parser_test
decoder/rule_lexer.cc
decoder/small_vector_test
decoder/t2s_test
decoder/trule_test
decoder/weights_test
depcomp
dist
dpmert/Makefile
dpmert/Makefile.in
dpmert/fast_score
dpmert/lo_test
dpmert/mr_dpmert_generate_mapper_input
dpmert/mr_dpmert_map
dpmert/mr_dpmert_reduce
dpmert/scorer_test
dpmert/sentclient
dpmert/sentserver
dpmert/union_forests
dtrain/dtrain
extools/build_lexical_translation
extools/extractor
extools/extractor_monolingual
extools/featurize_grammar
extools/filter_grammar
extools/filter_score_grammar
extools/mr_stripe_rule_reduce
extools/score_grammar
extools/sg_lexer.cc
extractor/*_test
extractor/compile
extractor/extract
extractor/run_extractor
extractor/sacompile
gi/clda/src/clda
gi/markov_al/ml
gi/pf/align-lexonly
gi/pf/align-lexonly-pyp
gi/pf/align-tl
gi/pf/bayes_lattice_score
gi/pf/brat
gi/pf/cbgi
gi/pf/condnaive
gi/pf/dpnaive
gi/pf/itg
gi/pf/learn_cfg
gi/pf/nuisance_test
gi/pf/pf_test
gi/pf/pfbrat
gi/pf/pfdist
gi/pf/pfnaive
gi/pf/pyp_lm
gi/posterior-regularisation/prjava/build/
gi/posterior-regularisation/prjava/lib/*.jar
gi/posterior-regularisation/prjava/lib/prjava-20100713.jar
gi/posterior-regularisation/prjava/lib/prjava-20100715.jar
gi/posterior-regularisation/prjava/prjava.jar
gi/pyp-topics/src/contexts_lexer.cc
gi/pyp-topics/src/pyp-contexts-train
gi/pyp-topics/src/pyp-topics-train
install-sh
jam-files/bjam
jam-files/engine/bin.*
jam-files/engine/bootstrap/
klm/lm/bin/
klm/lm/builder/builder
klm/lm/builder/lmplz
klm/lm/build_binary
klm/lm/ngram_query
klm/lm/query
klm/util/bin/
libtool
ltmain.sh
m4/libtool.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
minrisk/minrisk_optimize
mira/kbest_mira
missing
mteval/bin/
mteval/fast_score
mteval/mbr_kbest
mteval/scorer_test
phrasinator/gibbs_train_plm
phrasinator/gibbs_train_plm_notables
previous.sh
pro-train/mr_pro_map
pro-train/mr_pro_reduce
python/build
python/setup.py
rampion/rampion_cccp
rst_parser/mst_train
rst_parser/random_tree
rst_parser/rst_parse
rst_parser/rst_train
sa-extract/calignment.c
sa-extract/cdat.c
sa-extract/cfloatlist.c
sa-extract/cintlist.c
sa-extract/clex.c
sa-extract/cstrmap.c
sa-extract/csuf.c
sa-extract/cveb.c
sa-extract/lcp.c
sa-extract/precomputation.c
sa-extract/rule.c
sa-extract/rulefactory.c
sa-extract/sym.c
stamp-h1
tests/system_tests/hmm/foo.src
training/Makefile
training/Makefile.in
training/atools
training/augment_grammar
training/cllh_filter_grammar
training/collapse_weights
training/grammar_convert
training/lbfgs_test
training/lbl_model
training/liblbfgs/bin/
training/liblbfgs/ll_test
training/model1
training/mpi_batch_optimize
training/mpi_adagrad_optimize
training/mpi_compute_cllh
training/mpi_em_optimize
training/mpi_extract_features
training/mpi_extract_reachable
training/mpi_flex_optimize
training/mpi_online_optimize
training/mr_em_adapted_reduce
training/mr_em_map_adapter
training/mr_optimize_reduce
training/mr_reduce_to_weights
training/optimize_test
training/plftools
training/test_ngram
training/const_reorder/argument_reorder_model_trainer
training/const_reorder/const_reorder_model_trainer
utils/atools
utils/bin/
utils/crp_test
utils/dict_test
utils/logval_test
utils/m_test
utils/mfcr_test
utils/phmt
utils/reconstruct_weights
utils/small_vector_test
utils/sv_test
utils/ts
utils/weights_test
training/crf/mpi_adagrad_optimize
training/crf/mpi_batch_optimize
training/crf/mpi_baum_welch
training/crf/mpi_compute_cllh
training/crf/mpi_extract_features
training/crf/mpi_extract_reachable
training/crf/mpi_flex_optimize
training/crf/mpi_online_optimize
training/dpmert/lo_test
training/dpmert/mr_dpmert_generate_mapper_input
training/dpmert/mr_dpmert_map
training/dpmert/mr_dpmert_reduce
training/dpmert/sentclient
training/dpmert/sentserver
training/dtrain/dtrain
training/latent_svm/latent_svm
training/minrisk/minrisk_optimize
training/mira/ada_opt_sm
training/mira/kbest_mira
training/mira/kbest_cut_mira
training/pro/mr_pro_map
training/pro/mr_pro_reduce
training/rampion/rampion_cccp
training/utils/lbfgs_test
training/utils/optimize_test
training/utils/sentclient
training/utils/sentserver
utils/stringlib_test
word-aligner/binderiv
word-aligner/fast_align
test-driver
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: python
python:
- "2.7"
before_script:
- sudo apt-get install libboost-filesystem1.48-dev
- sudo apt-get install libboost-program-options1.48-dev
- sudo apt-get install libboost-serialization1.48-dev
- sudo apt-get install libboost-regex1.48-dev
- sudo apt-get install libboost-test1.48-dev
- sudo apt-get install libboost-system1.48-dev
- sudo apt-get install libboost-thread1.48-dev
- sudo apt-get install flex
- autoreconf -ifv
- ./configure
script:
- make
- cd python
- python setup.py install
- cd ..
after_script:
- make check
- ./tests/run-system-tests.pl
- nosetests python/tests
32 changes: 32 additions & 0 deletions BUILDING
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
To build cdec, you'll need:

* boost headers & boost program_options (you may need to install a package
like libboost-dev)


Instructions for building
-----------------------------------

1) Create a build directory and generate Makefiles using CMake

mkdir build
cd build
cmake ..

If the cmake command completes successfully, you can proceed. If you have
libraries (such as Boost) installed in nonstandard locations, you may need
to run cmake with special options like -DBOOST_ROOT=/path/to/boost.

2) Build

make -j 2

3) Test
make test
./tests/run-system-tests.pl

Everything should pass.


4) Enjoy!

68 changes: 68 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
cmake_minimum_required(VERSION 2.8)
project(cdec)

add_definitions(-DKENLM_MAX_ORDER=6 -DHAVE_CONFIG_H)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
set(CMAKE_CXX_FLAGS "-Wall -std=c++11 -O3")
set(METEOR_JAR "" CACHE FILEPATH "Path to meteor.jar")

enable_testing()
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})

# core packages
find_package(LibDL REQUIRED)
find_package(Boost COMPONENTS regex filesystem serialization program_options unit_test_framework system thread REQUIRED)
include_directories(${Boost_INCLUDE_DIR})

# eigen, used in some modeling extensions
find_package(Eigen3)
if(EIGEN3_FOUND)
include_directories(${EIGEN3_INCLUDE_DIR})
set(HAVE_EIGEN 1)
endif(EIGEN3_FOUND)

# compression packages (primarily used by KenLM)
find_package(ZLIB REQUIRED)
if(ZLIB_FOUND)
set(HAVE_ZLIB 1)
endif(ZLIB_FOUND)
find_package(BZip2)
if(BZIP2_FOUND)
set(HAVE_BZLIB 1)
endif(BZIP2_FOUND)
find_package(LibLZMA)
if(LIBLZMA_FOUND)
set(HAVE_XZLIB 1)
endif(LIBLZMA_FOUND)

# for pycdec
find_package(PythonInterp 2.7 REQUIRED)

# generate config.h
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)

add_subdirectory(utils)
add_subdirectory(klm/util/double-conversion)
add_subdirectory(klm/util)
add_subdirectory(klm/util/stream)
add_subdirectory(klm/lm)
add_subdirectory(klm/lm/builder)
add_subdirectory(klm/search)
add_subdirectory(mteval)
add_subdirectory(decoder)
add_subdirectory(training)
add_subdirectory(word-aligner)
add_subdirectory(extractor)
add_subdirectory(example_extff)

set(CPACK_PACKAGE_VERSION_MAJOR "2015")
set(CPACK_PACKAGE_VERSION_MINOR "04")
set(CPACK_PACKAGE_VERSION_PATCH "26")
set(CPACK_SOURCE_GENERATOR "TBZ2")
set(CPACK_SOURCE_PACKAGE_FILE_NAME
"${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_SOURCE_IGNORE_FILES
"/.git/;/.gitignore;/Testing/;/build/;/.bzr/;~$;/CMakeCache.txt;/CMakeFiles/;${CPACK_SOURCE_IGNORE_FILES}")
include(CPack)

Loading