Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Announcements
»
Third party
»
AI, NLP and CAI: Text Generation with Convolutional Neural Networks in Pascal
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Does FreePascal have a WM...
by
CM630
[December 15, 2025, 11:20:24 pm]
AVRPascal – free code edi...
by
ackarwow
[December 15, 2025, 10:40:17 pm]
Why does the call via fun...
by
ASerge
[December 15, 2025, 10:06:19 pm]
TLazSerial : serial port ...
by
CM630
[December 15, 2025, 09:56:09 pm]
Question re. FCL's ssocke...
by
jamie
[December 15, 2025, 09:23:35 pm]
connecting to mariadb
by
alanyoung
[December 15, 2025, 05:57:03 pm]
delete cookies
by
Leledumbo
[December 15, 2025, 05:14:27 pm]
[hacked for now] Changing...
by
jamie
[December 15, 2025, 04:40:15 pm]
Error: Enumeration symbol...
by
nanobit
[December 15, 2025, 04:17:38 pm]
AI interactions
by
Zvoni
[December 15, 2025, 02:19:48 pm]
Recomendations for conver...
by
kompustelnik
[December 15, 2025, 11:20:05 am]
Qt6 / X11: problem with G...
by
paweld
[December 15, 2025, 11:14:43 am]
[Solved] Lookup field: er...
by
BlueIcaro
[December 15, 2025, 09:59:57 am]
LCL Web Native with D2Bri...
by
egsuh
[December 15, 2025, 08:10:14 am]
Access Violation - Databa...
by
Xenno
[December 15, 2025, 06:21:52 am]
SpkToolbar custom update
by
wp
[December 14, 2025, 11:55:55 pm]
MVP made easier.
by
cdbc
[December 14, 2025, 05:14:40 pm]
Lazarus is not working
by
Fred vS
[December 14, 2025, 05:14:20 pm]
TIBDataSet "Closing"? on ...
by
RedOctober
[December 14, 2025, 04:52:18 pm]
Running External Tools
by
JuhaManninen
[December 14, 2025, 04:08:28 pm]
The start of yet another ...
by
TBMan
[December 14, 2025, 03:16:21 pm]
Need help with Runcommand...
by
marcov
[December 14, 2025, 12:46:25 pm]
Military Grade Directives
by
Thaddy
[December 14, 2025, 11:46:44 am]
Cannot find Online Packag...
by
Thaddy
[December 14, 2025, 11:37:58 am]
Anyone interested in help...
by
ad1mt
[December 14, 2025, 08:56:20 am]
« previous
next »
Print
Pages:
1
2
[
3
]
Author
Topic: AI, NLP and CAI: Text Generation with Convolutional Neural Networks in Pascal (Read 29954 times)
schuler
Sr. Member
Posts: 274
Re: AI, NLP and CAI: Text Generation with Convolutional Neural Networks in Pascal
«
Reply #30 on:
September 09, 2024, 06:24:11 am »
Hello
All 3 chat bots now use planning and reflection (they critique their own work) when coding in pascal:
*
https://chatgpt.com/g/g-6BrAwhTQ9-free-pascal-developer-neural-api
*
https://poe.com/CAI-NEURAL-API-FREE
.
*
https://poe.com/CAI-NEURAL-API
.
This is an output example:
Code: Pascal
[Select]
[+]
[-]
Human
:
How the
Byte
Pair Encoding algorithm will look like
in
Free Pascal?
Poe
:
<planning>
To
provide an
implementation
of
the
Byte
Pair Encoding
(
BPE
)
algorithm
in
Free Pascal
,
I
'll follow these steps:
1. Define the necessary data structures
2. Implement the core BPE algorithm functions
3. Create a simple main program to demonstrate the usage
4. Add comments for clarity
5. Ensure the code follows Free Pascal conventions and best practices
</planning>
...
<candidate-solution>
Here'
s an
implementation
of
the
Byte
Pair Encoding algorithm
in
Free Pascal
:
...
<
/
candidate
-
solution>
<reflexion>
The provided
implementation
of
the
Byte
Pair Encoding algorithm
in
Free Pascal covers the essential aspects
of
the algorithm
and
demonstrates its usage
.
It
includes
:
Necessary data structures
(
TStringList
and
TPairFrequency
)
Core BPE algorithm functions
(
CountPairs
,
GetMostFrequentPair
,
MergePair
,
and
BPE
)
A simple main
program
to
demonstrate the usage
Comments
for
clarity
Adherence
to
Free Pascal conventions
and
best practices
The code is well
-
structured
and
should be easy
to
understand
for
those familiar
with
Pascal
-
like languages
.
It
uses
generics
(
TFPGList
and
TFPGMap
)
for
type
-
safe collections
,
which is a modern feature
in
Free Pascal
.
However
,
to
improve the
implementation
,
we could consider the following enhancements
:
Add error handling
for
file
I
/
O
to
allow loading vocabulary from a
file
Implement tokenization
of
new
text using the learned BPE merges
Add an option
to
save the learned merges
for
later use
Optimize the pair counting process
for
larger vocabularies
Let
's create an improved version incorporating these enhancements.
</reflexion>
...
<candidate-solution>
Here'
s an improved
implementation
of
the
Byte
Pair Encoding algorithm
in
Free Pascal
with
the planned enhancements
:
...
I wish everyone happy pascal coding.
«
Last Edit: September 15, 2024, 08:19:08 am by schuler
»
Logged
schuler
Sr. Member
Posts: 274
Re: AI, NLP and CAI: Text Generation with Convolutional Neural Networks in Pascal
«
Reply #31 on:
September 18, 2024, 09:48:18 am »
Hello,
I've just gave a go to the google notebooklm to produce audio files around the subject of
Pascal with Artificial Intelligence
. I must say that I'm really impressed with the result:
*
https://www.youtube.com/watch?v=2nnlE0k_1QQ
*
https://www.youtube.com/watch?v=IZy0yQAbvWA
I'm finding that google's notebooklm is a strong promoter of pascal...
Have fun
Logged
schuler
Sr. Member
Posts: 274
Re: AI, NLP and CAI: Text Generation with Convolutional Neural Networks in Pascal
«
Reply #32 on:
March 01, 2025, 06:23:57 am »
Just to comment that I have just started experimenting Claude 3.7 for pascal programming at:
*
https://poe.com/CAI-NEURAL-API
My first impression is positive. Curious to know what is your opinion.
This is an example done with a free account at poe:
*
https://poe.com/s/osNsewIb69hIVVOdQHMq
«
Last Edit: March 01, 2025, 06:43:57 am by schuler
»
Logged
Mongkey
Sr. Member
Posts: 449
Re: AI, NLP and CAI: Text Generation with Convolutional Neural Networks in Pascal
«
Reply #33 on:
July 19, 2025, 01:59:33 pm »
awesome!!! Thank you for your great works.
Logged
Print
Pages:
1
2
[
3
]
« previous
next »
Lazarus
»
Forum
»
Announcements
»
Third party
»
AI, NLP and CAI: Text Generation with Convolutional Neural Networks in Pascal
TinyPortal
© 2005-2018