Answers.Body: <p>For this application, you can frame it as text classification. Look at SpaCy. You just need to create embeddings for your text and put a Softmax in the end. You can get those embeddings from BERT or anything else out there. You can in fact just use GLOVE vectors and others like it, concatenate them and then train a classifier.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-17T18:59:54.463Z
Answers.LastActivityDate: 2021-02-17T18:59:54.463Z
Answers.UserDisplayName: Abhishek Verma
Body: <p>I need some tool to classify articles based on short category text which consists of two or three words separated by '-'. The RSS/XML tag content is for example:</p>
  <blockquote>
  <p>Foreign - News</p>
  </blockquote>
  <blockquote>
  <p>Football - Foreign</p>
  </blockquote>
  <p>I created my own categories and now I need to classify categories from parsed RSS of this news source, so it fits news categories defined by me.</p>
  <p>I would for example need all articles containing category &quot;football&quot; to be identified as a category <em>Sport</em> but sometimes those categories XML tags contains exact match like <em>Foreign - News</em> should belong in the DB to category defined by me as <em>Foreign</em>.</p>
  <p>I can of course also use longer description text if that would be needed but I think for this simple problem that would not be even necessary.</p>
  <p>Since I used only trained decision trees frameworks so far for another project, I would like to hear advice about approach, AI technique or particular framework I can use to solve this problem. I don't want to get into a dead-end street by my own poor in this field not experienced decision.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-02-16T16:56:03.247Z
Comments.Text: Hi. [Asking for tools (software) is off-topic here](https://ai.stackexchange.com/help/on-topic). So, if you don't want me to close this post, I would suggest that you edit this post and ask for an "approach" (using AI techniques) to solve your problem.
Comments.UserDisplayName: nbro
Tags: <machine-learning><classification><python><algorithm><text-classification>
Title: What approach to use for selecting one of the category according to short category text?
UserDisplayName: BanikPyco
ThreadText: # What approach to use for selecting one of the category according to short category text?
  
  (Asked by: username_0 on 2021-02-11)
  
  I need some tool to classify articles based on short category text which consists of two or three words separated by '-'. The RSS/XML tag content is for example:
  
  > Foreign - News
  
  > Football - Foreign
  
  I created my own categories and now I need to classify categories from parsed RSS of this news source, so it fits news categories defined by me.
  
  I would for example need all articles containing category "football" to be identified as a category *Sport* but sometimes those categories XML tags contains exact match like *Foreign - News* should belong in the DB to category defined by me as *Foreign*.
  
  I can of course also use longer description text if that would be needed but I think for this simple problem that would not be even necessary.
  
  Since I used only trained decision trees frameworks so far for another project, I would like to hear advice about approach, AI technique or particular framework I can use to solve this problem. I don't want to get into a dead-end street by my own poor in this field not experienced decision.
  
  **Tags:** machine-learning, classification, python, algorithm, text-classification
  > **Comments:**
  > **username_1**: Hi. [Asking for tools (software) is off-topic here](https://ai.stackexchange.com/help/on-topic). So, if you don't want me to close this post, I would suggest that you edit this post and ask for an "approach" (using AI techniques) to solve your problem.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-02-17. Score: 0 | Accepted answer
  
  For this application, you can frame it as text classification. Look at SpaCy. You just need to create embeddings for your text and put a Softmax in the end. You can get those embeddings from BERT or anything else out there. You can in fact just use GLOVE vectors and others like it, concatenate them and then train a classifier.
  
  
  ---
  
  