Integrating OpenAI Web Search API in LangGraph Programming Computer Science by usmanmalik57 … of the LLM response. ```python class WebState(TypedDict): input: str ai_msg: AIMessage output: str def ask_web(state: WebState) -> WebState: # State ->… Re: Coin Flip (Python Newbie) Programming Software Development by Dani > Presumably bumping every "coinflip" post to spam their URL Nothing wrong with that!! I'll take a trillion helpful posts if all someone wants in exchange is a free signature link back to their website (that only shows up for logged in members, so no SEO incentive). Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks Programming Computer Science by usmanmalik57 … 'text' are empty strings dataset = dataset[(dataset['airline_sentiment'].str.strip() != '') & (dataset['text'].str.strip() != '')] # Filter the DataFrame for each sentiment neutral_df… Re: Coin Flip (Python Newbie) Programming Software Development by jassonadder … print("Out of 100 flips, " + str(coin_heads) + " were heads and " + str(coin_tails) + " were tails.") This version… DeepSeek R1 vs Llama 3.1-405b for Text Classification and Summarization Programming Computer Science by usmanmalik57 … 'text' are empty strings dataset = dataset[(dataset['airline_sentiment'].str.strip() != '') & (dataset['text'].str.strip() != '')] # Filter the DataFrame for each sentiment neutral_df… Re: Question/Answering over SQL Data Using LangGraph Framework Programming Computer Science by Pelorus_1 Through its combination of natural language processing and structured query generation, LangGraph makes interfacing with databases and extracting insights over SQL data easier than ever. Re: Text Classification and Summarization with DeepSeek R1 Distill Llama 70B Programming Computer Science by policenbicleara Llama-70B struggles with sentiment analysis (69% accuracy) vs. Qwen-32B (87%). Summarization performance is weaker, with lower ROUGE scores. Qwen-32B is the better choice—smaller, faster, and more accurate. Re: Text Classification and Summarization with DeepSeek R1 Distill Llama 70B Programming Computer Science by Pelorus_1 Great breakdown of DeepSeek R1 Distill LLaMA 70B! The explanation of text classification and summarization is clear and insightful. Appreciate the practical examples—makes implementation much easier. Thanks for sharing! Re: Why is str.count not working Programming Software Development by Gribouillis str.count() example: >>> "abracadabra".count("ab") 2 >>> (char*)str+3 is acting like str+2 Programming Software Development by Adm666 … main() { int b1, b2, len; char str[LENGTH]; printf("Enter length and two indexes followed…strb1:%s strb2:%s str:%s\n",len,(char*)str+b1,(char*)str+b2,str); printf("Mybcmp …result: %d\n",my_bcmp((char*)str+b1,(char*)str+… concatenate 3 string (char str[30]) using operator overloading Programming Software Development by moaz.amin.37 … class count { private: char str[50]; public: count() { str[0]='r'; } void input()…count t; strcpy(t.str,str); strcat(t.str,x.str); strcat(t.str,y.str) return t; } … Re: (char*)str+3 is acting like str+2 Programming Software Development by tinstaafl …main() { int b1, b2, len; char str[LENGTH]; printf("Enter length and two indexes…:%s strb2:%s str:%s\n", len, (char*)str + b1, (char*)str + b2, str); printf("Mybcmp… result: %d\n", my_bcmp((char*)str + b1, (char*)str + … Re: (char*)str+3 is acting like str+2 Programming Software Development by ryantroop …() { int b1, b2, len; char str[LENGTH]; char *pStr = str; printf("Enter length and two indexes followed… printf("Enter a string:\n"); fgets (str, LENGTH, stdin); printf("len:%d strb1:%s…see what it has. ex: printf("Value at str[0]: %d", *pStr); //get the … Re: (char*)str+3 is acting like str+2 Programming Software Development by tinstaafl …int main() { int b1, b2, len; char str[LENGTH]; char* temp; printf("Enter length and two… strb1:%s strb2:%s str:%s\n",len,(char*)str+b1,(char*)str+b2,str); printf("Mybcmp result…: %d\n",my_bcmp((char*)str+b1,(char*)str+b2… warning: array ‘str’ assumed to have one element [enabled by default] Programming Software Development by tubby123 …<string.h> #include<malloc.h> char* str[]; int i = 0; int main(void) { for(i=0;…(200 * sizeof(char)); strcpy(str[0],"hello"); strcpy(str[1],"my"); strcpy(str[2],"name"); strcpy…i=0; i<5; i++) printf("[%s]",str[i]); return 0; }[/CODE] What is the cause for this… HELP: What's wrong with this? str[counter].toUpperCase(charAt(0)) Programming Software Development by Johannady2 … void main (String[]args){ String[] word = new String[5]; String[] str = new String[5]; String str0 , str1, str2,str3, str4 ;…;word assigned to word[" + counter + "]."); str[counter] = word[counter]; str[counter].toUpperCase(charAt(0));/* error: cannot find symbol… Re: HELP: What's wrong with this? str[counter].toUpperCase(charAt(0)) Programming Software Development by Johannady2 …. It wouldn't work because the output of ## /*Character.toUpperCase(str[counter].charAt(0));*/ ## is a char. I want it to… void main (String[]args) { String[] word = new String[5]; String[] str = new String[5]; char[] firstletter = new char[5]; String str0… Re: concatenate 3 string (char str[30]) using operator overloading Programming Software Development by moaz.amin.37 …); } count operator +(count x) { count t; strcpy(t.str,str); strcat(t.str,x.str); return t; } void show() { cout<<"string… Re: concatenate 3 string (char str[30]) using operator overloading Programming Software Development by Ancient Dragon … the code I'm trying to tell you about. count() { str[0]='\0'; } count operator +(count x) { count t; strcpy(t… Vigenere, Str Programming Software Development by hbluthi …py from graphics import * def encode(message, key): str.upper(message) str.upper(key) str.replace(message, " ", "") encodedMessage… ## key = "CABCABCABCABCABCABCABCAB" ## str.replace(message, " ", "") ## str.upper(message) ## str.upper(key) ## key = key1 * (len… Re: HELP: What's wrong with this? str[counter].toUpperCase(charAt(0)) Programming Software Development by Johannady2 …(String[]args) { String[] word = new String[5]; String[] str = new String[5]; char[] firstletter = new char[5]; int[]…+ counter + "]."); str[counter] = word[counter]; x[counter] = str[counter].length(); prefix[counter] = str[counter].substring(0,1).toUpperCase();… Re: HELP: What's wrong with this? str[counter].toUpperCase(charAt(0)) Programming Software Development by Johannady2 …); static String[] word = new String[5]; static String[] str = new String[5]; static char[] firstletter = new char[5…+ counter + "]."); str[counter] = word[counter]; x[counter] = str[counter].length(); prefix[counter] = str[counter].substring(0,1).toUpperCase();… TypeError: unsupported operand type(s) for /: 'str' and 'float' in python Programming Software Development by gudivada213 …if data[5]=="E": longitude=str(data[5]/100.0) else: longitude=str((-data[5])/100.0) linedata = {'time…py", line 15, in <module> latitude=str((data[3])/100.0) TypeError: unsupported operand type(s) …for /: 'str' and 'float' please explain why i am getting this error… Re: warning: array ‘str’ assumed to have one element [enabled by default] Programming Software Development by Ancient Dragon …] is the same thing as [icode]char** str;[/icode], which is a two dimensional array where both dimensions …are unspecified and must be allocated at runtime. [icode]char* str[5];[/icode] is also a two dimensional array, but in… Re: warning: array ‘str’ assumed to have one element [enabled by default] Programming Software Development by Adak …making your space, adequate and explicit. IMO, this: char str[n][m] is a true two dimensional array char… array, but not the exact same thing. Work it clockwise: str -> [] string is an array [] -> * of pointers * - >…, then continues on around still going clockwise around str, to find char In a spiraling clockwise loop. Re: warning: array ‘str’ assumed to have one element [enabled by default] Programming Software Development by tubby123 …your space, adequate and explicit. IMO, this: char str[n][m] is a true two dimensional array char… array, but not the exact same thing. Work it clockwise: str -> [] string is an array [] -> * of pointers * - … line, then continues on around still going clockwise around str, to find char In a spiraling clockwise loop.[/QUOTE]… Re: warning: array ‘str’ assumed to have one element [enabled by default] Programming Software Development by Adak …=tubby123;1782721]Hi, I get the error "warning: array ‘str’ assumed to have one element [enabled by default]" when… count the number of strings I need, for me char *str[]; {"hello","my","name","…=0; i<5; i++) printf("%s\n",str[i]); return 0; }[/CODE] That's how I'd write… Re: concatenate 3 string (char str[30]) using operator overloading Programming Software Development by Ancient Dragon … results of line 43 will not overflow the size of str (line 7)? line 20: What is the contents of… that point? Hint: undetermined because you failed to initialize str in the constructor. Just setting the first byte to 'r' … Re: (char*)str+3 is acting like str+2 Programming Software Development by Adm666 …%d%d%s", &len, &b1, &b2,str); Re: (char*)str+3 is acting like str+2 Programming Software Development by Max_24 It's not working because fgets get the entire string after the last digit picked up by scanf, incluse the space character between the digit and the string. So str is 'space','1','2',.... Just add a space after %d in scanf