New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dfm error with special characters #554
Comments
On further inspection, it seems like the error is always caused by Hiragana. Strings that fail: |
OK, definitely one for @koheiw. It's an issue with the hashing function: > tokens(c("づい゙", "゛ん゙", "たー゚"))
tokens from 3 documents.
Component 1 :
[1] "づ" NA "い゙"
Component 2 :
[1] "゛" NA "ん゙"
Component 3 :
[1] "た" NA "ー゚"
> tokens(c("づい゙", "゛ん゙", "たー゚"), hash = FALSE)
tokenizedTexts from 3 documents.
Component 1 :
[1] "づ" "" "い゙"
Component 2 :
[1] "゛" "" "ん゙"
Component 3 :
[1] "た" "" "ー゚" |
Thanks! BTW I am really loving the package. This is the first snag I've hit.
j
… On Feb 16, 2017, at 2:22 PM, Kenneth Benoit ***@***.***> wrote:
OK, definitely one for @koheiw. It's an issue with the hashing function:
> tokens(c("づい゙", "゛ん゙", "たー゚"))
tokens from 3 documents.
Component 1 :
[1] "づ" NA "い゙"
Component 2 :
[1] "゛" NA "ん゙"
Component 3 :
[1] "た" NA "ー゚"
> tokens(c("づい゙", "゛ん゙", "たー゚"), hash = FALSE)
tokenizedTexts from 3 documents.
Component 1 :
[1] "づ" "" "い゙"
Component 2 :
[1] "゛" "" "ん゙"
Component 3 :
[1] "た" "" "ー゚"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks Jim!
Testimonials always welcome at #461.
Ken
On 16 Feb 2017, at 23:42, jhfowler <notifications@github.com<mailto:notifications@github.com>> wrote:
Thanks! BTW I am really loving the package. This is the first snag I've hit.
j
On Feb 16, 2017, at 2:22 PM, Kenneth Benoit ***@***.******@***.***>> wrote:
OK, definitely one for @koheiw. It's an issue with the hashing function:
> tokens(c("づい゙", "゛ん゙", "たー゚"))
tokens from 3 documents.
Component 1 :
[1] "づ" NA "い゙"
Component 2 :
[1] "゛" NA "ん゙"
Component 3 :
[1] "た" NA "ー゚"
> tokens(c("づい゙", "゛ん゙", "たー゚"), hash = FALSE)
tokenizedTexts from 3 documents.
Component 1 :
[1] "づ" "" "い゙"
Component 2 :
[1] "゛" "" "ん゙"
Component 3 :
[1] "た" "" "ー゚"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#554 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACFMZg-FwdZKUpgMe6rhN8zRv7BlVoA8ks5rdNDbgaJpZM4MCHB_>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i am trying to turn a list of tweets into a dfm and it occasionally creates an error on special characters. here's an example:
The text was updated successfully, but these errors were encountered: