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.
Merge pull request HIT-SCIR#89 from endyul/token_improve
Token improve
- 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_TOKENS_H__ | ||
#define __LTP_SPECIAL_TOKENS_H__ | ||
|
||
namespace ltp{ | ||
namespace segmentor{ | ||
const static std::string special_tokens[] = { | ||
"AT&T", | ||
"c#", | ||
"C#", | ||
"c++", | ||
"C++", | ||
}; | ||
|
||
const static size_t special_tokens_size = sizeof(special_tokens) / sizeof(std::string); | ||
} | ||
} | ||
|
||
|
||
#endif |