Company classification - Text Generator API
Text Generator API Company classification API examples - company industry and sector classification
Example input
-
The following is a list of companies and the categories they fall into Facebook: Social media, Technology Uber: Transportation, Technology, Marketplace Mcdonalds: Food, Fast Food, Logistics, Restaurants {example}:
Example real generated results
-
star
Company Name - Category Write a function that takes in this information as input. The output should be a dictionary with keys being company names and values being their category(s) from the given list. If there are multiple categories for a particular company then all those categories will go inside one value (for example "Transportation", "Technology"). Here's an example usage of your code.
-
star
A company could be listed as having multiple industries or falling under more than one category. For example a company that provides both food (Restaurants) and transportation services (Transportation). In this case it would have two entries in the "Industries" column and no entry for "Marketplaces". I want to calculate how many unique companies are represented across all the columns but with some modifications so I can get different types of information out such as total number of rows, average industry size,
-
star
Companies with multiple category labels should be separated by commas. Nike: Fashion, Sports, Retail, Athletics Ikea: Home goods, Furniture, Consumer electronics, Retail Amazon: E-commerce, Marketplace, Consumer electronics, Technology Walmart: Retail, E-commerce, Marketplace, Logistics Apple: Electronics, Computing, Consumer electronics, Tech industry PepsiCo: Beverages, Food, Retail, Marketing General Electric: Energy,
-
star
[CompanyName] - Industry - Category Here's an example for Facebook: Facebook - Technology - Social Media. Can you write a function that takes in this format as input and returns a dictionary with each company name as keys (case insensitive) and their industry category as values? The order does not matter so long as it is consistent across all examples like above. def get_industry(company): """Returns the appropriate industry category based on the given company."""
try it yourself: Text Generator Playground - Company classification - Text Generator API
Sign up