Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
NLP added to the db stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Nov 22, 2019
1 parent d0f3c55 commit d800f80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/andromeda/araserver/Run.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private Run(int port) throws IOException {
"\n" +
" You should have received a copy of the GNU General Public License\n" +
" along with this program. If not, see <https://www.gnu.org/licenses/>.");
new MsSql().getSkills();
//new MsSql().getSkills();
ClassLoader classloader = Thread.currentThread().getContextClassLoader();
InputStream is = classloader.getResourceAsStream("parse.bin");
model = new ParserModel(is);
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/andromeda/araserver/util/MsSql.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.andromeda.araserver.util

import opennlp.tools.parser.Parse
import opennlp.tools.parser.Parser
import java.sql.Connection
import java.sql.DriverManager
import java.sql.ResultSet
Expand All @@ -15,9 +17,10 @@ class MsSql {
userName,
password
)
fun getSkills(): String {
fun getSkills(phrase:String, keyWord: KeyWord, parse: Parser): String {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
var connection: Connection? = null
val phrases = SortWords(keyWord = keyWord, mainVal = phrase).getTopics(parse = parse)
val link = "test"
println(password)
connection = DriverManager.getConnection(url)
Expand Down

0 comments on commit d800f80

Please sign in to comment.