-
Notifications
You must be signed in to change notification settings - Fork 561
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
C# API client #98
C# API client #98
Conversation
c# client source code
This reverts commit 3839d39.
Hi @anguoyang thanks for contributing this first version of the client! I have several remarks that needs to be addressed before this code can make it into deepdetect. I would definitely understand if you do not have the time required to make the changes. Remarks are below:
Again, thanks for this first version, let me know if you believe you'd be able to provide changes to accomodate some of the points above! |
Hi, @beniz ,
A: Yes, it is a good idea to make the API calls programmatically, I will add it recently. As for JObject, it is only the output/result string object.
A:Ok, I will learn from it, although I am not familiar with python, it is not difficult.
A:Yes, I agree with you, I need to add try catch for it.
A: I have not used these functions, in this first version, I only used the "predict", but util now, I have already added "service creation -put_service", "service deletion" and with some other update, and in the next days will add train, and hopefully add the "getting current services", for probs() or problast, I public static string GetMiddle(string full, string start, string end)
{
int IndexofA = full.IndexOf(start);
int IndexofB = full.IndexOf(end);
return full.Substring(IndexofA + start.Length, IndexofB - IndexofA - start.Length);
}
prediction = GetMiddle(result, "\"prob\": ", ",\r\n");
cat = GetMiddle(result, "\"cat\": ", "\"\r\n}");
cat = cat.Substring(cat.IndexOf(" ") + 1); It will not take so much time for me on C# client, so, please don't worry about it:), actually, I am happy to be a member of deepdetect. |
hi @anguoyang thanks for taking the time and energy for this!
You may have to use it as input as well. If users can programmatically build a JObject for each of the section of the API objects (
Yes, at the moment the return to Don't hesitate if you have questions and / or need help on any of the related topics. |
Hi @anguoyang , Have you completed this C# port? |
add c# client source code