Closed piedralaves closed 1 year ago
Can we cancel the effect of that dll? Is sentencepiece important? I mean, can we comment the lines where that library works and fix the whole code in order to allow the answer without its intervention?
We did it and the service seems to work propertly. It returns the sequences as well.
Thanks
Hi @piedralaves
SentencePiece is optional. You can safely comment it out if you don't want to use it. I will update it in SeqWebAPIs
If you want to use SentencePiece, you can either: 1) Use sentencepiece dll or lib file under C:\Works\Projects\Seq2SeqSharp\dll or 2) Build sentencepiece using code in Seq2SeqSharp\ExternalProjects\SentencePiece.zip or 3) git clone https://github.com/zhongkaifu/sentencepiece , build it locally and copy dll or lib files to the same folder of SeqWebAPIs
Because the original sentencepiece doesn't have interface for C# calling, so it's a modified version in Seq2SeqSharp.
Let me know if you have any further questions.
Thanks Zhongkai Fu
Dear Zhongkai,
We have a problem running the API. We are running a sequence to sequence topology.
When the procedure Startup is fired, and then the statement "var srcSentPiece = new SentencePiece( Configuration[ "Seq2Seq:SrcSentencePieceModelPath", a library called sentencepiece is needed.
We put the sentencepiece.dll in the bin folder, but this doesn`t work.
The fact is that our model has not been trained with that tokenizer, so for us is useless.
Two questions:
why "SrcSentencePieceModelPath" and "TgtSentencePieceModelPath" are mandatory? How can we load sentencepiece.dll in your API project?
` public Startup( IConfiguration configuration ) { int maxTestSrcSentLength; int maxTestTgtSentLength; ProcessorTypeEnums processorType; string deviceIds;
` Many thanks