C# Class Studyzy.LearnEnglishBySubtitle.SentenceParse

Datei anzeigen Open project: studyzy/LearnEnglishBySubtitle Class Usage Examples

Public Properties

Property Type Description
SpecialWords IList

Public Methods

Method Description
GetOriginalSentence ( string sentence ) : string

替换掉其中的简写部分,还原成非简写形式

Pickup ( string line ) : string>>.IList

找出一个句子中的所有生词(Key为生词的原型,Value为生词在句子中的形式)

RemarkWord ( string sentence, string word, string original ) : EngDictionary

根据一个句子,找到一个单词在句子中的意思

SentenceParse ( ) : System
SplitSentence ( string sentence ) : ICollection

将一个句子分成单词和符号(空格)组成的数组

SplitSentence2Words ( string sentence ) : string[]

把句子拆分成单词

Private Methods

Method Description
ConvertTag ( string tag ) : string
GetSentences ( string line ) : IList

把一段话拆分成多个句子

GetTag ( string word, string sentence ) : string
IsEasyWord ( string word ) : bool
IsEnglishName ( string word ) : bool

判断是否是英文名,首字母大写,而且在英文名列表中的就是英文名

IsSpecialName ( string s, IEnumerable sentences ) : bool

首字母大写,但是找到的解释的词却不是首字母大写

Parse ( string subtitleLine ) : string

Method Details

GetOriginalSentence() public static method

替换掉其中的简写部分,还原成非简写形式
public static GetOriginalSentence ( string sentence ) : string
sentence string
return string

Pickup() public method

找出一个句子中的所有生词(Key为生词的原型,Value为生词在句子中的形式)
public Pickup ( string line ) : string>>.IList
line string 一句英文句子
return string>>.IList

RemarkWord() public method

根据一个句子,找到一个单词在句子中的意思
public RemarkWord ( string sentence, string word, string original ) : EngDictionary
sentence string 单词所在句子
word string 单词本身
original string 单词的原型
return Studyzy.LearnEnglishBySubtitle.EngDict.EngDictionary

SentenceParse() public method

public SentenceParse ( ) : System
return System

SplitSentence() public static method

将一个句子分成单词和符号(空格)组成的数组
public static SplitSentence ( string sentence ) : ICollection
sentence string
return ICollection

SplitSentence2Words() public static method

把句子拆分成单词
public static SplitSentence2Words ( string sentence ) : string[]
sentence string
return string[]

Property Details

SpecialWords public_oe property

public IList SpecialWords
return IList