Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Multi Class Text (Feedback) Classification using CNN, GRU Network and pre trained Word2Vec embedding, word embeddings on TensorFlow.

License

NotificationsYou must be signed in to change notification settings

pabitralenka/Customer-Feedback-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Our goal is to determine what class(es) the customer feedback sentences should be annotated with five-plus-one-classes categorization (comment, request, bug, complaint, meaningless and undetermined) as in four languages i.e. English, French, Japanese and Spanish.
  • This is one of the shared tasks ofIJCNLP - 2017. For more details about the task, please visithere.

Citing the paper

If you are using this code for any sort of research, please cite our paper


Dataset

Training Data samples for CNN (training.tsv) from different languages used

tagconsumer_complaint_narrative
commentRooms and sitting area was always immaculate.
request:) Deberían abrir vacantes para beta-testers :)
meaninglessil beug tou le temp
complaintシャンプーが泡立たない

Test Data samples for CNN (test.tsv) from different languages used

idconsumer_complaint_narrative
en-test-0002You can't go wrong!!!
es-test-0004La habitación súper grande! muy cómoda..
fr-test-0006La salle de bains est splendide.
jp-test-0016日々の忙しさを忘れて、娘が優しくされると優しくなれるね

Training Data samples for CNN + RNN (training.tsv) from different languages used

CategoryDescript
commentRooms and sitting area was always immaculate.
request:) Deberían abrir vacantes para beta-testers :)
meaninglessil beug tou le temp
complaintシャンプーが泡立たない

Test Data samples for CNN + RNN (test.tsv) from different languages used

idDescript
en-test-0002You can't go wrong!!!
es-test-0004La habitación súper grande! muy cómoda..
fr-test-0006La salle de bains est splendide.
jp-test-0016日々の忙しさを忘れて、娘が優しくされると優しくなれるね

Running the Code

For CNN

Train
  • Command :python3 train.py training.tsv parameters.json
  • A directory will be created during training, and the best model will be saved in this directory.
Test
  • Provide the model directory (created when runningtrain.py) and test data topredict.py
  • Command :python3 predict.py trained_model_1505467324/ test.tsv

For CNN + RNN

Train
  • Command :python3 train.py training.tsv training_config.json
  • A directory will be created during training, and the best model will be saved in this directory.
Test
  • Provide the model directory (created when runningtrain.py) and test data topredict.py
  • Command :python3 predict.py trained_results_1505468375/ test.tsv

Reporting Doubts and Errors

  • For any queries, please drop me an email atpabitra.lenka18@gmail.com.
  • Please refer to the publication for detailed results and model performances.

Credits

  • I would like to thankJie Zhang andDenny Britz for sharing their code.
  • We have used their code and modified according to our need by incorporating pre-trainedWord2Vec embedding.
  • Deepak Gupta has also contributed to this code repository.

About

Multi Class Text (Feedback) Classification using CNN, GRU Network and pre trained Word2Vec embedding, word embeddings on TensorFlow.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp