Pattern Lattice Builder

What is it?

Pattern Lattice Builder takes a list of items (= regular text composed of one or more items separated with spaces) and generates a network of all possible combination patterns of those items. It can handle multiple sentences that correspond to lines of the input text), merging similar patterns and thus reducing the size of the whole network.

Example

Try the help command for all available options.

$ rubyplb -h

sample1.plb → sample1.png

gold silver bronze iron
$ rubyplb sample1.plb sample1.png



h4. sample2.plb → sample2.png

give a_present to her
give her a_present
$ rubyplb -c sample2.plb sample2.png

sample3.plb → sample3.png

Place color name (HTML4/CSS 1.0 standard name) with a pair of brackets (e.g. [red], [navy], [#FF9900] etc) after input sentences. Then all the paths from the blank node up to the node representing the sentence will be rendered in specified colors.

A B C [navy]
C D E [#FF9900]
A D E 
$ rubyplb -c sample3.plb sample3.png

sample4.plb → sample4.png

A number in parentheses at the end of a sentence are interpreted as specification of the occurrence frequency of the sentence. Thus the following input is identical to the input consisting of 42 lines of “A B C”, 23 lines of “C D E”, and 8 lines of “A D E” (Note the temperature coloring is different from that of the previous example).

A B C [navy] (42)
C D E [#FF9900] (23)
A D E (8)
h4. rubyplb -c sample4.plb sample4.png

rubyfca 0.2.6 / rubyplb 0.2.5