Skip to content

Instantly share code, notes, and snippets.

View SandroLuck's full-sized avatar

Sandro Luck SandroLuck

View GitHub Profile
@SandroLuck
SandroLuck / gist:9f593507e2fa3a79abfe05ec99a473e0
Created September 4, 2023 15:40
Example Invoice Extraction
Your task is to extract invoice information from given data. You are a JSON extraction tool.
The given data is extracted from a PDF.
To you we present the layout as text.
Extract and fill exactly this JSON from the Text below:
{
"InvoiceReference": "",
"SupplierAddress": "",
"DeliveryAddress": "",
"InvoiceDate": "",
@SandroLuck
SandroLuck / TutorialPytorchDataloader.ipynb
Created May 28, 2022 20:25
Dataloader and Dataset Tutorial Pytorch Pytorch Lightning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 20 columns, instead of 6 in line 5.
Country,Region,Population,Area (sq. mi.),Pop. Density (per sq. mi.),Coastline (coast/area ratio),Net migration,Infant mortality (per 1000 births),GDP ($ per capita),Literacy (%),Phones (per 1000),Arable (%),Crops (%),Other (%),Climate,Birthrate,Deathrate,Agriculture,Industry,Service
"Afghanistan ","ASIA (EX. NEAR EAST) ",31056997,647500,"48,0","0,00","23,06","163,07",700,"36,0","3,2","12,13","0,22","87,65",1,"46,6","20,34","0,38","0,24","0,38"
"Albania ","EASTERN EUROPE ",3581655,28748,"124,6","1,26","-4,93","21,52",4500,"86,5","71,2","21,09","4,42","74,49",3,"15,11","5,22","0,232","0,188","0,579"
"Algeria ","NORTHERN AFRICA ",32930091,2381740,"13,8","0,04","-0,39",31,6000,"70,0","78,1","3,22","0,25","96,53",1,"17,14","4,61","0,101","0,6","0,298"
"American Samoa ","OCEANIA ",57794,199,"290,4","58,29","-20,71","9,27",8000,"97,0","259,5",10,15,75,2,"22,46","3,27",,,
"Andorra ","WESTERN EUROPE ",71201,468,"152,1","0,00"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SandroLuck
SandroLuck / Feature Scaling Example.ipynb
Created November 20, 2021 10:35
Feature Scaling Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SandroLuck
SandroLuck / BibleVSHarry.ipynb
Created October 7, 2021 20:55
TutorialTextClassification
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.