Airbnb主机配置文件的自动分析。

AirProfile的Python项目详细描述


https://badge.fury.io/py/AirProfile.svg

用于自动分析Airbnb主机配置文件的Python包。

该软件包采用Airbnb个人资料,自动标记每个句子的主题,并预测与其他长度相似的个人资料相比,该个人资料是否更值得信赖。

示例用法

LIWC2007是预测信任所需的专有依赖项。不幸的是,由于法律原因,我们不能将其包含在这个包中。

但是,如果您没有LIWC,您仍然可以执行主题分类。

fromAirProfileimportAirProfileap=AirProfile(liwc_path='../LIWC2007/liwc_2007.trie')# or ap = AirProfile() if you do not have LIWC.# Example Airbnb host profile.input="""I have spent my life in the service industry. I look forward to being your host and I look forward to meeting you."""# Segments the input at the sentence level and returns the probability that# each sentence is tagged with the topics described in [1]. This works with or# without LIWC.ap.predict_topics(input)>>>[['i have spent my life in the service industry',{'relationships':0.02,'workEducation':0.99,'travel':0.0,'originResidence':0.07,'lifeMottoValues':0.03,'hospitality':0.02,'interestsTastes':0.03,'personality':0.02}],['i look forward to being your host and i look forward to meeting you',{'relationships':0.0,'workEducation':0.0,'travel':0.02,'originResidence':0.0,'lifeMottoValues':0.0,'hospitality':1.0,'interestsTastes':0.0,'personality':0.04}]]# Segments the input at the sentence level and returns the probability that# the profile is perceived to be more trustworthy compared to other profiles# of similar length. This requires LIWC and will throw an error otherwise.ap.predict_trust(input)>>>Prediction(prob=0.49,predict=0)

参考文献

[1]Airbnb主机配置文件的自我披露和可信赖性。小马,杰夫·汉考克,肯尼斯·林明杰,还有莫尔·纳曼。CSCW 2017年。最佳论文荣誉奖。[PDF1]

[2]Airbnb主机配置文件可信任度的计算方法。小马,特里莎拉·尼拉吉,莫·纳曼。ICWSM 2017。海报。[PDF2]

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java在TextView中对齐部分文本   带有iText和eTPKCS11的java PKCS#11签名。dll&SunPKCS11提供程序   java Intellij Idea找不到jar   java Chrome/Firefox和Jetty HTTPS   java我无法打包找不到的JavaFX应用程序模块   多线程Java:排序从异步任务检索的结果   java客户端/服务器socket不能与外部连接一起工作   java如何在单击“下一步”按钮时获取其他详细信息?   java组织。springframework。网状物客户RestTemplate应声明为@Bean,而plain@Autowired抛出错误   java如何绘制javax。摆动将ImageIcon转换为JavaFX。fxml呈现用户界面?   使用for循环的Java跟踪   java如何编码字符串以显示彩色文本(基于字符串中的前缀)   Java保存/打开文件对象   基于java复选框的搜索:使用尽可能多的“”动态生成准备好的语句作为选中复选框的计数   java为什么crawler4j随机挂起?