Deductions & credits

If this person was not related to you then you cannot claim them as a dependent since they did not live in your home for the entire year.