<commit_before># Virtebi Algorithm meet corpus parser
Implementation Virtebi Algorithm by split joined words, into readable words in golang

It begins, when I was searching for solution for parsing domain names, into readable string. And found this
http://stackoverflow.com/questions/195010/how-can-i-split-multiple-joined-words

# How to Install
If you setup go environment correctly, then you can do this
```
go install https://github.com/raitucarp/go.virtebi.corpus 
```
Please see commandline usage

note: I do not release binary build yet. Maybe soon


# How to use it as Package
first get it
```
go get https://github.com/raitucarp/go.virtebi.corpus 
```
then include it
```
package main

import (
	"fmt"
	"github.com/raitucarp/go.virtebi.corpus/corpus"
)

func main() {
	c := corpus.NewCorpus()
	// you need to load it manually
	// it will takes longer time for its first build
	// corpus.db
	c.Load()

	origin, result, prob := c.Match("facebook is true")
	fmt.Println(origin, result, prob)
}

```

# Usage
```
Usage of ./virtebi-corpus:<commit_msg>fix facebookistrue, continue.. I'm in lazy time right now.\nI'm going to make this readme more compact and clean<commit_after># Virtebi Algorithm meet corpus parser
Implementation Virtebi Algorithm by split joined words, into readable words in golang

It begins, when I was searching for solution for parsing domain names, into readable string. And found this
http://stackoverflow.com/questions/195010/how-can-i-split-multiple-joined-words

# How to Install
If you setup go environment correctly, then you can do this
```
go install https://github.com/raitucarp/go.virtebi.corpus 
```
Please see commandline usage

note: I do not release binary build yet. Maybe soon


# How to use it as Package
first get it
```
go get https://github.com/raitucarp/go.virtebi.corpus 
```
then include it
```
package main

import (
	"fmt"
	"github.com/raitucarp/go.virtebi.corpus/corpus"
)

func main() {
	c := corpus.NewCorpus()
	// you need to load it manually
	// it will takes longer time for its first build
	// corpus.db
	c.Load()

	origin, result, prob := c.Match("facebookistrue")
	fmt.Println(origin, result, prob)
}

```

# Usage
```
Usage of ./virtebi-corpus:
{'fraction_non_alphanumeric': 0.10547759167043912, 'fraction_numerical': 0.005432322317790856, 'mean_word_length': 4.045662100456621, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6103840', 'n_tokens_mistral': 739, 'n_tokens_neox': 689, 'n_words': 258}