moses-smt / giza-pp

GIZA++ is a statistical machine translation toolkit that is used to train IBM Models 1-5 and an HMM word alignment model. This package also contains the source for the mkcls tool which generates the word classes necessary for training some of the alignment models.
264 stars 83 forks source link

c++ library #1

Closed flovera1 closed 7 years ago

flovera1 commented 7 years ago

hi guys, i'm trying to make "make" (haha lol), but i'm getting this error:

./mystl.h:28:10: fatal error: 'tr1/unordered_map' file not found

this is for the calling in line 28 in file mystl.h

please pin me if you can help me!.

hieuhoang commented 7 years ago

What OS and what compiler are you using?

flovera1 commented 7 years ago

hey man, I'm using macOS Sierra and my c++ compiler is the one as default from Xcode.

Kind regards,

Fernando A. Lovera Simon Bolivar's University

about.me/fernandolovera https://about.me/t/r?u=https%3A//about.me/fernandolovera&s=account_creation&i=2395561&k=email_signature_link&t=1378072020

On 27 February 2017 at 17:31, Hieu Hoang notifications@github.com wrote:

What OS and what compiler are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/moses-smt/giza-pp/issues/1#issuecomment-282772064, or mute the thread https://github.com/notifications/unsubscribe-auth/ABo-ZeMJGCuOJMrByvU0oOZMFQO8TA3uks5rgvpggaJpZM4MNUcW .

hieuhoang commented 7 years ago

I suggest you use mgiza. https://github.com/moses-smt/mgiza It's compatible with giza++, it's maintained and kept up to date

flovera1 commented 7 years ago

are you saying that giza++ is not compatible with macos ? Oo

Fernando A. Lovera Simon Bolivar's University

about.me/fernandolovera https://about.me/t/r?u=https%3A//about.me/fernandolovera&s=account_creation&i=2395561&k=email_signature_link&t=1378072020

On 28 February 2017 at 12:02, Hieu Hoang notifications@github.com wrote:

I suggest you use mgiza. https://github.com/moses-smt/mgiza It's compatible with giza++, it's maintained and kept up to date

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/moses-smt/giza-pp/issues/1#issuecomment-283009862, or mute the thread https://github.com/notifications/unsubscribe-auth/ABo-ZWbKy3j4JfvXESG-o0aPTMK3CqU7ks5rg_6vgaJpZM4MNUcW .

hieuhoang commented 7 years ago

doesn't look like it.

frankier commented 7 years ago

This can be worked around by:

  1. Adding -stdlib=libstdc++ to CFLAGS in the Makefiles of Giza++ and mkcls

  2. Changing all references to tr/unordered_map to unordered_map (not tested)

LeonIdeal commented 5 years ago

I met the problem with ./mystl.h:28:10: fatal error: 'tr1/unordered_map' file not found And I wonder if you have solved the problem. If do, please give me a hand, thanks!