Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
characters
- Page 1
7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM
Programming
Computer Science
4 Days Ago
by usmanmalik57
… 2. the number of response tokens (maximum
characters
in response) 3. the model temperature (the…) """ print(f"Total
characters
in original paragraph: {len(paragraph)}") input_text…generate_response(input_text, 500, 0.9) print(f"Total
characters
in summarized paragraph: {len(response)}") print(response) …
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
…. We divide our documents into chunks of 1000
characters
with an overlap of 200
characters
between all chunks. ``` splitter = RecursiveCharacterTextSplitter( chunk_size=1000…
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
3 Weeks Ago
by Reverend Jim
… have to ensure the backslashes are not read as escape
characters
. Try image = cv2.imread(r'C:\Users\Audun Nilsen\Pictures…
Reducing Video Frames and Frame Rates (FPS) in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
…attachments/4/75af855a7a34d104a070ac20e6793656.png) ## Reducing FPS of Videos with Special
Characters
in Names ## Sometimes, you might encounter videos that have … a modified `reduce_fps` function that writes video files with special
characters
in their names. ``` def reduce_fps(video_path, output_directory, new_fps): # Extract …
Comparing Google Gemini Pro with OpenAI GPT-4 for Zero-Shot Classification
Programming
Computer Science
1 Month Ago
by usmanmalik57
… | Gemini Pro| 53.3s | 93% | $0.00025 per 1k
characters
| | GPT-4 | 2min 38s | 95% | $0.00750 app …per 1k
characters
| |------------------------------------------------------------------| ``` To conclude, I suggest you try Gemini …
Re: Issues migrating Magento products
Programming
Web Development
2 Months Ago
by anastefanyuk
…, correct nesting of elements, and no stray
characters
outside of tags. Tools like online XML validators…helpful in this regard. Whitespace and Invisible
Characters
: Sometimes, invisible
characters
or additional whitespaces can cause issues. Make… an advanced text editor that can show hidden
characters
. File Encoding: Ensure that your XML file …
Re: Extracting values from capturing groups in regex
Programming
Software Development
1 Month Ago
by AndreRet
… an expression with repetitions will attempt to match as many
characters
as possible. The asterisk (*), plus (+), question mark (?), and curly braces… flag to make the dot (.) in the pattern match newline
characters
as well.
Re: Reducing Video Frames and Frame Rates (FPS) in Python
Programming
Computer Science
2 Months Ago
by Reverend Jim
Since the underlying tool is ffmpeg, why bother with all the code and overhead? You can just use ffmpeg directly with the -r option. Aside from this I enjoyed the article (and the others you have posted).
Re: Reducing Video Frames and Frame Rates (FPS) in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
Yes, that's an option, but while you are developing Python applications where you have to process multiple videos, I don't think ffmpeg is scalable enough. Thanks for your feedback r though :)
Re: Sentiment Analysis with Data Augmentation Using ChatGPT
Programming
Computer Science
2 Months Ago
by Abdul_116
Fascinating to see sentiment analysis being applied to understand Pakistani consumers on High Street Pakistan! As online shopping thrives, it'd be interesting to compare brand opinions on both platforms - how do traditional High Street stores fare against online giants in terms of sentiment? Could data augmentation help bridge the data gap for …
Re: Terminating Zero Problem
Programming
Software Development
14 Years Ago
by Schoorsteen
Characters
.
Re: Invalid Email Characters?
Programming
Web Development
19 Years Ago
by samaru
&
characters
are allowed, however, there are some e-mail providers that don't allow you to have that character in your account name.
Re: Converting characters to hexadecimals
Programming
Software Development
10 Years Ago
by rubberman
Characters
are 8 bit integers. Use the appropriate printf format strings. To output the hex value of a character you would use %.02x
Re: Wow I'm really stuck on this one. I need to make a rectangle out of symbols.
Programming
Software Development
16 Years Ago
by Dave Sinkula
Characters
along the top. One character, a bunch of spaces, one character.
Characters
along the bottom.
Re: How do you add a char?
Programming
Software Development
14 Years Ago
by Tom Gunn
…' '8'+1 = '9' '9'+1 = ??? [/code] Be warned! The only
characters
that have any kind of order specified by C++ are… that do not use the same values, like EBCDIC. Summary:
Characters
are small integers, you can do arithmetic on them just…. If you rely on any kind of order for other
characters
, or the actual value of any character, your code may…
Re: Comparing string with an integer value and with a character
Programming
Software Development
12 Years Ago
by jonsca
Characters
in a string can be accessed by array notation: [code] … character with your if statement. If they are all alphabet
characters
, then don't reprompt the user, but if even one… reporompt them: [code] bool allalpha; while(!allalpha) { for (over the
characters
) { if(character is among 'a' to 'z' or 'A' to…
Re: Can We Sort Character like Number in c++ ?
Programming
Software Development
15 Years Ago
by MosaicFuneral
Characters
can be easily sorted the way numbers are, since they are numbers.
Re: one demensional parallel arrays
Programming
Software Development
13 Years Ago
by jonsca
Characters
are essentially nothing more than 1-byte integers. So if …
Re: Java Interpreter: LET Statement
Programming
Software Development
13 Years Ago
by kramerd
Characters
in Java are represented by ASCII codes. That means you …
characters of cards
Programming
Software Development
15 Years Ago
by Sa_FF
….value, deck[i].cartas.suit); [/CODE] it prints, but all
characters
are wrong... and i look for then in the table…
Re: characters of cards
Programming
Software Development
15 Years Ago
by Sa_FF
… in portuguese.. i just wanna know how to print the
characters
of the suits in my enum... diamond=0, spades=1…
characters should appear on mouse focus :(
Programming
Software Development
13 Years Ago
by localp
… external program), and when the on focus sign appears the
characters
of "hello" should appear there. I studies that…
Characters alignement
Programming
Software Development
11 Years Ago
by nacedo
Hello world ! I have two arrays (max 100
characters
) that I want to align, and add an "-" …
Re: characters in c
Programming
Software Development
9 Years Ago
by sunktugg
…. This snippet will read an arbitrary number of
characters
from the user (without feedback) and store them…to print the numerical representation of these
characters
back to the screen. These numbers correspond to… buffer char *buf = malloc(num_chars), *p_buf = buf; // read
characters
from user for(n = 0; n < num_chars; n++) *…
Setting text field to accept only alphabetical characters.
Programming
Web Development
15 Years Ago
by cj1
… class="textfieldMinCharsMsg">Minimum number of
characters
not met.</span><span class… class="textfieldInvalidFormatMsg">Please enter numerical
characters
only.</span><span class="… class="textfieldInvalidFormatMsg">Please enter numerical
characters
only.</span><span class="…
Manipulating characters in a string
Programming
Software Development
14 Years Ago
by youdester
…i Case Is = 1 ' Only append numerical
characters
. If IsNumeric(ch) Then strNumeric += ch.ToString…inserted character from the string containing upper case
characters
. strUpperCase = Replace(strUpperCase, chrUpper.ToString,…
How to return all characters that are within the Unicode 'Lu' class
Programming
Software Development
9 Years Ago
by samuel1991
…中文 ''' #Initalize a list of acceptable
characters
. setalphabet = set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") setdisallowed… '-'): #Removes disllowed consecutive "-"
characters
. Hyphens are meant to use once. #…
Stripping End-Of-Line characters from string
Programming
Software Development
12 Years Ago
by TheWolverine
…the strings in a map. [CODE] //! Strip End-Of-Line
characters
. void TextFileReader::stripEndOfLineCharacters( ) { // Search through container of data… and remove newline
characters
. string::size_type stringPosition_ = 0; string searchString_ = "\r";…
Java: counting characters in a string
Programming
Software Development
12 Years Ago
by willywhomperz
…{ return 0; } /** * int numberOf(String s, String
characters
) * * Returns the number of times any of the chars in… if s is "", then no matter what
characters
is the answer is 0 (zero) * if s …* * @param s is the original String * @param
characters
is the String whose constituent character counts in s we…
Probably a character set problem, trying to substitute characters
Programming
Software Development
15 Years Ago
by edholden
… would iterate through the string object, replacing select
characters
to return a fully-ASCII string, 'ABCD'. It… (called nameString) that may contain non-ASCII
characters
as an argument on the command line. It…function uses the translations list of tuples to swap
characters
where needed: [CODE=python] def convertToAscii(nameString): …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC