Code: Alles auswählen
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-48-1343d4d9ff99> in <module>()
3 translist=[]
4 for einzelwert in corpus:
----> 5 translation = translator.translate(einzelwert)
6 translist.append(einzelwert)
4 frames
/usr/lib/python3.7/textwrap.py in _munge_whitespace(self, text)
152 """
153 if self.expand_tabs:
--> 154 text = text.expandtabs(self.tabsize)
155 if self.replace_whitespace:
156 text = text.translate(self.unicode_whitespace_trans)
AttributeError: 'list' object has no attribute 'expandtabs'
Das ist der Output, wenn ich die For-Schleife mit print(Einzelwert) durchlaufen lasse. Also quasi der Inhalt der Liste corpus.
Die Liste ist zu lange um sie hier einzufügen, aber hier ein Ausschnitt davon:
['black', 'Mounting', 'Mount', 'Articulating', 'ProMounts', 'PRO', 'Arm', 'Medium']
['marked', 'effectiveness', 'genuine', 'deer', 'independent', 'single', 'organization', 'Blue', 'true', 'Ounce', 'life', 'one', 'animal', 'taken', 'Urine', 'certified', 'ounce', 'use', 'Code', 'bottle', 'Perfect', 'article', 'Every', 'number', 'registration', 'urine', 'long', 'Buck', 'season']
['BLUSH', 'BSB', 'hours', 'blush', 'Applicator', 'Use', 'contour', 'true', 'beautifully', 'color', 'Colors', 'touch', 'Spice', 'Silky', 'cheeks', 'Professional', 'stays', 'smooth', 'highlight', 'adds', 'Series']
['model', 'trim', 'parts', 'interior', 'appreciate', 'Rebecca', 'seatbelts', 'die', 'done', 'wheel', 'smartly', 'respond', 'inch', 'trunk', 'offering', 'Lamborghini', 'steering', 'even', 'The', 'roadster', 'independent', 'Hughes', 'metal', 'Inside', 'removable', 'best', 'lovers', 'Each', 'fast', 'Turn', 'seater', 'ultrasporty', 'open', 'spring', 'car', 'right', 'wanted', 'scale', 'thoughtful', 'shoulder', 'back', 'black', 'white', 'upward', 'come', 'next', 'Maisto', 'touch', 'harness', 'doors', 'red', 'built', 'owning', 'engine', 'plastic', 'Legend', 'Have', 'Diablo', 'actual', 'spare', 'always', 'Best', 'wheels', 'thing', 'seats', 'tire', 'smoothest', 'cast', 'also', 'front', 'bookLamborghini', 'This', 'bucket', 'long', 'rides', 'suspension']
['Creek', 'chips', 'choice', 'bacon', 'wood', 'ideal', 'rich', 'pork', 'soaked', 'gas', 'grill', 'chicken', 'Our', 'Recommended', 'distinct', 'smoker', 'game', 'creates', 'electric', 'also', 'used', 'beef', 'flavor', 'perfect', 'wild', 'need', 'Wood', 'smokers', 'premium', 'Hickory', 'charcoal', 'meat', 'gives', 'They', 'Chips', 'smoky', 'like', 'full', 'Chigger']
['ewe', 'expel', 'depicts', 'veggies', 'salads', 'sweetness', 'Basque', 'traditional', 'word', 'contact', 'country', 'stacked', 'high', 'textured', 'salt', 'apples', 'ewes', 'lovely', 'transhumance', 'purchase', 'Made', 'lowlands', 'olives', 'picnic', 'name', 'aged', 'whole', 'The', 'yet', 'summer', 'comes', 'close', 'similar', 'late', 'pressed', 'Etorki', 'buffet', 'pound', 'cut', 'creamy', 'French', 'like', 'September', 'shepherds', 'vertically', 'hour', 'takes', 'firm', 'Local', 'black', 'Manech', 'made', 'pears', 'oily', 'years', 'June', 'source', 'butterfat', 'red', 'texture', 'burnt', 'molds', 'pasteurized', 'wrap', 'plastic', 'pastures', 'Photo', 'faced', 'bath', 'cheese', 'cheeses', 'small', 'allow', 'whey', 'rubbed', 'mid', 'caramel', 'curd', 'brine', 'Please', 'After', 'supple', 'sheep', 'flock', 'origin', 'later', 'Pyrenees', 'press', 'raw', 'form', 'item', 'two', 'six', 'soaked', 'modern', 'fine', 'dating', 'igourmet', 'impregnated', 'ounce', 'regenerate', 'July', 'From', 'flocks', 'would', 'This', 'December', 'months', 'milk', 'cloths', 'three']
['Grappling', 'ninja', 'approximately', 'Hook', 'iron', 'made', 'hook', 'true', 'weapon', 'casting', 'TMAS', 'grappling', 'Ninja', 'foot', 'nylon', 'rope', 'long', 'attached']
['original', 'specs', 'instructions', 'brings', 'back', 'power', 'marine', 'pump', 'Kit', 'needles', 'seats', 'Carburetor', 'carburetors', 'diaphragms', 'carburetor', 'new', 'gaskets', 'condition', 'Holley', 'valves', 'rings', 'complete', 'detailed', 'This', 'renew', 'kit', 'necessary', 'rebuild', 'Renew', 'like', 'includes', 'hardware']
['Caps', 'Zinc', 'TwinLab', 'capsules', 'Twinlab', 'cap']