From e431719d8b6a2be0d39bfcc4a33fb8b29abdd6cf Mon Sep 17 00:00:00 2001
From: Diego Dorgam <diego.dorgam@rocket.chat>
Date: Thu, 7 Dec 2017 00:04:43 -0200
Subject: [PATCH] Minor Adjustments to gitignore and docker-compose.yml

---
 .gitignore            |  4 ++++
 brill.js              | 23 -----------------------
 docker-compose.yml    | 12 ++++++------
 external-scripts.json |  1 -
 hubot-scripts.json    |  1 -
 package.json          |  5 ++---
 6 files changed, 12 insertions(+), 34 deletions(-)
 delete mode 100644 brill.js
 delete mode 100644 external-scripts.json
 delete mode 100644 hubot-scripts.json

diff --git a/.gitignore b/.gitignore
index f1cff8d..3c61a13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -123,3 +123,7 @@ Session.vim
 tags
 
 # End of https://www.gitignore.io/api/vim,node,macos,linux
+# Hubot files
+.editorconfig
+.hubot_history
+bin/
diff --git a/brill.js b/brill.js
deleted file mode 100644
index 4f9760f..0000000
--- a/brill.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var natural = require("natural");
-var path = require("path");
-
-var base_folder = path.join(path.dirname(require.resolve("natural")), "brill_pos_tagger");
-var rulesFilename = base_folder + "/data/English/tr_from_posjs.txt";
-var lexiconFilename = base_folder + "/data/English/lexicon_from_posjs.json";
-var defaultCategory = 'N';
-
-var lexicon = new natural.Lexicon(lexiconFilename, defaultCategory);
-var rules = new natural.RuleSet(rulesFilename);
-var tagger = new natural.BrillPOSTagger(lexicon, rules);
-
-var sentence = ["I", "see", "the", "man", "with", "the", "telescope"];
-console.log(JSON.stringify(tagger.tag(sentence)));
-
-// [["I","NN"],["see","VB"],["the","DT"],["man","NN"],
-// ["with","IN"],["the","DT"],["telescope","NN"]]
-
-// NN Noun, singular or mass
-// VB Verb, base form
-// DT Determiner
-// NN Noun, singular or mass
-// IN Preposition or subordinating conjunction
diff --git a/docker-compose.yml b/docker-compose.yml
index 7022056..32a68d4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -18,9 +18,9 @@ services:
       - mongo
     ports:
       - 3000:3000
-    labels:
-      - "traefik.backend=rocketchat"
-      - "traefik.frontend.rule=Host: your.domain.tld"
+    # labels:
+    #   - "traefik.backend=rocketchat"
+    #   - "traefik.frontend.rule=Host: your.domain.tld"
 
   mongo:
     image: mongo:3.2
@@ -29,8 +29,8 @@ services:
      - ./data/db:/data/db
      #- ./data/dump:/dump
     command: mongod --smallfiles --oplogSize 128 --replSet rs0
-    labels:
-      - "traefik.enable=false"
+    # labels:
+    #   - "traefik.enable=false"
 
   # this container's job is just run the command to initialize the replica set.
   # it will run the command and remove himself (it will not stay running)
@@ -41,7 +41,7 @@ services:
       - mongo
 
   hubot-natural:
-    # image: diegodorgam/hubot-natural:alpine
+    # image: diegodorgam/hubot-natural:latest
     build: .
     restart: unless-stopped
     environment:
diff --git a/external-scripts.json b/external-scripts.json
deleted file mode 100644
index 1e3ec72..0000000
--- a/external-scripts.json
+++ /dev/null
@@ -1 +0,0 @@
-[ ]
diff --git a/hubot-scripts.json b/hubot-scripts.json
deleted file mode 100644
index 0637a08..0000000
--- a/hubot-scripts.json
+++ /dev/null
@@ -1 +0,0 @@
-[]
\ No newline at end of file
diff --git a/package.json b/package.json
index a1c3216..92fc044 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "hubot-natural",
-  "version": "0.0.5",
+  "version": "0.0.6",
   "private": true,
   "author": "Diego Dorgam <diego.dorgam@rocket.chat>",
   "description": "NLP YAML oriented chatbot",
@@ -13,8 +13,7 @@
     "hubot-shell": "^1.0.2",
     "hubot-rocketchat": "^1.0.12",
     "js-yaml": "^3.2.5",
-    "natural": "^0.5.0",
-    "pm2": "^2.4.2"
+    "natural": "^0.5.0"
   },
   "engines": {
     "node": "0.10.x"
-- 
GitLab