forked from HIT-SCIR/ltp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[add] capture special tokens in preprocessing
- Loading branch information
Showing
3 changed files
with
84 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef __LTP_SPECIAL_LEXICON_H__ | ||
#define __LTP_SPECIAL_LEXICON_H__ | ||
|
||
namespace ltp{ | ||
namespace segmentor{ | ||
const static std::string special_lexicon[] = { | ||
"AT&T", | ||
"c#", | ||
"C#", | ||
"c++", | ||
"C++", | ||
}; | ||
|
||
const static size_t special_lexicon_size = sizeof(special_lexicon) / sizeof(std::string); | ||
} | ||
} | ||
|
||
|
||
#endif |