Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

N-gram/Bigram Help

$
0
0
Hey guys! My brother has a VB assignment that is looking for N-Gram/Bigram handling.

He asked me for help with it and I am at a roadblock.

Essentially the program must read any .txt or .vb file. It must then count the occurring bigrams in the .vb or .txt file. Then it must take the information that it gathers and write it to a .ngram file.

The example says there is a text file, "Example.txt" containing:

"aBabAbcd"

The program should write a file called, "Example.ngram" and it should contain:

ab: 3
ba: 2
bc: 1
cd: 1

Please let me know what you guys are thinking. As of now the program is capable of reading just a text file and writing that text file into an .ngram file, however it does not step through the file at all checking the n-grams/bigrams.

Any help would be greatly appreciated! Thank you

Viewing all articles
Browse latest Browse all 27350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>