wrathematics / ngram

Fast n-Gram Tokenization
Other
71 stars 23 forks source link

Results from get.string() #9

Closed russey closed 4 years ago

russey commented 4 years ago

This may be my misunderstanding, but the documentation for get.string() states it "recovers the input string as an R string". This would lead me to believe it should work something like this:

> ng <- ngram("hello", n = 1)
> get.string(ng)
[1] "hello"

Whereas the actual result

> ng <- ngram("hello", n = 1)
> get.string(ng)
[1] "p"

Apologies if this is working as intended.

Many thanks Joe

wrathematics commented 4 years ago

Thanks for reporting this. It should be fixed in the latest commit.