Environment: Python 3.5.2, MacOS Sierra
Below is a code that reads Excel data, creates a string, and uses ReCab to indicate nouns and number of appearances.
I ran the code in my file, but when I ran the code using different Japanese data, I got the following error, so I think it's an encoding problem.
NotImplementedError: Wrong number or type of arguments for overloaded function 'Tagger_parse'.
I think it is necessary to include encodes and decodes for
utf-8, but could someone please tell me?
This issue has nothing to do with Pandas and appears to be caused by the different format of
i passed to
m.parse(i) in Mecab if it works correctly and if it does not.It may be a character code, but it may not be.
To clarify what
i is, check what data you are trying to pass to the previous line, such as
print(type(i)).Once you have confirmed it, try to isolate whether you can experience the same problem when you are not using Pandas.
Just to guess, if it doesn't work well,
i may be an array or other data format, not a string.
© 2022 OneMinuteCode. All rights reserved.