Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -109,24 +109,24 @@ configs:
|
|
| 109 |
|
| 110 |
|
| 111 |
```python
|
| 112 |
-
# Nalaganje samo
|
| 113 |
dataset = load_dataset("procesaur/WikiTriglav", split="wikiquote")
|
| 114 |
-
print(dataset[
|
| 115 |
```
|
| 116 |
```python
|
| 117 |
-
1
|
| 118 |
-
|
| 119 |
```
|
| 120 |
|
| 121 |
```python
|
| 122 |
-
# Filtriranje
|
| 123 |
-
filtered = dataset.filter(lambda example: example["subject"] == "
|
| 124 |
print(f"{filtered[0]["title"]}\n{filtered[0]["text"]} )
|
| 125 |
```
|
| 126 |
```python
|
| 127 |
-
|
| 128 |
-
1
|
| 129 |
-
*
|
| 130 |
```
|
| 131 |
|
| 132 |
<div class="inline-flex flex-col" style="line-height: 1.5;padding-right:50px">
|
|
|
|
| 109 |
|
| 110 |
|
| 111 |
```python
|
| 112 |
+
# Nalaganje samo wikinavedki
|
| 113 |
dataset = load_dataset("procesaur/WikiTriglav", split="wikiquote")
|
| 114 |
+
print(dataset[1]["text"])
|
| 115 |
```
|
| 116 |
```python
|
| 117 |
+
1 Navedki
|
| 118 |
+
* Pot k umetnosti ne vodi skozi udoben aleje brezkrbnosti in sanj....
|
| 119 |
```
|
| 120 |
|
| 121 |
```python
|
| 122 |
+
# Filtriranje po metapodatkih
|
| 123 |
+
filtered = dataset.filter(lambda example: example["subject"] == "Pisatelji")
|
| 124 |
print(f"{filtered[0]["title"]}\n{filtered[0]["text"]} )
|
| 125 |
```
|
| 126 |
```python
|
| 127 |
+
Ernest Hemingway
|
| 128 |
+
1 Navedki
|
| 129 |
+
* ''Vsaka zgodba se začne s prvim stavkom in s tem mislim, resničnim stavkom...''...
|
| 130 |
```
|
| 131 |
|
| 132 |
<div class="inline-flex flex-col" style="line-height: 1.5;padding-right:50px">
|