Hello community,

here is the log from the commit of package python-padatious for 
openSUSE:Factory checked in at 2018-08-15 10:37:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-padatious (Old)
 and      /work/SRC/openSUSE:Factory/.python-padatious.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-padatious"

Wed Aug 15 10:37:42 2018 rev:3 rq:629065 version:0.4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-padatious/python-padatious.changes        
2018-07-10 16:17:03.409385044 +0200
+++ /work/SRC/openSUSE:Factory/.python-padatious.new/python-padatious.changes   
2018-08-15 10:37:43.352218153 +0200
@@ -1,0 +2,6 @@
+Mon Aug 13 15:10:30 UTC 2018 - [email protected]
+
+- Update to python-padatious 0.4.4
+  * Fix Padaos not working properly and add exact match tests
+
+-------------------------------------------------------------------

Old:
----
  padatious-0.4.3.tar.gz

New:
----
  padatious-0.4.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-padatious.spec ++++++
--- /var/tmp/diff_new_pack.5hvRxG/_old  2018-08-15 10:37:43.840219042 +0200
+++ /var/tmp/diff_new_pack.5hvRxG/_new  2018-08-15 10:37:43.844219050 +0200
@@ -20,7 +20,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-padatious
-Version:        0.4.3
+Version:        0.4.4
 Release:        0
 Summary:        A neural network intent parser
 License:        Apache-2.0

++++++ padatious-0.4.3.tar.gz -> padatious-0.4.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/padatious-0.4.3/PKG-INFO new/padatious-0.4.4/PKG-INFO
--- old/padatious-0.4.3/PKG-INFO        2018-06-19 18:16:57.000000000 +0200
+++ new/padatious-0.4.4/PKG-INFO        2018-07-31 22:27:47.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: padatious
-Version: 0.4.3
+Version: 0.4.4
 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.3/README.md 
new/padatious-0.4.4/README.md
--- old/padatious-0.4.3/README.md       1970-01-01 01:00:00.000000000 +0100
+++ new/padatious-0.4.4/README.md       2018-07-31 21:42:35.000000000 +0200
@@ -0,0 +1,62 @@
+# Padatious #
+
+An efficient and agile neural network intent parser
+
+### Features ###
+
+ - Intents are easy to create
+ - Requires a relatively small amount of data
+ - Intents run independent of each other
+ - Easily extract entities (ie. Find the nearest *gas station* -> `place: gas 
station`)
+ - Fast training with a modular approach to neural networks
+
+### API Example ###
+
+Here's a simple example of how to use Padatious:
+
+**program.py**:
+```Python
+from padatious import IntentContainer
+
+container = IntentContainer('intent_cache')
+container.add_intent('hello', ['Hi there!', 'Hello.'])
+container.add_intent('goodbye', ['See you!', 'Goodbye!'])
+container.add_intent('search', ['Search for {query} (using|on) {engine}.'])
+container.train()
+
+print(container.calc_intent('Hello there!'))
+print(container.calc_intent('Search for cats on CatTube.'))
+
+container.remove_intent('goodbye')
+```
+
+Run with:
+
+```bash
+python3 program.py
+```
+
+### Installing ###
+
+Padatious requires the following native packages to be installed:
+
+ - [`FANN`][fann] (with dev headers)
+ - Python development headers
+ - `pip3`
+ - `swig`
+
+Ubuntu:
+
+```
+sudo apt-get install libfann-dev python3-dev python3-pip swig
+```
+
+Next, install Padatious via `pip3`:
+
+```
+pip3 install padatious
+```
+Padatious also works in Python 2 if you are unable to upgrade.
+
+
+[fann]:https://github.com/libfann/fann
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/padatious-0.4.3/padatious/__init__.py 
new/padatious-0.4.4/padatious/__init__.py
--- old/padatious-0.4.3/padatious/__init__.py   2018-06-19 18:16:31.000000000 
+0200
+++ new/padatious-0.4.4/padatious/__init__.py   2018-07-31 22:27:27.000000000 
+0200
@@ -15,4 +15,4 @@
 from .intent_container import IntentContainer
 from .match_data import MatchData
 
-__version__ = '0.4.3'  # Also change in setup.py
+__version__ = '0.4.4'  # Also change in setup.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/padatious-0.4.3/padatious/intent_container.py 
new/padatious-0.4.4/padatious/intent_container.py
--- old/padatious-0.4.3/padatious/intent_container.py   2018-06-19 
18:12:33.000000000 +0200
+++ new/padatious-0.4.4/padatious/intent_container.py   2018-07-31 
22:26:48.000000000 +0200
@@ -13,6 +13,7 @@
 # limitations under the License.
 import padaos
 
+from padatious.match_data import MatchData
 from padatious.entity import Entity
 from padatious.entity_manager import EntityManager
 from padatious.intent_manager import IntentManager
@@ -147,4 +148,7 @@
         Returns:
             MatchData: Best intent match
         """
-        return self.intents.calc_intent(query, self.entities)
+        matches = self.calc_intents(query)
+        if len(matches) == 0:
+            return MatchData('', '')
+        return max(matches, key=lambda x: x.conf)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/padatious-0.4.3/padatious/intent_manager.py 
new/padatious-0.4.4/padatious/intent_manager.py
--- old/padatious-0.4.3/padatious/intent_manager.py     2018-06-19 
18:12:33.000000000 +0200
+++ new/padatious-0.4.4/padatious/intent_manager.py     2018-07-31 
22:26:48.000000000 +0200
@@ -30,9 +30,3 @@
             match.detokenize()
             matches.append(match)
         return matches
-
-    def calc_intent(self, query, entity_manager):
-        matches = self.calc_intents(query, entity_manager)
-        if len(matches) == 0:
-            return MatchData('', '')
-        return max(matches, key=lambda x: x.conf)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/padatious-0.4.3/padatious.egg-info/PKG-INFO 
new/padatious-0.4.4/padatious.egg-info/PKG-INFO
--- old/padatious-0.4.3/padatious.egg-info/PKG-INFO     2018-06-19 
18:16:57.000000000 +0200
+++ new/padatious-0.4.4/padatious.egg-info/PKG-INFO     2018-07-31 
22:27:47.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: padatious
-Version: 0.4.3
+Version: 0.4.4
 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.3/padatious.egg-info/SOURCES.txt 
new/padatious-0.4.4/padatious.egg-info/SOURCES.txt
--- old/padatious-0.4.3/padatious.egg-info/SOURCES.txt  2018-06-19 
18:16:57.000000000 +0200
+++ new/padatious-0.4.4/padatious.egg-info/SOURCES.txt  2018-07-31 
22:27:47.000000000 +0200
@@ -1,4 +1,5 @@
 MANIFEST.in
+README.md
 requirements.txt
 setup.cfg
 setup.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/padatious-0.4.3/setup.cfg 
new/padatious-0.4.4/setup.cfg
--- old/padatious-0.4.3/setup.cfg       2018-06-19 18:16:57.000000000 +0200
+++ new/padatious-0.4.4/setup.cfg       2018-07-31 22:27:47.000000000 +0200
@@ -4,5 +4,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/padatious-0.4.3/setup.py new/padatious-0.4.4/setup.py
--- old/padatious-0.4.3/setup.py        2018-06-19 18:15:53.000000000 +0200
+++ new/padatious-0.4.4/setup.py        2018-07-31 22:27:21.000000000 +0200
@@ -7,7 +7,7 @@
 
 setup(
     name='padatious',
-    version='0.4.3',  # Also change in padatious/__init__.py
+    version='0.4.4',  # Also change in padatious/__init__.py
     description='A neural network intent parser',
     url='http://github.com/MycroftAI/padatious',
     author='Matthew Scholefield',


Reply via email to