Quantcast
Viewing all articles
Browse latest Browse all 3

Answer by randalv for Error when using Beautiful Soup in Python

Without seeing the full context (e.g the value of review that gets passed into constructor) is it possible your KaggleWord2VecUtility method is splitting on the @ symbol and/or the digit, such that a token is being passed as a float instead of a string/unicode object? The exception indicates that markup is an unexpected float when init is expecting a string or unicode object

def __init__(self, markup="", features=None, builder=None,             parse_only=None, from_encoding=None, **kwargs):

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>