gbossert / pylstar Goto Github PK
View Code? Open in Web Editor NEWAn implementation of the LSTAR Grammatical Inference Algorithm
License: GNU General Public License v3.0
An implementation of the LSTAR Grammatical Inference Algorithm
License: GNU General Public License v3.0
Hello,
I'm running the "next" branch,
but I get error:
Server is started and listenning
Connected with 127.0.0.1:52198
5025: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5026: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5027: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5028: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5028: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5029: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5029: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5029: [ERROR] ObservationTable:__execute_query: Input and output words do not have the same size
Traceback (most recent call last):
File "/workspaces/pylstar/src/pylstar/KnowledgeBase.py", line 113, in _resolve_word
return self.knowledge_tree.get_output_word(word)
File "/workspaces/pylstar/src/pylstar/KnowledgeTree.py", line 181, in get_output_word
raise Exception("No path found")
Exception: No path found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/workspaces/pylstar/src/pylstar/ObservationTable.py", line 866, in __execute_query
self.knowledge_base.resolve_query(query)
File "/workspaces/pylstar/src/pylstar/KnowledgeBase.py", line 103, in resolve_query
query.output_word = self._resolve_word(query.input_word)
File "/workspaces/pylstar/src/pylstar/KnowledgeBase.py", line 123, in _resolve_word
self.knowledge_tree.add_word(input_word = word, output_word = output)
File "/workspaces/pylstar/src/pylstar/KnowledgeTree.py", line 220, in add_word
raise Exception("Input and output words do not have the same size")
Exception: Input and output words do not have the same size
Stoping coffeemachine
Coffee machine process is forced to stop
Traceback (most recent call last):
File "/workspaces/pylstar/test/src/test_pylstar/coffee_machine_example/CoffeeMachineInferer.py", line 78, in <module>
main()
File "/workspaces/pylstar/test/src/test_pylstar/coffee_machine_example/CoffeeMachineInferer.py", line 62, in main
coffee_state_machine = lstar.learn()
File "/workspaces/pylstar/src/pylstar/LSTAR.py", line 274, in learn
self.__initialize()
File "/workspaces/pylstar/src/pylstar/LSTAR.py", line 368, in __initialize
self.observation_table.initialize()
File "/workspaces/pylstar/src/pylstar/ObservationTable.py", line 87, in initialize
self.__add_word_in_S(Word([EmptyLetter()]))
File "/workspaces/pylstar/src/pylstar/ObservationTable.py", line 803, in __add_word_in_S
self.__add_word_in_SA(new_word)
File "/workspaces/pylstar/src/pylstar/ObservationTable.py", line 843, in __add_word_in_SA
raise Exception("Query '{}' could not be queries".format(output_query))
Exception: Query 'OutputQuery(I = [Letter('REFILL_WATER'), Letter('REFILL_WATER')], O = None)' could not be queries
Connected with 127.0.0.1:52202
Connected with 127.0.0.1:52210
Connected with 127.0.0.1:52224
Connected with 127.0.0.1:52228
Connected with 127.0.0.1:52236
How to resolve the above error @gbossert ?
Would it be possible to push a new release of pylstar (ideally after merging our PR)? 0.1.3?
@gbossert, if you need help to maintain the repo, I can help.
Please do update the documentation example to include the code for the CoffeeMachineCommandAndControl python file.
Hello,
I'm running the "next" branch,
but I get error:
Exception: Query 'OutputQuery(I = [Letter('REFILL_WATER')], O = None)' could not be queried
Also when running the test as you described in the readme I get error
python setup.py test
Hello, I am learning about protocol reverse engineering, thanks for your Opening source it's great! I have been learning your project for a long time. And there is one problem, when i tried to use pylstar followed the 'readme', it showed me that 'No module named pylstar.NetworkActiveKnowledgeBase', actually , i haven't found it in the source code, did you lose it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.