Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
preg_split
- Page 1
Retrieval Augmented Generation with Hugging Face Models in LangChain
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
In my [previous articles](https://www.daniweb.com/programming/computer-science/tutorials/541732/paris-olympics-ticket-information-chatbot-with-memory-using-langchain), I explained how to develop customized chatbots using Retrieval Augmented Generation (RAG) approach in [LangChain](https://www.langchain.com/). However, I used proprietary models such…
Question Answering with YouTube Videos Using RAG in LangChain
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
In previous articles, I explained how to use natural language to interact with [PDF documents](https://www.daniweb.com/programming/computer-science/tutorials/541732/paris-olympics-ticket-information-chatbot-with-memory-using-langchain) and [SQL databases](https://www.daniweb.com/programming/computer-science/tutorials/541771/using-natural-language-…
Summarizing YouTube Video Transcriptions Using Distil Whisper and LLM
Programming
Computer Science
1 Week Ago
by usmanmalik57
In this tutorial, you will see how to summarize YouTube video transcriptions using [Distil Whisper large V3](https://huggingface.co/distil-whisper/distil-large-v3) and [Mistral-7b-Instruct](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2). Both Distill Whisper Large V3 and Mistral-7B-Instruct models are open-source and free-to-use models.…
Re: how to create a simple elevator simulation?
Programming
Software Development
2 Weeks Ago
by trueframe
To make a basic elevator simulation, first, identify the floors and the elevator's capacity. Then, use loops and conditionals in programming to mimic its movement. Include buttons for users to call the elevator and select floors. Test thoroughly for accuracy.
Fine Tuning Google Gemma Model for Text Classification in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
On February 21, 2024, Google released [Gemma](https://ai.google.dev/gemma), a family of state-of-the-art open-source large language models (LLMs). As per initial results, its 7b (seven billion parameter) version is known to perform better than Meta's [Llama 2](https://llama.meta.com/), the previous state-of-the-art open-source LLM. As always, my…
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
2 Months Ago
by usmanmalik57
In a previous article, I explained [how to fine-tune Google's Gemma model for text classification](https://www.daniweb.com/programming/computer-science/tutorials/541544/fine-tuning-google-gemma-model-for-text-classification-in-python). In this article, I will explain how you can improve performance of a pretrained large language model (LLM) using …
7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM
Programming
Computer Science
1 Month Ago
by usmanmalik57
In the rapidly evolving field of Natural Language Processing (NLP), open-source large language models (LLMs) are becoming increasingly popular as they are free to use. Among these, the [Mistral](https://docs.mistral.ai/models/) family of models stands out as a state-of-the-art model that is freely accessible to the public. Comparable in …
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
I was searching for Paris Olympics ticket prices for tennis games recently. The official website directs you to a [PDF document](https://tickets.paris2024.org/obj/media/FR-Paris2024/ticket-prices.pdf) containing ticket prices and venues for all the games. However, I found the PDF document to be very hard to navigate. To make things easier, I …
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
In my previous article, I explained how I developed a simple chatbot using LangChain and Chat-GPT that can answer queries related to Paris Olympics ticket prices. However, one major drawback with that chatbot is that it can only generate a single response based on user queries. It can not answer follow-up questions. In short, the chatbot has no …
Re: Why does Dell hate Linux so much?
Hardware and Software
Linux and Unix
1 Month Ago
by mickeydoodle
I've just acquired a Dell laptop, it seems to hate Linux! Touch pad doesn't work properly, Wireless won't connect and it's sooo slow! Works fine with Windows!
Split test PPC Campaigns For Best ROI
Digital Media
Digital Marketing
Search Engine Strategies
8 Years Ago
by SmartMoneyFinan
Split test PPC Campaigns For Best ROI This is a crucial part of Marketing. In fact without split testing your campaigns against each other you could be leaving thousands of dollars on the table.I would say this is important in SEO as well but even more so with PPC marketing.ng pages. Doing this I was able to increase conversions by over 100% You …
Split Column by Pipe In Ms Sql
Programming
Databases
9 Years Ago
by jotungiya
Split pipe delimited into new columns as below : col1 col2 col3 col4 Data|7-8|5 Data 7-8 5 Data|asdsad|sad Data asdsad sad fish|c cx cx xc cc xc cx |ededededeed fish c cx cx xc cc xc cx …
[split] c++ program for who wants to be a millionaire
Programming
Software Development
14 Years Ago
by fruymercado
[split from [url]http://www.daniweb.com/forums/post1162537.html#post1162537][/url] how can i create like that program but i need to have more questions and i dont nid to use the life time because lifetime is dificult so please help me or give me a program to use in our c++ subject here in MAPUA. please i nid it before this friday, march 19, 2010. …
Re: split string into array with 2 delimiters
Programming
Web Development
12 Years Ago
by Thyvo
…|LAST|OPTIONAL)!\]', $text); [/CODE][/QUOTE] I never worked with
preg_split
before, I dont know how it works so I did …, unfortinately I got this error when trying it out: Warning:
preg_split
() [function.preg-split]: Delimiter must not be alphanumeric or backslash…
Split string into variables
Programming
Software Development
11 Years Ago
by naui95
Hi there, how can I split a string into variables?? better: string s = "one,two,three,four"; // Split string on character comma. string[] words = s.Split(','); foreach (string word in words) { Console.WriteLine(word); } how can I put an incrasing variable (…
Split a string into individual words
Programming
3 Years Ago
by Papa_Don
Hi Group, I'm using the split function for the very first time. I understand what it's doing. However I don't know how to output each individual word into a specific variable. As an example, the string is "Dickerson Tile Company". I have defined 7 variables to accept up to 7 word splits. Dim Search1, Search2, Search3 ...... …
Re: Split string into variables
Programming
Software Development
11 Years Ago
by JOSheaIV
I know this is solved, but I wanted to post this piece of code I use all the time and love to use (mainly used when reading in a document or something but works here) string s = "one,two,three,four"; List<string> words = new List<string>(); words.AddRange(s.Split(new String [] { "," }StringSplitOptions.…
Re: Split a string into individual words
Programming
3 Years Ago
by rproffitt
What are "buckets"? Besides that, I see example 1 at https://www.dotnetperls.com/split-vbnet seems clear.
Re: Split a string into individual words
Programming
3 Years Ago
by xrjf
Hello. The most easiest way I see to do what you ask is the following: Dim Search1, Search2, Search3, Search4, Search5, Search6, Search7 As String Dim s As String = tbxCustomerName.Text Dim words As String() = Split(s, " ") For i as Int32 = 0 To words.Length - 1…
Re: Split a string into individual words
Programming
3 Years Ago
by Reverend Jim
You're counting hooves and dividing by four. Why not just do Dim Search As String() = s.Split() Then instead of referencing the words as Search1 Search2 . . . You can just do Search(0) Search(1) . . . Plus `Search` is iterable.
Re: Split string into digits
Programming
Software Development
13 Years Ago
by Saikalyankumar
If there is any special character between the each digit in the string entered you can use String.Split("<that special character>") and if nothing is there only a number then you can use String.Split(). Hope this helps to you.
Split string into digits
Programming
Software Development
13 Years Ago
by Terminator_Null
Hi. I am new to VB (and coding in general) and I'm wanting to make a check digit generator. To do this I need to take the a user text input and split it into individual digits so that I can then calculate the check digit. I'm just not sure how to do it. I have some validation in place so the user can only input numeric digits and they are …
split Xml into multiple Xml Files
Programming
Software Development
12 Years Ago
by SyedmAhmed
Hi all, As im new to Xml... what i want to do is.... I have a Large Xml File .. and i want to split the that xml file and Parse the xml in vb.net Can any one plz suggest me how can i do this..... Thank's in Advance Syed Ahmed
Re: Split Session values
Programming
Web Development
8 Years Ago
by broj1
Split on what condition? Give an example of a session variable you have and how would you like to have it split.
Re: Split document an count words
Programming
8 Years Ago
by woooee
split() on <doc> first and then process each item separately in the returned list.
Split string except inside brackets or quotes
Programming
Software Development
11 Years Ago
by TrustyTony
Sometimes we want to not split by every space character, but we want to split only on those outside of brackets and quotes. This way we can have for example quoted string as single argument for command. EDIT: 1. Added hierarchical nesting of same kind of brackets. 2. Bunching multiple separators as single separator, None as general whitespace …
Split and assign each line to variables
Programming
Software Development
8 Years Ago
by Mr.M
Hi Dw. I'm trying to read a text file. This text file has a multiply lines and what I want is that I want to separate each line or should I say I want to split each line (chop it) so that I will be able to assign these fields to variables using the array. What I first did is to get the lines then for each line I need to break it. The split I'm …
Split text line into two or three text lines and put on IMG using GD
Programming
Web Development
12 Years Ago
by zevo
Hello everybody, i need help from you guys.. I want to split text line into 2-3 lines and put it on image using GD. I know how to write text on image with GD, but i don't know how to split text to get the last line.. Here is what it should look like: If text line exceeds limited width as example 200px then it should split text into two …
Re: Split and assign each line to variables
Programming
Software Development
8 Years Ago
by Reverend Jim
I'm not clear on what you want. Perhaps you can post a sample input file with all of the possible variants and an example of how that data will look when displayed after filtering. That will probably be clearer than an explnation. In the mean time you can simplify your code considerably. If you use a ListView in Details mode (with 15 columns) you …
split text in java
Programming
Software Development
13 Years Ago
by Alex86fire
Hey guys, I have a problem, I have to take a text and depending if a boolean - split_words is true or false I have to parse the text on some lines splitting the words or leaving them whole. for example, text is: This is the text I have to split. and split_words = true [code]0123456789 This is th e text I h ave to spl it[/code] …
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
Forums
Top Members
Meet People
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