Skip to main content
https://badge.fury.io/py/AirProfile.svg

A python package for automatic analysis of Airbnb host profiles.

The package takes an Airbnb profile, automatically tags topics for each sentence, and predicts whether the profile will be perceived as more trustworthy compared to other profiles of similar length.

Example Usage

LIWC2007 is a proprietary dependency required for predicting trust. Unfortunately, we can’t include it in this package for legal reasons.

However, if you do not have LIWC, you can still perform topic classification.

from AirProfile import AirProfile

ap = 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)

References

[1] Self-disclosure and Perceived Trustworthiness of Airbnb Host Profiles. Xiao Ma, Jeff Hancock, Kenneth Lim Mingjie, and Mor Naaman. CSCW 2017. Honorable Mention for Best Paper. [PDF1]

[2] A Computational Approach to Perceived Trustworthiness of Airbnb Host Profiles. Xiao Ma, Trishala Neeraj, Mor Naamann. ICWSM 2017. Poster. [PDF2]

Metadata

Release files for AirProfile 1.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AirProfile 1.0.12
File Size Uploaded
AirProfile-1.0.12.tar.gz 86.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for AirProfile 1.0.12
File Interpreter ABI Platform
AirProfile-1.0.12-py2-none-any.whl Python 2 none any Details

Total release size: 90.3 kB

Release files / AirProfile-1.0.12.tar.gz

Download URL AirProfile-1.0.12.tar.gz
Size 86.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1d0ae96ec22976c87cb4a52f779506f9f8f26cfe9c75d7b1f28eb86273b79887
BLAKE2b-256 checksum
How to use checksums
fb83349ce3e00af93cf50a8f66790dc41b0c856c0a970ac66bfdb6250403aa4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / AirProfile-1.0.12-py2-none-any.whl

Download URL AirProfile-1.0.12-py2-none-any.whl
Size 4.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
78aafbd9f63dd9d3b1dab1e5a6ccc125dcaec029555303c12e68f6fb7820c376
BLAKE2b-256 checksum
How to use checksums
2eff433fd9ec729f4f4b2e6f2659f4d2092ca55a48b0554aa79da795759ed2b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.12 This release

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page