Giter Site home page Giter Site logo

rent-parser's Introduction

Rent parser

Quick start with Docker

docker run -p 9080:9080 -d mrsuh/rent-parser
curl -X POST -d 'сдаю двушку за 30 тыс в месяц' 'http://127.0.0.1:9080/parse'
{"type":2,"price":30000}

Types

  • 0 - комната
  • 1 - 1 комнатная квартира
  • 2 - 2 комнатная квартира
  • 3 - 3 комнатная квартира
  • 4 - 4+ комнатная квартира

Compilation from source code

Generate configs and load Yandex Tomita parser

sh bin/deploy.sh

Configure

  • config/config.yml
  • tomita/{price, type}/config.proto

Compile

sh bin/compile.sh

Run

bin/server /config/config.yml

Tests

time python tests/test.py --parser-url 'http://127.0.0.1:9080' --test-file 'go/src/rent-parser/tests/tests.yml' --process-count 4
=== RESULT ===
Total tests: 8000
Valid types: 7475 (93.44%)
Valid prices: 5302 (66.28%)

real    35m23.099s
user    0m42.048s
sys     0m2.529s

rent-parser's People

Contributors

mrsuh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.