Hello community,
here is the log from the commit of package python-padatious for openSUSE:Factory checked in at 2019-02-25 17:51:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-padatious (Old)
and /work/SRC/openSUSE:Factory/.python-padatious.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-padatious"
Mon Feb 25 17:51:49 2019 rev:6 rq:676943 version:0.4.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-padatious/python-padatious.changes 2018-12-24 11:40:42.581488441 +0100
+++ /work/SRC/openSUSE:Factory/.python-padatious.new.28833/python-padatious.changes 2019-02-25 17:52:02.594730706 +0100
@@ -1,0 +2,8 @@
+Sun Feb 17 17:17:19 UTC 2019 - Antonio Larrosa
+
+- Update to python-padatious 0.4.6
+ * Fix regenerated messages when running pytest
+ * Training example impovements (gh#MycroftAI/padatious#10)
+ * Join worker pool after close
+
+-------------------------------------------------------------------
Old:
----
padatious-0.4.5.tar.gz
New:
----
padatious-0.4.6.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-padatious.spec ++++++
--- /var/tmp/diff_new_pack.u2TQou/_old 2019-02-25 17:52:03.818730040 +0100
+++ /var/tmp/diff_new_pack.u2TQou/_new 2019-02-25 17:52:03.818730040 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-padatious
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-padatious
-Version: 0.4.5
+Version: 0.4.6
Release: 0
Summary: A neural network intent parser
License: Apache-2.0
++++++ padatious-0.4.5.tar.gz -> padatious-0.4.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/padatious-0.4.5/PKG-INFO new/padatious-0.4.6/PKG-INFO
--- old/padatious-0.4.5/PKG-INFO 2018-08-13 23:03:15.000000000 +0200
+++ new/padatious-0.4.6/PKG-INFO 2019-01-31 21:14:44.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: padatious
-Version: 0.4.5
+Version: 0.4.6
Summary: A neural network intent parser
Home-page: http://github.com/MycroftAI/padatious
Author: Matthew Scholefield
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/padatious-0.4.5/padatious/__init__.py new/padatious-0.4.6/padatious/__init__.py
--- old/padatious-0.4.5/padatious/__init__.py 2018-08-13 23:02:12.000000000 +0200
+++ new/padatious-0.4.6/padatious/__init__.py 2019-01-31 21:14:36.000000000 +0100
@@ -15,4 +15,4 @@
from .intent_container import IntentContainer
from .match_data import MatchData
-__version__ = '0.4.5' # Also change in setup.py
+__version__ = '0.4.6' # Also change in setup.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/padatious-0.4.5/padatious/simple_intent.py new/padatious-0.4.6/padatious/simple_intent.py
--- old/padatious-0.4.5/padatious/simple_intent.py 2018-07-31 21:42:35.000000000 +0200
+++ new/padatious-0.4.6/padatious/simple_intent.py 2018-08-14 20:46:41.000000000 +0200
@@ -33,7 +33,7 @@
def __init__(self, name=''):
self.name = name
self.ids = IdManager(Ids)
- self.net = None
+ self.net = None # type: fann.neural_net
def match(self, sent):
return max(0, self.net.run(self.vectorize(sent))[0])
@@ -91,14 +91,26 @@
for sent in train_data.my_sents(self.name):
add(sent, 1.0)
weight(sent)
- if not any(word[0] == ':' for word in sent):
+
+ # Generate samples with extra unknown tokens unless
+ # the sentence is supposed to allow unknown tokens via the special :0
+ if not any(word[0] == ':' and word != ':' for word in sent):
pollute(sent, 0)
pollute(sent, len(sent))
for sent in train_data.other_sents(self.name):
add(sent, 0.0)
+ add([':null:'], 0.0)
add([], 0.0)
+ for sent in train_data.my_sents(self.name):
+ without_entities = sent[:]
+ for i, token in enumerate(without_entities):
+ if token.startswith('{'):
+ without_entities[i] = ':null:'
+ if without_entities != sent:
+ add(without_entities, 0.0)
+
inputs, outputs = resolve_conflicts(inputs, outputs)
train_data = fann.training_data()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/padatious-0.4.5/padatious/training_manager.py new/padatious-0.4.6/padatious/training_manager.py
--- old/padatious-0.4.5/padatious/training_manager.py 2018-07-31 21:42:35.000000000 +0200
+++ new/padatious-0.4.6/padatious/training_manager.py 2019-01-31 21:14:36.000000000 +0100
@@ -90,6 +90,7 @@
print('Some objects timed out while training')
finally:
pool.close()
+ pool.join()
# Load saved objects from disk
for obj in self.objects_to_train:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/padatious-0.4.5/padatious.egg-info/PKG-INFO new/padatious-0.4.6/padatious.egg-info/PKG-INFO
--- old/padatious-0.4.5/padatious.egg-info/PKG-INFO 2018-08-13 23:03:15.000000000 +0200
+++ new/padatious-0.4.6/padatious.egg-info/PKG-INFO 2019-01-31 21:14:44.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: padatious
-Version: 0.4.5
+Version: 0.4.6
Summary: A neural network intent parser
Home-page: http://github.com/MycroftAI/padatious
Author: Matthew Scholefield
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/padatious-0.4.5/setup.py new/padatious-0.4.6/setup.py
--- old/padatious-0.4.5/setup.py 2018-08-13 23:02:01.000000000 +0200
+++ new/padatious-0.4.6/setup.py 2019-01-31 21:14:36.000000000 +0100
@@ -7,7 +7,7 @@
setup(
name='padatious',
- version='0.4.5', # Also change in padatious/__init__.py
+ version='0.4.6', # Also change in padatious/__init__.py
description='A neural network intent parser',
url='http://github.com/MycroftAI/padatious',
author='Matthew Scholefield',