Skip to content

Commit

Permalink
* get rid of deprecated sklearn package
Browse files Browse the repository at this point in the history
* Update to tltk 1.8
* therefore call this version 1.2.0
  • Loading branch information
giggls committed Jan 14, 2024
1 parent 6fad88a commit 8e3004b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apt install libunac1-dev luarocks lua5.3 liblua5.3-dev build-essential debhelper
### Python

```
apt install python3-venv python3-sdnotify python3-shapely libicu-dev libpython3-dev
apt install python3-venv libicu-dev libpython3-dev
```

## Installation
Expand Down
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
osml10n (1.2.0) unstable; urgency=medium

* get rid of deprecated sklearn package
* Update to tltk 1.8

-- Sven Geggus <[email protected]> Sun, 14 Jan 2024 13:17:08 +0100

osml10n (1.1.1) unstable; urgency=medium

* Fix python installation
Expand Down
Binary file removed deps/sklearn-0.0.post9.tar.gz
Binary file not shown.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
name='osml10n',
version=vers,
install_requires=[
f"sklearn @ file://localhost/{PROJECT_DIR}/deps/sklearn-0.0.post9.tar.gz",
"scikit-learn == 1.3.0",
"scikit-learn == 1.3.2",
"pykakasi == 2.2.1",
"tltk == 1.6.8",
"tltk == 1.8.0",
"pinyin_jyutping_sentence == 1.3",
"pyicu",
"shapely",
"sdnotify",
"requests"
"requests",
"pandas"
],
scripts = [ "transcription-daemon/geo-transcript-srv.py", "transcription-cli/transcribe.py" ],
packages = [ "osml10n" ],
Expand Down
5 changes: 4 additions & 1 deletion transcription-daemon/geo-transcript-srv.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import struct
import sys
import pkg_resources
from importlib.metadata import version

# as imports are very slow parse arguments first
parser = argparse.ArgumentParser(description='Server for transcription of names based on geolocation')
Expand All @@ -31,6 +32,8 @@ def vout(msg):
vers='version '+pkg_resources.require("osml10n")[0].version
except:
vers='uninstalled version'
if (args.geomdir == None):
args.geomdir = os.path.join('osml10n','boundaries')

sys.stdout.write("Loading osml10n transcription server (%s): " % vers)
sys.stdout.flush()
Expand Down Expand Up @@ -290,7 +293,7 @@ async def main():
await server.serve_forever()

if __name__ == "__main__":
sys.stdout.write("ready.\n")
sys.stdout.write("ready.\n(using pykakasi "+version('pykakasi')+', '+"tltk "+version('tltk')+', '+"pinyin_jyutping_sentence "+version('pinyin_jyutping_sentence')+')\n')
if args.sdnotify:
import sdnotify
sdnotify.SystemdNotifier().notify("READY=1")
Expand Down

0 comments on commit 8e3004b

Please sign in to comment.