Skip to content

Commit

Permalink
Merge pull request #138 from kwonoj/feat-spaninfo
Browse files Browse the repository at this point in the history
feat(languageresult): include spaninfo array
  • Loading branch information
kwonoj authored Jul 11, 2019
2 parents 4c355d4 + 1e5253f commit 4c99803
Show file tree
Hide file tree
Showing 17 changed files with 992 additions and 1,073 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="3.1.0"></a>
# [3.1.0](https://github.com/kwonoj/cld3-asm/compare/v3.0.0...v3.1.0) (2019-07-11)


### Features

* **languageresult:** include spaninfo array ([d9f716c](https://github.com/kwonoj/cld3-asm/commit/d9f716c))



<a name="3.0.0"></a>
# [3.0.0](https://github.com/kwonoj/cld3-asm/compare/v2.0.1...v3.0.0) (2019-06-13)

Expand Down
824 changes: 453 additions & 371 deletions examples/browser/package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions examples/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"author": "OJ Kwon <kwon.ohjoong@gmail.com>",
"license": "MIT",
"devDependencies": {
"file-loader": "^2.0.0",
"file-loader": "^4.0.0",
"html-webpack-plugin": "^3.2.0",
"ts-loader": "^5.3.3",
"typescript": "^3.3.3333",
"url-loader": "^1.1.2",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3"
"ts-loader": "^6.0.4",
"typescript": "^3.5.3",
"url-loader": "^2.0.1",
"webpack": "^4.35.3",
"webpack-cli": "^3.3.5"
}
}
5 changes: 4 additions & 1 deletion examples/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ app.on('window-all-closed', () => {
app.on('ready', () => {
mainWindow = new BrowserWindow({
width: 1024,
height: 768
height: 768,
webPreferences: {
nodeIntegration: true
}
});

mainWindow.loadURL(`file://${__dirname}/${process.env.ENTRY}.html`);
Expand Down
74 changes: 40 additions & 34 deletions examples/electron/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"license": "MIT",
"devDependencies": {
"cross-env": "^5.2.0",
"electron": "^4.0.6",
"electron": "^5.0.6",
"npm-run-all": "^4.1.5",
"shx": "^0.3.2",
"typescript": "^3.3.3333"
"typescript": "^3.5.3"
},
"dependencies": {}
}
1 change: 0 additions & 1 deletion examples/electron/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"preserveConstEnums": true,
"sourceMap": true,
"declaration": false,
"noImplicitAny": true,
"noImplicitReturns": true,
"suppressImplicitAnyIndexErrors": true,
"strictNullChecks": true,
Expand Down
70 changes: 22 additions & 48 deletions examples/node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"author": "OJ Kwon <kwon.ohjoong@gmail.com>",
"license": "MIT",
"devDependencies": {
"ts-node": "^7.0.1",
"typescript": "^3.3.3333"
"ts-node": "^8.3.0",
"typescript": "^3.5.3"
}
}
5 changes: 3 additions & 2 deletions examples/runCld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { CldFactory } from '../src/CldFactory';

const findLanguage = {
language: 'ko',
text: ' 개별적으로 리포트 액세스 권한을 부여할 수 있습니다 액세스 권한 부여사용자에게 프로필 리포트에 액세스할 수 있는 권한을 부여하시려면 가용 프로필 상자에서 프로필 이름을 선택한 다음'
text:
' 개별적으로 리포트 액세스 권한을 부여할 수 있습니다 액세스 권한 부여사용자에게 프로필 리포트에 액세스할 수 있는 권한을 부여하시려면 가용 프로필 상자에서 프로필 이름을 선택한 다음'
};

const frequentLanguage = 'This piece of text is in English. Този текст е на Български.';
Expand All @@ -19,7 +20,7 @@ const runCld = (cldFactory: CldFactory) => {
const frequentResult = identifier.findMostFrequentLanguages(frequentLanguage, 3);

console.log(`find most frequent languages for text "${frequentLanguage}..."`);
console.log(JSON.stringify(frequentResult));
console.dir(frequentResult, { depth: null });
console.assert(frequentResult.length === 2);
console.assert(frequentResult[0].language === 'bg');
console.assert(frequentResult[1].language === 'en');
Expand Down
2 changes: 1 addition & 1 deletion jest-cld.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"preset": "ts-jest",
"testMatch": [
"**/spec/cld/**/*-spec.ts"
"**/spec/cld/**/cld-spec.ts"
],
"bail": true,
"testEnvironment": "node",
Expand Down
Loading

0 comments on commit 4c99803

Please sign in to comment.