Comments (2)
Same issue on Debian with GCC 12. I changed code as following and it works.
diff --git a/src/NiuTrans.Decoder/DataCheck.cpp b/src/NiuTrans.Decoder/DataCheck.cpp
index 94b888f..5c39329 100644
--- a/src/NiuTrans.Decoder/DataCheck.cpp
+++ b/src/NiuTrans.Decoder/DataCheck.cpp
@@ -34,7 +34,7 @@
namespace smt{
-bool DataChecker::CheckInputSentences(const char * fn, bool forTuning, int nref)
+void DataChecker::CheckInputSentences(const char * fn, bool forTuning, int nref)
{
char * line = new char[MAX_LINE_LENGTH];
char * msg = new char[1024];
diff --git a/src/NiuTrans.Decoder/DataCheck.h b/src/NiuTrans.Decoder/DataCheck.h
index afed948..fe0bafe 100644
--- a/src/NiuTrans.Decoder/DataCheck.h
+++ b/src/NiuTrans.Decoder/DataCheck.h
@@ -50,7 +50,7 @@ public:
~DataChecker(){};
public:
- static bool CheckInputSentences(const char * fn, bool forTuning, int nref);
+ static void CheckInputSentences(const char * fn, bool forTuning, int nref);
static bool CheckSentence(const char * sent, char * msg);
static bool CheckModelFiles(Configer * configer);
diff --git a/src/NiuTrans.Decoder/TrainingAndDecoding.cpp b/src/NiuTrans.Decoder/TrainingAndDecoding.cpp
index b8a8ec1..eabcabc 100644
--- a/src/NiuTrans.Decoder/TrainingAndDecoding.cpp
+++ b/src/NiuTrans.Decoder/TrainingAndDecoding.cpp
@@ -388,7 +388,7 @@ void OurSystem::InitForDecodingForServicecMode(int threadNum)
void OurSystem::ReadTestSentences(const char * testfn)
{
- char line[MAX_LINE_LENGTH/4] = "";
+ char line[MAX_LINE_LENGTH] = "";
/* load test sentences */
FILE * file = fopen(testfn, "rb");
from niutrans.smt.
Hi, I am using the latest version of NiuTrans.SMT, and while following the Quick Walkthrough of the user manual, I encountered the following issue:
I am running this on Centos Stream 8. Please do advise. Thank you!
We have fixed this bug in the latest version. Please check it out. Many thanks to @llccd .
from niutrans.smt.
Related Issues (9)
- Multiple compile issues on Linux HOT 3
- 语料对齐问题 HOT 18
- perl NiuTrans-running-segmenter.pl -lang ch -input ../sample-data/sample-submission-version/Test-set/Niu.test.txt -output ./sample-data/sample-submission-version/Test-set/pred -method 11 HOT 3
- clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [NiuTrans.Decoder] Error 1 make: *** [all] Error 2 HOT 1
- Error about "NiuTrans-running-segmenter" HOT 1
- 请问机器翻译中应该如何处理关于表情与特殊符号的问题 HOT 2
- Error: Execution of: ../bin/NiuSegmenter_CN_x64 ../config/NiuTrans.NiuSeg.ch.config tmp.config.chi 11101 HOT 2
- 特定领域的翻译问题, 使用统计翻译模型大概需要多少数据量才能得到合理的翻译结果 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from niutrans.smt.