Skip to content

Commit ba84fa0

Browse files
authored
Merge branch 'master' into patch-1
2 parents b1570c3 + 39adf3c commit ba84fa0

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ def file_iterator(fpath):
8080
key, value = line.strip().split()
8181
yield key, int(value)
8282
m = Map.from_iter( file_iterator('/your/input/file/'), '/your/mmapped/output.fst')
83+
84+
# re-open a file you built previously with from_iter()
85+
m = Map(path='/path/to/existing.fst')
8386
```
8487

8588

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ Examples
8989
yield key, int(value)
9090
m = Map.from_iter( file_iterator('/your/input/file/'), '/your/mmapped/output.fst')
9191
92+
# re-open a file you built previously with from_iter()
93+
m = Map(path='/path/to/existing.fst')
9294
9395
API Reference
9496
-------------

0 commit comments

Comments
 (0)