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"
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:Whereas the actual result
Apologies if this is working as intended.
Many thanks Joe