## 日本語の形態素解析
科学技術論 本発表7/14
5J32 芳賀あかり
slide:
https://hackmd.io/@akari000/tnct2019kagakugijutu
---
# 目次
1. MeCabについて
2. 調査内容
3. MeCab作者の経歴
4. MeCab作成の背景と経緯
5. まとめ
---
# MeCab とは?
- 日本語の形態素解析エンジン
---
# 調査内容
- MeCab作者の経歴
- MeCab作成の背景と経緯
---
# MeCab作者の経歴
年 | 経歴
-- | --
1999 | 京都大学工学部電気電子工学科卒業
2004 | 奈良先端科学技術大学院大学情報科学研究科博士後期課程修了
2004 | NTTコミュニケーション科学基礎研究所リサーチアソシエイト
2005 | Google 合同会社 ソフトウェアエンジニア
2006 | MeCabをリリース
---
### Usage flow
---
```graphviz
digraph {
compound=true
rankdir=RL
graph [ fontname="Source Sans Pro", fontsize=20 ];
node [ fontname="Source Sans Pro", fontsize=18];
edge [ fontname="Source Sans Pro", fontsize=12 ];
subgraph core {
c [label="Hackmd-it \ncore"] [shape=box]
}
c -> sync [ltail=session lhead=session]
subgraph cluster1 {
concentrate=true
a [label="Text source\nGithub, Gitlab, ..."] [shape=box]
b [label="HackMD Editor"] [shape=box]
sync [label="sync" shape=plaintext ]
b -> sync [dir="both"]
sync -> a [dir="both"]
label="An edit session"
}
}
```
---
### Architecture of extension
---

---
## Content script
- Bind with each page
- Manipulate DOM
- Add event listeners
- Isolated JavaScript environment
- It doesn't break things
---
# :fork_and_knife:
---
<style>
code.blue {
color: #337AB7 !important;
}
code.orange {
color: #F7A004 !important;
}
</style>
- <code class="orange">onMessage('event')</code>: Register event listener
- <code class="blue">sendMessage('event')</code>: Trigger event
---
# :bulb:
---
- Dead simple API
- Only cares about application logic
---
```typescript
import * as Channeru from 'channeru'
// setup channel in different page environment, once
const channel = Channeru.create()
```
---
```typescript
// in background script
const fakeLogin = async () => true
channel.answer('isLogin', async () => {
return await fakeLogin()
})
```
<br>
```typescript
// in inject script
const isLogin = await channel.callBackground('isLogin')
console.log(isLogin) //-> true
```
---
# :100: :muscle: :tada:
---
### Wrap up
- Cross envornment commnication
- A small library to solve messaging pain
- TypeScript Rocks :tada:
---
### Thank you! :sheep:
You can find me on
- GitHub
- Twitter
- or email me
{"metaMigratedAt":"2023-06-14T22:43:01.239Z","metaMigratedFrom":"YAML","title":"日本語の形態素解析","breaks":true,"description":"科学技術論本発表","contributors":"[{\"id\":\"1a969160-5926-46ea-a7d5-b0f67bac61e6\",\"add\":2684,\"del\":313}]"}