Skip to content

Compare the similarity of two strings in Stata using Python plugin

Notifications You must be signed in to change notification settings

Asdf-Jo/Similarity_Strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

command: si_jo

Please put si_jo.ado and si_jo.sthlp files into ado/plus/s folder of your Stata installation directory.

Function: Compare the similarity of two strings.

Need to install python and anaconda in advance.

Return value: r(sim_jo), which represents the similarity of two strings.

For calculation method, please refer to python difflib.SequenceMatcher.

Example:

si_jo "different" "difficult"

dis r(sim_jo)

si_jo "北京人民大学" "南京大学"

dis r(sim_jo)

About

Compare the similarity of two strings in Stata using Python plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages