Skip to content
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

TypeError: Argument 'string' has incorrect type (expected unicode, got str) #43

Open
piersrowan opened this issue Feb 5, 2020 · 0 comments

Comments

@piersrowan
Copy link

Hi there,

Is this an install issue or a bug:

INFO:root:Archiving data set schema(s) for step name: extract
INFO:root:Working data_set: observations
INFO:root:End extract
INFO:root:Begin transform
Traceback (most recent call last):
File "main.py", line 111, in
main()
File "main.py", line 39, in main
observations, nlp = transform(observations, nlp)
File "main.py", line 81, in transform
observations['candidate_name'] = observations['text'].apply(lambda x:
File "/home/user/.local/lib/python2.7/site-packages/pandas/core/series.py", line 3591, in apply
mapped = lib.map_infer(values, f, convert=convert_dtype)
File "pandas/_libs/lib.pyx", line 2217, in pandas._libs.lib.map_infer
File "main.py", line 82, in
field_extraction.candidate_name_extractor(x, nlp))
File "/home/user/Developer/ResumeParser-master/bin/field_extraction.py", line 13, in candidate_name_extractor
doc = nlp(input_string)
File "/home/user/.local/lib/python2.7/site-packages/spacy/language.py", line 427, in call
doc = self.make_doc(text)
File "/home/user/.local/lib/python2.7/site-packages/spacy/language.py", line 453, in make_doc
return self.tokenizer(text)
TypeError: Argument 'string' has incorrect type (expected unicode, got str)

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant