travis-ci
3390 of 12197 relevant lines covered (27.79%)
1.01 hits per line
1 |
# -*- coding: utf-8 -*-
|
|
2 |
from 臺灣言語工具.解析整理.程式掠漏 import 程式掠漏 |
8 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
3 |
from 臺灣言語工具.解析整理.解析錯誤 import 解析錯誤 |
8 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
4 |
from 臺灣言語工具.基本物件.詞 import 詞 |
8 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
5 |
from 臺灣言語工具.基本物件.字 import 字 |
8 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
6 |
|
|
7 |
|
|
8 |
class 詞物件網仔: |
8 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
9 |
|
|
10 |
@classmethod
|
8 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
11 |
def 網出詞物件(cls, 物件): |
|
12 |
try:
|
4 only TOX_ENV=Moses整合試驗, TOX_ENV=中研院整合試驗, TOX_ENV=Moses整合試驗, and TOX_ENV=中研院整合試驗 ✔ |
13 |
return 物件.網出詞物件()
|
4 only TOX_ENV=Moses整合試驗, TOX_ENV=中研院整合試驗, TOX_ENV=Moses整合試驗, and TOX_ENV=中研院整合試驗 ✔ |
14 |
except 解析錯誤:
|
× |
15 |
if isinstance(物件, 字): |
× |
16 |
詞物件 = 詞() |
× |
17 |
詞物件.內底字 = [物件] |
× |
18 |
return [詞物件]
|
× |
19 |
raise
|
× |
20 |
except AttributeError: |
× |
21 |
程式掠漏.毋是字詞組集句章的毋著(物件) |
× |